nrf5340_network.h 156 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029
  1. /*
  2. * Copyright (c) 2010 - 2020, Nordic Semiconductor ASAAll rights reserved.Redistribution and use in sou
  3. * rce and binary forms, with or without modification,are permitted provided that the following conditi
  4. * ons are met:1. Redistributions of source code must retain the above copyright notice, this list of c
  5. * onditions and the following disclaimer.2. Redistributions in binary form, except as embedded into a
  6. * Nordic Semiconductor ASA integrated circuit in a product or a software update for such product, must
  7. * reproduce the above copyright notice, this list of conditions and the following disclaimer in the d
  8. * ocumentation and/or other materials provided with the distribution.3. Neither the name of Nordic Sem
  9. * iconductor ASA nor the names of its contributors may be used to endorse or promote products derived
  10. * from this software without specific prior written permission.4. This software, with or without modif
  11. * ication, must only be used with a Nordic Semiconductor ASA integrated circuit.5. Any software provid
  12. * ed in binary form under this license must not be reverse engineered, decompiled, modified and/or dis
  13. * assembled.THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESSOR IMPLIED WA
  14. * RRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIESOF MERCHANTABILITY, NONINFRINGEMENT,
  15. * AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CO
  16. * NTRIBUTORS BELIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORCONSEQUENTIAL DAMAGE
  17. * S (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTEGOODS OR SERVICES; LOSS OF USE, DATA, OR
  18. * PROFITS; OR BUSINESS INTERRUPTION)HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT
  19. * , STRICTLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUTOF THE USE OF T
  20. * HIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  21. *
  22. * @file nrf5340_network.h
  23. * @brief CMSIS HeaderFile
  24. * @version 1
  25. * @date 14. August 2020
  26. * @note Generated by SVDConv V3.3.35 on Friday, 14.08.2020 15:04:40
  27. * from File 'nrf5340_network.svd',
  28. * last modified on Friday, 14.08.2020 13:04:33
  29. */
  30. /** @addtogroup Nordic Semiconductor
  31. * @{
  32. */
  33. /** @addtogroup nrf5340_network
  34. * @{
  35. */
  36. #ifndef NRF5340_NETWORK_H
  37. #define NRF5340_NETWORK_H
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif
  41. /** @addtogroup Configuration_of_CMSIS
  42. * @{
  43. */
  44. /* =========================================================================================================================== */
  45. /* ================ Interrupt Number Definition ================ */
  46. /* =========================================================================================================================== */
  47. typedef enum {
  48. /* ======================================= ARM Cortex-M33 Specific Interrupt Numbers ======================================= */
  49. Reset_IRQn = -15, /*!< -15 Reset Vector, invoked on Power up and warm reset */
  50. NonMaskableInt_IRQn = -14, /*!< -14 Non maskable Interrupt, cannot be stopped or preempted */
  51. HardFault_IRQn = -13, /*!< -13 Hard Fault, all classes of Fault */
  52. MemoryManagement_IRQn = -12, /*!< -12 Memory Management, MPU mismatch, including Access Violation
  53. and No Match */
  54. BusFault_IRQn = -11, /*!< -11 Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory
  55. related Fault */
  56. UsageFault_IRQn = -10, /*!< -10 Usage Fault, i.e. Undef Instruction, Illegal State Transition */
  57. SecureFault_IRQn = -9, /*!< -9 Secure Fault Handler */
  58. SVCall_IRQn = -5, /*!< -5 System Service Call via SVC instruction */
  59. DebugMonitor_IRQn = -4, /*!< -4 Debug Monitor */
  60. PendSV_IRQn = -2, /*!< -2 Pendable request for system service */
  61. SysTick_IRQn = -1, /*!< -1 System Tick Timer */
  62. /* ====================================== nrf5340_network Specific Interrupt Numbers ======================================= */
  63. CLOCK_POWER_IRQn = 5, /*!< 5 CLOCK_POWER */
  64. RADIO_IRQn = 8, /*!< 8 RADIO */
  65. RNG_IRQn = 9, /*!< 9 RNG */
  66. GPIOTE_IRQn = 10, /*!< 10 GPIOTE */
  67. WDT_IRQn = 11, /*!< 11 WDT */
  68. TIMER0_IRQn = 12, /*!< 12 TIMER0 */
  69. ECB_IRQn = 13, /*!< 13 ECB */
  70. AAR_CCM_IRQn = 14, /*!< 14 AAR_CCM */
  71. TEMP_IRQn = 16, /*!< 16 TEMP */
  72. RTC0_IRQn = 17, /*!< 17 RTC0 */
  73. IPC_IRQn = 18, /*!< 18 IPC */
  74. SPIM0_SPIS0_TWIM0_TWIS0_UARTE0_IRQn= 19, /*!< 19 SPIM0_SPIS0_TWIM0_TWIS0_UARTE0 */
  75. EGU0_IRQn = 20, /*!< 20 EGU0 */
  76. RTC1_IRQn = 22, /*!< 22 RTC1 */
  77. TIMER1_IRQn = 24, /*!< 24 TIMER1 */
  78. TIMER2_IRQn = 25, /*!< 25 TIMER2 */
  79. SWI0_IRQn = 26, /*!< 26 SWI0 */
  80. SWI1_IRQn = 27, /*!< 27 SWI1 */
  81. SWI2_IRQn = 28, /*!< 28 SWI2 */
  82. SWI3_IRQn = 29 /*!< 29 SWI3 */
  83. } IRQn_Type;
  84. /* =========================================================================================================================== */
  85. /* ================ Processor and Core Peripheral Section ================ */
  86. /* =========================================================================================================================== */
  87. /* ========================== Configuration of the ARM Cortex-M33 Processor and Core Peripherals =========================== */
  88. #define __CM33_REV 0x0004U /*!< CM33 Core Revision */
  89. #define __DSP_PRESENT 0 /*!< DSP present or not */
  90. #define __NVIC_PRIO_BITS 3 /*!< Number of Bits used for Priority Levels */
  91. #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
  92. #define __VTOR_PRESENT 1 /*!< Set to 1 if CPU supports Vector Table Offset Register */
  93. #define __MPU_PRESENT 1 /*!< MPU present */
  94. #define __FPU_PRESENT 0 /*!< FPU present */
  95. #define __FPU_DP 0 /*!< unused, Device has no FPU */
  96. #define __SAUREGION_PRESENT 0 /*!< SAU region present */
  97. /** @} */ /* End of group Configuration_of_CMSIS */
  98. #include "core_cm33.h" /*!< ARM Cortex-M33 processor and core peripherals */
  99. #include "system_nrf5340_network.h" /*!< nrf5340_network System */
  100. #ifndef __IM /*!< Fallback for older CMSIS versions */
  101. #define __IM __I
  102. #endif
  103. #ifndef __OM /*!< Fallback for older CMSIS versions */
  104. #define __OM __O
  105. #endif
  106. #ifndef __IOM /*!< Fallback for older CMSIS versions */
  107. #define __IOM __IO
  108. #endif
  109. /* =========================================================================================================================== */
  110. /* ================ Device Specific Cluster Section ================ */
  111. /* =========================================================================================================================== */
  112. /** @addtogroup Device_Peripheral_clusters
  113. * @{
  114. */
  115. /**
  116. * @brief FICR_INFO [INFO] (Device info)
  117. */
  118. typedef struct {
  119. __IM uint32_t CONFIGID; /*!< (@ 0x00000000) Configuration identifier */
  120. __IM uint32_t DEVICEID[2]; /*!< (@ 0x00000004) Description collection: Device identifier */
  121. __IM uint32_t PART; /*!< (@ 0x0000000C) Part code */
  122. __IM uint32_t VARIANT; /*!< (@ 0x00000010) Part Variant, Hardware version and Production
  123. configuration */
  124. __IM uint32_t PACKAGE; /*!< (@ 0x00000014) Package option */
  125. __IM uint32_t RAM; /*!< (@ 0x00000018) RAM variant */
  126. __IM uint32_t FLASH; /*!< (@ 0x0000001C) Flash variant */
  127. __IM uint32_t CODEPAGESIZE; /*!< (@ 0x00000020) Code memory page size in bytes */
  128. __IM uint32_t CODESIZE; /*!< (@ 0x00000024) Code memory size */
  129. __IM uint32_t DEVICETYPE; /*!< (@ 0x00000028) Device type */
  130. } FICR_INFO_Type; /*!< Size = 44 (0x2c) */
  131. /**
  132. * @brief FICR_TRIMCNF [TRIMCNF] (Unspecified)
  133. */
  134. typedef struct {
  135. __IOM uint32_t* ADDR; /*!< (@ 0x00000000) Description cluster: Address */
  136. __IM uint32_t DATA; /*!< (@ 0x00000004) Description cluster: Data */
  137. } FICR_TRIMCNF_Type; /*!< Size = 8 (0x8) */
  138. /**
  139. * @brief VREQCTRL_VREGRADIO [VREGRADIO] (Unspecified)
  140. */
  141. typedef struct {
  142. __IOM uint32_t VREQH; /*!< (@ 0x00000000) Request high voltage on RADIO After requesting
  143. high voltage, the user must wait until VREQHREADY
  144. is set to Ready */
  145. __IM uint32_t RESERVED;
  146. __IM uint32_t VREQHREADY; /*!< (@ 0x00000008) High voltage on RADIO is ready */
  147. } VREQCTRL_VREGRADIO_Type; /*!< Size = 12 (0xc) */
  148. /**
  149. * @brief CTRLAPPERI_MAILBOX [MAILBOX] (Unspecified)
  150. */
  151. typedef struct {
  152. __IM uint32_t RXDATA; /*!< (@ 0x00000000) Data sent from the debugger to the CPU. */
  153. __IM uint32_t RXSTATUS; /*!< (@ 0x00000004) This register shows a status that indicates if
  154. data sent from the debugger to the CPU has
  155. been read. */
  156. __IM uint32_t RESERVED[30];
  157. __IOM uint32_t TXDATA; /*!< (@ 0x00000080) Data sent from the CPU to the debugger. */
  158. __IM uint32_t TXSTATUS; /*!< (@ 0x00000084) This register shows a status that indicates if
  159. the data sent from the CPU to the debugger
  160. has been read. */
  161. } CTRLAPPERI_MAILBOX_Type; /*!< Size = 136 (0x88) */
  162. /**
  163. * @brief CTRLAPPERI_ERASEPROTECT [ERASEPROTECT] (Unspecified)
  164. */
  165. typedef struct {
  166. __IOM uint32_t LOCK; /*!< (@ 0x00000000) This register locks the ERASEPROTECT.DISABLE
  167. register from being written until next reset. */
  168. __IOM uint32_t DISABLE; /*!< (@ 0x00000004) This register disables the ERASEPROTECT register
  169. and performs an ERASEALL operation. */
  170. } CTRLAPPERI_ERASEPROTECT_Type; /*!< Size = 8 (0x8) */
  171. /**
  172. * @brief CTRLAPPERI_APPROTECT [APPROTECT] (Unspecified)
  173. */
  174. typedef struct {
  175. __IOM uint32_t LOCK; /*!< (@ 0x00000000) This register locks the APPROTECT.DISABLE register
  176. from being written to until next reset. */
  177. __IOM uint32_t DISABLE; /*!< (@ 0x00000004) This register disables the APPROTECT register
  178. and enables debug access to non-secure mode. */
  179. } CTRLAPPERI_APPROTECT_Type; /*!< Size = 8 (0x8) */
  180. /**
  181. * @brief RADIO_PSEL [PSEL] (Unspecified)
  182. */
  183. typedef struct {
  184. __IOM uint32_t DFEGPIO[8]; /*!< (@ 0x00000000) Description collection: Pin select for DFE pin
  185. n */
  186. } RADIO_PSEL_Type; /*!< Size = 32 (0x20) */
  187. /**
  188. * @brief RADIO_DFEPACKET [DFEPACKET] (DFE packet EasyDMA channel)
  189. */
  190. typedef struct {
  191. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  192. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of buffer words to transfer */
  193. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of samples transferred in the last transaction */
  194. } RADIO_DFEPACKET_Type; /*!< Size = 12 (0xc) */
  195. /**
  196. * @brief DPPIC_TASKS_CHG [TASKS_CHG] (Channel group tasks)
  197. */
  198. typedef struct {
  199. __OM uint32_t EN; /*!< (@ 0x00000000) Description cluster: Enable channel group n */
  200. __OM uint32_t DIS; /*!< (@ 0x00000004) Description cluster: Disable channel group n */
  201. } DPPIC_TASKS_CHG_Type; /*!< Size = 8 (0x8) */
  202. /**
  203. * @brief DPPIC_SUBSCRIBE_CHG [SUBSCRIBE_CHG] (Subscribe configuration for tasks)
  204. */
  205. typedef struct {
  206. __IOM uint32_t EN; /*!< (@ 0x00000000) Description cluster: Subscribe configuration
  207. for task CHG[n].EN */
  208. __IOM uint32_t DIS; /*!< (@ 0x00000004) Description cluster: Subscribe configuration
  209. for task CHG[n].DIS */
  210. } DPPIC_SUBSCRIBE_CHG_Type; /*!< Size = 8 (0x8) */
  211. /**
  212. * @brief SPIM_PSEL [PSEL] (Unspecified)
  213. */
  214. typedef struct {
  215. __IOM uint32_t SCK; /*!< (@ 0x00000000) Pin select for SCK */
  216. __IOM uint32_t MOSI; /*!< (@ 0x00000004) Pin select for MOSI signal */
  217. __IOM uint32_t MISO; /*!< (@ 0x00000008) Pin select for MISO signal */
  218. __IOM uint32_t CSN; /*!< (@ 0x0000000C) Pin select for CSN */
  219. } SPIM_PSEL_Type; /*!< Size = 16 (0x10) */
  220. /**
  221. * @brief SPIM_RXD [RXD] (RXD EasyDMA channel)
  222. */
  223. typedef struct {
  224. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  225. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in receive buffer */
  226. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  227. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  228. } SPIM_RXD_Type; /*!< Size = 16 (0x10) */
  229. /**
  230. * @brief SPIM_TXD [TXD] (TXD EasyDMA channel)
  231. */
  232. typedef struct {
  233. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  234. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Number of bytes in transmit buffer */
  235. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  236. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  237. } SPIM_TXD_Type; /*!< Size = 16 (0x10) */
  238. /**
  239. * @brief SPIM_IFTIMING [IFTIMING] (Unspecified)
  240. */
  241. typedef struct {
  242. __IOM uint32_t RXDELAY; /*!< (@ 0x00000000) Sample delay for input serial data on MISO */
  243. __IOM uint32_t CSNDUR; /*!< (@ 0x00000004) Minimum duration between edge of CSN and edge
  244. of SCK and minimum duration CSN must stay
  245. high between transactions */
  246. } SPIM_IFTIMING_Type; /*!< Size = 8 (0x8) */
  247. /**
  248. * @brief SPIS_PSEL [PSEL] (Unspecified)
  249. */
  250. typedef struct {
  251. __IOM uint32_t SCK; /*!< (@ 0x00000000) Pin select for SCK */
  252. __IOM uint32_t MISO; /*!< (@ 0x00000004) Pin select for MISO signal */
  253. __IOM uint32_t MOSI; /*!< (@ 0x00000008) Pin select for MOSI signal */
  254. __IOM uint32_t CSN; /*!< (@ 0x0000000C) Pin select for CSN signal */
  255. } SPIS_PSEL_Type; /*!< Size = 16 (0x10) */
  256. /**
  257. * @brief SPIS_RXD [RXD] (Unspecified)
  258. */
  259. typedef struct {
  260. __IOM uint32_t PTR; /*!< (@ 0x00000000) RXD data pointer */
  261. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in receive buffer */
  262. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes received in last granted transaction */
  263. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  264. } SPIS_RXD_Type; /*!< Size = 16 (0x10) */
  265. /**
  266. * @brief SPIS_TXD [TXD] (Unspecified)
  267. */
  268. typedef struct {
  269. __IOM uint32_t PTR; /*!< (@ 0x00000000) TXD data pointer */
  270. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in transmit buffer */
  271. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transmitted in last granted transaction */
  272. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  273. } SPIS_TXD_Type; /*!< Size = 16 (0x10) */
  274. /**
  275. * @brief TWIM_PSEL [PSEL] (Unspecified)
  276. */
  277. typedef struct {
  278. __IOM uint32_t SCL; /*!< (@ 0x00000000) Pin select for SCL signal */
  279. __IOM uint32_t SDA; /*!< (@ 0x00000004) Pin select for SDA signal */
  280. } TWIM_PSEL_Type; /*!< Size = 8 (0x8) */
  281. /**
  282. * @brief TWIM_RXD [RXD] (RXD EasyDMA channel)
  283. */
  284. typedef struct {
  285. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  286. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in receive buffer */
  287. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  288. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  289. } TWIM_RXD_Type; /*!< Size = 16 (0x10) */
  290. /**
  291. * @brief TWIM_TXD [TXD] (TXD EasyDMA channel)
  292. */
  293. typedef struct {
  294. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  295. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in transmit buffer */
  296. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  297. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  298. } TWIM_TXD_Type; /*!< Size = 16 (0x10) */
  299. /**
  300. * @brief TWIS_PSEL [PSEL] (Unspecified)
  301. */
  302. typedef struct {
  303. __IOM uint32_t SCL; /*!< (@ 0x00000000) Pin select for SCL signal */
  304. __IOM uint32_t SDA; /*!< (@ 0x00000004) Pin select for SDA signal */
  305. } TWIS_PSEL_Type; /*!< Size = 8 (0x8) */
  306. /**
  307. * @brief TWIS_RXD [RXD] (RXD EasyDMA channel)
  308. */
  309. typedef struct {
  310. __IOM uint32_t PTR; /*!< (@ 0x00000000) RXD Data pointer */
  311. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in RXD buffer */
  312. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last RXD transaction */
  313. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  314. } TWIS_RXD_Type; /*!< Size = 16 (0x10) */
  315. /**
  316. * @brief TWIS_TXD [TXD] (TXD EasyDMA channel)
  317. */
  318. typedef struct {
  319. __IOM uint32_t PTR; /*!< (@ 0x00000000) TXD Data pointer */
  320. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in TXD buffer */
  321. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last TXD transaction */
  322. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  323. } TWIS_TXD_Type; /*!< Size = 16 (0x10) */
  324. /**
  325. * @brief UARTE_PSEL [PSEL] (Unspecified)
  326. */
  327. typedef struct {
  328. __IOM uint32_t RTS; /*!< (@ 0x00000000) Pin select for RTS signal */
  329. __IOM uint32_t TXD; /*!< (@ 0x00000004) Pin select for TXD signal */
  330. __IOM uint32_t CTS; /*!< (@ 0x00000008) Pin select for CTS signal */
  331. __IOM uint32_t RXD; /*!< (@ 0x0000000C) Pin select for RXD signal */
  332. } UARTE_PSEL_Type; /*!< Size = 16 (0x10) */
  333. /**
  334. * @brief UARTE_RXD [RXD] (RXD EasyDMA channel)
  335. */
  336. typedef struct {
  337. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  338. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in receive buffer */
  339. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  340. } UARTE_RXD_Type; /*!< Size = 12 (0xc) */
  341. /**
  342. * @brief UARTE_TXD [TXD] (TXD EasyDMA channel)
  343. */
  344. typedef struct {
  345. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  346. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in transmit buffer */
  347. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  348. } UARTE_TXD_Type; /*!< Size = 12 (0xc) */
  349. /**
  350. * @brief ACL_ACL [ACL] (Unspecified)
  351. */
  352. typedef struct {
  353. __IOM uint32_t ADDR; /*!< (@ 0x00000000) Description cluster: Configure the word-aligned
  354. start address of region n to protect */
  355. __IOM uint32_t SIZE; /*!< (@ 0x00000004) Description cluster: Size of region to protect
  356. counting from address ACL[n].ADDR. Write
  357. '0' as no effect. */
  358. __IOM uint32_t PERM; /*!< (@ 0x00000008) Description cluster: Access permissions for region
  359. n as defined by start address ACL[n].ADDR
  360. and size ACL[n].SIZE */
  361. __IM uint32_t RESERVED;
  362. } ACL_ACL_Type; /*!< Size = 16 (0x10) */
  363. /**
  364. * @brief VMC_RAM [RAM] (Unspecified)
  365. */
  366. typedef struct {
  367. __IOM uint32_t POWER; /*!< (@ 0x00000000) Description cluster: RAM[n] power control register */
  368. __IOM uint32_t POWERSET; /*!< (@ 0x00000004) Description cluster: RAM[n] power control set
  369. register */
  370. __IOM uint32_t POWERCLR; /*!< (@ 0x00000008) Description cluster: RAM[n] power control clear
  371. register */
  372. __IM uint32_t RESERVED;
  373. } VMC_RAM_Type; /*!< Size = 16 (0x10) */
  374. /** @} */ /* End of group Device_Peripheral_clusters */
  375. /* =========================================================================================================================== */
  376. /* ================ Device Specific Peripheral Section ================ */
  377. /* =========================================================================================================================== */
  378. /** @addtogroup Device_Peripheral_peripherals
  379. * @{
  380. */
  381. /* =========================================================================================================================== */
  382. /* ================ FICR_NS ================ */
  383. /* =========================================================================================================================== */
  384. /**
  385. * @brief Factory Information Configuration Registers (FICR_NS)
  386. */
  387. typedef struct { /*!< (@ 0x01FF0000) FICR_NS Structure */
  388. __IM uint32_t RESERVED[128];
  389. __IOM FICR_INFO_Type INFO; /*!< (@ 0x00000200) Device info */
  390. __IM uint32_t RESERVED1[21];
  391. __IM uint32_t ER[4]; /*!< (@ 0x00000280) Description collection: Encryption Root, word
  392. n */
  393. __IM uint32_t IR[4]; /*!< (@ 0x00000290) Description collection: Identity Root, word n */
  394. __IM uint32_t DEVICEADDRTYPE; /*!< (@ 0x000002A0) Device address type */
  395. __IM uint32_t DEVICEADDR[2]; /*!< (@ 0x000002A4) Description collection: Device address n */
  396. __IM uint32_t RESERVED2[21];
  397. __IOM FICR_TRIMCNF_Type TRIMCNF[32]; /*!< (@ 0x00000300) Unspecified */
  398. } NRF_FICR_Type; /*!< Size = 1024 (0x400) */
  399. /* =========================================================================================================================== */
  400. /* ================ UICR_NS ================ */
  401. /* =========================================================================================================================== */
  402. /**
  403. * @brief User Information Configuration Registers (UICR_NS)
  404. */
  405. typedef struct { /*!< (@ 0x01FF8000) UICR_NS Structure */
  406. __IOM uint32_t APPROTECT; /*!< (@ 0x00000000) Access port protection */
  407. __IOM uint32_t ERASEPROTECT; /*!< (@ 0x00000004) Erase protection */
  408. __IM uint32_t RESERVED[126];
  409. __IOM uint32_t NRFFW[32]; /*!< (@ 0x00000200) Description collection: Reserved for Nordic firmware
  410. design */
  411. __IM uint32_t RESERVED1[32];
  412. __IOM uint32_t CUSTOMER[32]; /*!< (@ 0x00000300) Description collection: Reserved for customer */
  413. } NRF_UICR_Type; /*!< Size = 896 (0x380) */
  414. /* =========================================================================================================================== */
  415. /* ================ CTI_NS ================ */
  416. /* =========================================================================================================================== */
  417. /**
  418. * @brief Cross-Trigger Interface control. NOTE: this is not a separate peripheral, but describes CM33 functionality. (CTI_NS)
  419. */
  420. typedef struct { /*!< (@ 0xE0042000) CTI_NS Structure */
  421. __IOM uint32_t CTICONTROL; /*!< (@ 0x00000000) CTI Control register */
  422. __IM uint32_t RESERVED[3];
  423. __OM uint32_t CTIINTACK; /*!< (@ 0x00000010) CTI Interrupt Acknowledge register */
  424. __IOM uint32_t CTIAPPSET; /*!< (@ 0x00000014) CTI Application Trigger Set register */
  425. __OM uint32_t CTIAPPCLEAR; /*!< (@ 0x00000018) CTI Application Trigger Clear register */
  426. __OM uint32_t CTIAPPPULSE; /*!< (@ 0x0000001C) CTI Application Pulse register */
  427. __IOM uint32_t CTIINEN[8]; /*!< (@ 0x00000020) Description collection: CTI Trigger input */
  428. __IM uint32_t RESERVED1[24];
  429. __IOM uint32_t CTIOUTEN[8]; /*!< (@ 0x000000A0) Description collection: CTI Trigger output */
  430. __IM uint32_t RESERVED2[28];
  431. __IM uint32_t CTITRIGINSTATUS; /*!< (@ 0x00000130) CTI Trigger In Status register */
  432. __IM uint32_t CTITRIGOUTSTATUS; /*!< (@ 0x00000134) CTI Trigger Out Status register */
  433. __IM uint32_t CTICHINSTATUS; /*!< (@ 0x00000138) CTI Channel In Status register */
  434. __IM uint32_t RESERVED3;
  435. __IOM uint32_t CTIGATE; /*!< (@ 0x00000140) Enable CTI Channel Gate register */
  436. __IM uint32_t RESERVED4[926];
  437. __IM uint32_t DEVARCH; /*!< (@ 0x00000FBC) Device Architecture register */
  438. __IM uint32_t RESERVED5[2];
  439. __IM uint32_t DEVID; /*!< (@ 0x00000FC8) Device Configuration register */
  440. __IM uint32_t DEVTYPE; /*!< (@ 0x00000FCC) Device Type Identifier register */
  441. __IM uint32_t PIDR4; /*!< (@ 0x00000FD0) Peripheral ID4 Register */
  442. __IM uint32_t PIDR5; /*!< (@ 0x00000FD4) Peripheral ID5 register */
  443. __IM uint32_t PIDR6; /*!< (@ 0x00000FD8) Peripheral ID6 register */
  444. __IM uint32_t PIDR7; /*!< (@ 0x00000FDC) Peripheral ID7 register */
  445. __IM uint32_t PIDR0; /*!< (@ 0x00000FE0) Peripheral ID0 Register */
  446. __IM uint32_t PIDR1; /*!< (@ 0x00000FE4) Peripheral ID1 Register */
  447. __IM uint32_t PIDR2; /*!< (@ 0x00000FE8) Peripheral ID2 Register */
  448. __IM uint32_t PIDR3; /*!< (@ 0x00000FEC) Peripheral ID3 Register */
  449. __IM uint32_t CIDR0; /*!< (@ 0x00000FF0) Component ID0 Register */
  450. __IM uint32_t CIDR1; /*!< (@ 0x00000FF4) Component ID1 Register */
  451. __IM uint32_t CIDR2; /*!< (@ 0x00000FF8) Component ID2 Register */
  452. __IM uint32_t CIDR3; /*!< (@ 0x00000FFC) Component ID3 Register */
  453. } NRF_CTI_Type; /*!< Size = 4096 (0x1000) */
  454. /* =========================================================================================================================== */
  455. /* ================ DCNF_NS ================ */
  456. /* =========================================================================================================================== */
  457. /**
  458. * @brief Domain configuration management (DCNF_NS)
  459. */
  460. typedef struct { /*!< (@ 0x41000000) DCNF_NS Structure */
  461. __IM uint32_t RESERVED[264];
  462. __IM uint32_t CPUID; /*!< (@ 0x00000420) CPU ID of this subsystem */
  463. } NRF_DCNF_Type; /*!< Size = 1060 (0x424) */
  464. /* =========================================================================================================================== */
  465. /* ================ VREQCTRL_NS ================ */
  466. /* =========================================================================================================================== */
  467. /**
  468. * @brief Voltage request control (VREQCTRL_NS)
  469. */
  470. typedef struct { /*!< (@ 0x41004000) VREQCTRL_NS Structure */
  471. __IM uint32_t RESERVED[320];
  472. __IOM VREQCTRL_VREGRADIO_Type VREGRADIO; /*!< (@ 0x00000500) Unspecified */
  473. } NRF_VREQCTRL_Type; /*!< Size = 1292 (0x50c) */
  474. /* =========================================================================================================================== */
  475. /* ================ CLOCK_NS ================ */
  476. /* =========================================================================================================================== */
  477. /**
  478. * @brief Clock management (CLOCK_NS)
  479. */
  480. typedef struct { /*!< (@ 0x41005000) CLOCK_NS Structure */
  481. __OM uint32_t TASKS_HFCLKSTART; /*!< (@ 0x00000000) Start HFCLK128M/HFCLK64M source as selected in
  482. HFCLKSRC */
  483. __OM uint32_t TASKS_HFCLKSTOP; /*!< (@ 0x00000004) Stop HFCLK128M/HFCLK64M source */
  484. __OM uint32_t TASKS_LFCLKSTART; /*!< (@ 0x00000008) Start LFCLK source as selected in LFCLKSRC */
  485. __OM uint32_t TASKS_LFCLKSTOP; /*!< (@ 0x0000000C) Stop LFCLK source */
  486. __OM uint32_t TASKS_CAL; /*!< (@ 0x00000010) Start calibration of LFRC oscillator */
  487. __IM uint32_t RESERVED[27];
  488. __IOM uint32_t SUBSCRIBE_HFCLKSTART; /*!< (@ 0x00000080) Subscribe configuration for task HFCLKSTART */
  489. __IOM uint32_t SUBSCRIBE_HFCLKSTOP; /*!< (@ 0x00000084) Subscribe configuration for task HFCLKSTOP */
  490. __IOM uint32_t SUBSCRIBE_LFCLKSTART; /*!< (@ 0x00000088) Subscribe configuration for task LFCLKSTART */
  491. __IOM uint32_t SUBSCRIBE_LFCLKSTOP; /*!< (@ 0x0000008C) Subscribe configuration for task LFCLKSTOP */
  492. __IOM uint32_t SUBSCRIBE_CAL; /*!< (@ 0x00000090) Subscribe configuration for task CAL */
  493. __IM uint32_t RESERVED1[27];
  494. __IOM uint32_t EVENTS_HFCLKSTARTED; /*!< (@ 0x00000100) HFCLK128M/HFCLK64M source started */
  495. __IOM uint32_t EVENTS_LFCLKSTARTED; /*!< (@ 0x00000104) LFCLK source started */
  496. __IM uint32_t RESERVED2[5];
  497. __IOM uint32_t EVENTS_DONE; /*!< (@ 0x0000011C) Calibration of LFRC oscillator complete event */
  498. __IM uint32_t RESERVED3[24];
  499. __IOM uint32_t PUBLISH_HFCLKSTARTED; /*!< (@ 0x00000180) Publish configuration for event HFCLKSTARTED */
  500. __IOM uint32_t PUBLISH_LFCLKSTARTED; /*!< (@ 0x00000184) Publish configuration for event LFCLKSTARTED */
  501. __IM uint32_t RESERVED4[5];
  502. __IOM uint32_t PUBLISH_DONE; /*!< (@ 0x0000019C) Publish configuration for event DONE */
  503. __IM uint32_t RESERVED5[88];
  504. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  505. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  506. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  507. __IM uint32_t INTPEND; /*!< (@ 0x0000030C) Pending interrupts */
  508. __IM uint32_t RESERVED6[62];
  509. __IM uint32_t HFCLKRUN; /*!< (@ 0x00000408) Status indicating that HFCLKSTART task has been
  510. triggered */
  511. __IM uint32_t HFCLKSTAT; /*!< (@ 0x0000040C) Status indicating which HFCLK128M/HFCLK64M source
  512. is running This register value in any CLOCK
  513. instance reflects status only due to configurations/action
  514. in that CLOCK instance. */
  515. __IM uint32_t RESERVED7;
  516. __IM uint32_t LFCLKRUN; /*!< (@ 0x00000414) Status indicating that LFCLKSTART task has been
  517. triggered */
  518. __IM uint32_t LFCLKSTAT; /*!< (@ 0x00000418) Status indicating which LFCLK source is running
  519. This register value in any CLOCK instance
  520. reflects status only due to configurations/actions
  521. in that CLOCK instance. */
  522. __IM uint32_t LFCLKSRCCOPY; /*!< (@ 0x0000041C) Copy of LFCLKSRC register, set when LFCLKSTART
  523. task was triggered */
  524. __IM uint32_t RESERVED8[61];
  525. __IOM uint32_t HFCLKSRC; /*!< (@ 0x00000514) Clock source for HFCLK128M/HFCLK64M */
  526. __IOM uint32_t LFCLKSRC; /*!< (@ 0x00000518) Clock source for LFCLK */
  527. __IM uint32_t RESERVED9[15];
  528. __IOM uint32_t HFCLKCTRL; /*!< (@ 0x00000558) HFCLK128M frequency configuration */
  529. __IM uint32_t RESERVED10[5];
  530. __IOM uint32_t HFCLKALWAYSRUN; /*!< (@ 0x00000570) Automatic or manual control of HFCLK128M/HFCLK64M */
  531. __IOM uint32_t LFCLKALWAYSRUN; /*!< (@ 0x00000574) Automatic or manual control of LFCLK */
  532. } NRF_CLOCK_Type; /*!< Size = 1400 (0x578) */
  533. /* =========================================================================================================================== */
  534. /* ================ POWER_NS ================ */
  535. /* =========================================================================================================================== */
  536. /**
  537. * @brief Power control (POWER_NS)
  538. */
  539. typedef struct { /*!< (@ 0x41005000) POWER_NS Structure */
  540. __IM uint32_t RESERVED[30];
  541. __OM uint32_t TASKS_CONSTLAT; /*!< (@ 0x00000078) Enable Constant Latency mode */
  542. __OM uint32_t TASKS_LOWPWR; /*!< (@ 0x0000007C) Enable Low-Power mode (variable latency) */
  543. __IM uint32_t RESERVED1[30];
  544. __IOM uint32_t SUBSCRIBE_CONSTLAT; /*!< (@ 0x000000F8) Subscribe configuration for task CONSTLAT */
  545. __IOM uint32_t SUBSCRIBE_LOWPWR; /*!< (@ 0x000000FC) Subscribe configuration for task LOWPWR */
  546. __IM uint32_t RESERVED2[2];
  547. __IOM uint32_t EVENTS_POFWARN; /*!< (@ 0x00000108) Power failure warning */
  548. __IM uint32_t RESERVED3[2];
  549. __IOM uint32_t EVENTS_SLEEPENTER; /*!< (@ 0x00000114) CPU entered WFI/WFE sleep */
  550. __IOM uint32_t EVENTS_SLEEPEXIT; /*!< (@ 0x00000118) CPU exited WFI/WFE sleep */
  551. __IM uint32_t RESERVED4[27];
  552. __IOM uint32_t PUBLISH_POFWARN; /*!< (@ 0x00000188) Publish configuration for event POFWARN */
  553. __IM uint32_t RESERVED5[2];
  554. __IOM uint32_t PUBLISH_SLEEPENTER; /*!< (@ 0x00000194) Publish configuration for event SLEEPENTER */
  555. __IOM uint32_t PUBLISH_SLEEPEXIT; /*!< (@ 0x00000198) Publish configuration for event SLEEPEXIT */
  556. __IM uint32_t RESERVED6[89];
  557. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  558. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  559. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  560. __IM uint32_t RESERVED7[132];
  561. __IOM uint32_t GPREGRET[2]; /*!< (@ 0x0000051C) Description collection: General purpose retention
  562. register */
  563. } NRF_POWER_Type; /*!< Size = 1316 (0x524) */
  564. /* =========================================================================================================================== */
  565. /* ================ RESET_NS ================ */
  566. /* =========================================================================================================================== */
  567. /**
  568. * @brief Reset control (RESET_NS)
  569. */
  570. typedef struct { /*!< (@ 0x41005000) RESET_NS Structure */
  571. __IM uint32_t RESERVED[256];
  572. __IOM uint32_t RESETREAS; /*!< (@ 0x00000400) Reset reason */
  573. } NRF_RESET_Type; /*!< Size = 1028 (0x404) */
  574. /* =========================================================================================================================== */
  575. /* ================ CTRLAP_NS ================ */
  576. /* =========================================================================================================================== */
  577. /**
  578. * @brief Control access port (CTRLAP_NS)
  579. */
  580. typedef struct { /*!< (@ 0x41006000) CTRLAP_NS Structure */
  581. __IM uint32_t RESERVED[256];
  582. __IOM CTRLAPPERI_MAILBOX_Type MAILBOX; /*!< (@ 0x00000400) Unspecified */
  583. __IM uint32_t RESERVED1[30];
  584. __IOM CTRLAPPERI_ERASEPROTECT_Type ERASEPROTECT;/*!< (@ 0x00000500) Unspecified */
  585. __IM uint32_t RESERVED2[14];
  586. __IOM CTRLAPPERI_APPROTECT_Type APPROTECT; /*!< (@ 0x00000540) Unspecified */
  587. __IM uint32_t RESERVED3[46];
  588. __IM uint32_t STATUS; /*!< (@ 0x00000600) Status bits for CTRL-AP peripheral */
  589. } NRF_CTRLAPPERI_Type; /*!< Size = 1540 (0x604) */
  590. /* =========================================================================================================================== */
  591. /* ================ RADIO_NS ================ */
  592. /* =========================================================================================================================== */
  593. /**
  594. * @brief 2.4 GHz radio (RADIO_NS)
  595. */
  596. typedef struct { /*!< (@ 0x41008000) RADIO_NS Structure */
  597. __OM uint32_t TASKS_TXEN; /*!< (@ 0x00000000) Enable RADIO in TX mode */
  598. __OM uint32_t TASKS_RXEN; /*!< (@ 0x00000004) Enable RADIO in RX mode */
  599. __OM uint32_t TASKS_START; /*!< (@ 0x00000008) Start RADIO */
  600. __OM uint32_t TASKS_STOP; /*!< (@ 0x0000000C) Stop RADIO */
  601. __OM uint32_t TASKS_DISABLE; /*!< (@ 0x00000010) Disable RADIO */
  602. __OM uint32_t TASKS_RSSISTART; /*!< (@ 0x00000014) Start the RSSI and take one single sample of
  603. the receive signal strength */
  604. __OM uint32_t TASKS_RSSISTOP; /*!< (@ 0x00000018) Stop the RSSI measurement */
  605. __OM uint32_t TASKS_BCSTART; /*!< (@ 0x0000001C) Start the bit counter */
  606. __OM uint32_t TASKS_BCSTOP; /*!< (@ 0x00000020) Stop the bit counter */
  607. __OM uint32_t TASKS_EDSTART; /*!< (@ 0x00000024) Start the energy detect measurement used in IEEE
  608. 802.15.4 mode */
  609. __OM uint32_t TASKS_EDSTOP; /*!< (@ 0x00000028) Stop the energy detect measurement */
  610. __OM uint32_t TASKS_CCASTART; /*!< (@ 0x0000002C) Start the clear channel assessment used in IEEE
  611. 802.15.4 mode */
  612. __OM uint32_t TASKS_CCASTOP; /*!< (@ 0x00000030) Stop the clear channel assessment */
  613. __IM uint32_t RESERVED[19];
  614. __IOM uint32_t SUBSCRIBE_TXEN; /*!< (@ 0x00000080) Subscribe configuration for task TXEN */
  615. __IOM uint32_t SUBSCRIBE_RXEN; /*!< (@ 0x00000084) Subscribe configuration for task RXEN */
  616. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000088) Subscribe configuration for task START */
  617. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x0000008C) Subscribe configuration for task STOP */
  618. __IOM uint32_t SUBSCRIBE_DISABLE; /*!< (@ 0x00000090) Subscribe configuration for task DISABLE */
  619. __IOM uint32_t SUBSCRIBE_RSSISTART; /*!< (@ 0x00000094) Subscribe configuration for task RSSISTART */
  620. __IOM uint32_t SUBSCRIBE_RSSISTOP; /*!< (@ 0x00000098) Subscribe configuration for task RSSISTOP */
  621. __IOM uint32_t SUBSCRIBE_BCSTART; /*!< (@ 0x0000009C) Subscribe configuration for task BCSTART */
  622. __IOM uint32_t SUBSCRIBE_BCSTOP; /*!< (@ 0x000000A0) Subscribe configuration for task BCSTOP */
  623. __IOM uint32_t SUBSCRIBE_EDSTART; /*!< (@ 0x000000A4) Subscribe configuration for task EDSTART */
  624. __IOM uint32_t SUBSCRIBE_EDSTOP; /*!< (@ 0x000000A8) Subscribe configuration for task EDSTOP */
  625. __IOM uint32_t SUBSCRIBE_CCASTART; /*!< (@ 0x000000AC) Subscribe configuration for task CCASTART */
  626. __IOM uint32_t SUBSCRIBE_CCASTOP; /*!< (@ 0x000000B0) Subscribe configuration for task CCASTOP */
  627. __IM uint32_t RESERVED1[19];
  628. __IOM uint32_t EVENTS_READY; /*!< (@ 0x00000100) RADIO has ramped up and is ready to be started */
  629. __IOM uint32_t EVENTS_ADDRESS; /*!< (@ 0x00000104) Address sent or received */
  630. __IOM uint32_t EVENTS_PAYLOAD; /*!< (@ 0x00000108) Packet payload sent or received */
  631. __IOM uint32_t EVENTS_END; /*!< (@ 0x0000010C) Packet sent or received */
  632. __IOM uint32_t EVENTS_DISABLED; /*!< (@ 0x00000110) RADIO has been disabled */
  633. __IOM uint32_t EVENTS_DEVMATCH; /*!< (@ 0x00000114) A device address match occurred on the last received
  634. packet */
  635. __IOM uint32_t EVENTS_DEVMISS; /*!< (@ 0x00000118) No device address match occurred on the last
  636. received packet */
  637. __IOM uint32_t EVENTS_RSSIEND; /*!< (@ 0x0000011C) Sampling of receive signal strength complete */
  638. __IM uint32_t RESERVED2[2];
  639. __IOM uint32_t EVENTS_BCMATCH; /*!< (@ 0x00000128) Bit counter reached bit count value */
  640. __IM uint32_t RESERVED3;
  641. __IOM uint32_t EVENTS_CRCOK; /*!< (@ 0x00000130) Packet received with CRC ok */
  642. __IOM uint32_t EVENTS_CRCERROR; /*!< (@ 0x00000134) Packet received with CRC error */
  643. __IOM uint32_t EVENTS_FRAMESTART; /*!< (@ 0x00000138) IEEE 802.15.4 length field received */
  644. __IOM uint32_t EVENTS_EDEND; /*!< (@ 0x0000013C) Sampling of energy detection complete. A new
  645. ED sample is ready for readout from the
  646. RADIO.EDSAMPLE register */
  647. __IOM uint32_t EVENTS_EDSTOPPED; /*!< (@ 0x00000140) The sampling of energy detection has stopped */
  648. __IOM uint32_t EVENTS_CCAIDLE; /*!< (@ 0x00000144) Wireless medium in idle - clear to send */
  649. __IOM uint32_t EVENTS_CCABUSY; /*!< (@ 0x00000148) Wireless medium busy - do not send */
  650. __IOM uint32_t EVENTS_CCASTOPPED; /*!< (@ 0x0000014C) The CCA has stopped */
  651. __IOM uint32_t EVENTS_RATEBOOST; /*!< (@ 0x00000150) Ble_LR CI field received, receive mode is changed
  652. from Ble_LR125Kbit to Ble_LR500Kbit. */
  653. __IOM uint32_t EVENTS_TXREADY; /*!< (@ 0x00000154) RADIO has ramped up and is ready to be started
  654. TX path */
  655. __IOM uint32_t EVENTS_RXREADY; /*!< (@ 0x00000158) RADIO has ramped up and is ready to be started
  656. RX path */
  657. __IOM uint32_t EVENTS_MHRMATCH; /*!< (@ 0x0000015C) MAC header match found */
  658. __IM uint32_t RESERVED4[2];
  659. __IOM uint32_t EVENTS_SYNC; /*!< (@ 0x00000168) Preamble indicator */
  660. __IOM uint32_t EVENTS_PHYEND; /*!< (@ 0x0000016C) Generated when last bit is sent on air, or received
  661. from air */
  662. __IOM uint32_t EVENTS_CTEPRESENT; /*!< (@ 0x00000170) CTE is present (early warning right after receiving
  663. CTEInfo byte) */
  664. __IM uint32_t RESERVED5[3];
  665. __IOM uint32_t PUBLISH_READY; /*!< (@ 0x00000180) Publish configuration for event READY */
  666. __IOM uint32_t PUBLISH_ADDRESS; /*!< (@ 0x00000184) Publish configuration for event ADDRESS */
  667. __IOM uint32_t PUBLISH_PAYLOAD; /*!< (@ 0x00000188) Publish configuration for event PAYLOAD */
  668. __IOM uint32_t PUBLISH_END; /*!< (@ 0x0000018C) Publish configuration for event END */
  669. __IOM uint32_t PUBLISH_DISABLED; /*!< (@ 0x00000190) Publish configuration for event DISABLED */
  670. __IOM uint32_t PUBLISH_DEVMATCH; /*!< (@ 0x00000194) Publish configuration for event DEVMATCH */
  671. __IOM uint32_t PUBLISH_DEVMISS; /*!< (@ 0x00000198) Publish configuration for event DEVMISS */
  672. __IOM uint32_t PUBLISH_RSSIEND; /*!< (@ 0x0000019C) Publish configuration for event RSSIEND */
  673. __IM uint32_t RESERVED6[2];
  674. __IOM uint32_t PUBLISH_BCMATCH; /*!< (@ 0x000001A8) Publish configuration for event BCMATCH */
  675. __IM uint32_t RESERVED7;
  676. __IOM uint32_t PUBLISH_CRCOK; /*!< (@ 0x000001B0) Publish configuration for event CRCOK */
  677. __IOM uint32_t PUBLISH_CRCERROR; /*!< (@ 0x000001B4) Publish configuration for event CRCERROR */
  678. __IOM uint32_t PUBLISH_FRAMESTART; /*!< (@ 0x000001B8) Publish configuration for event FRAMESTART */
  679. __IOM uint32_t PUBLISH_EDEND; /*!< (@ 0x000001BC) Publish configuration for event EDEND */
  680. __IOM uint32_t PUBLISH_EDSTOPPED; /*!< (@ 0x000001C0) Publish configuration for event EDSTOPPED */
  681. __IOM uint32_t PUBLISH_CCAIDLE; /*!< (@ 0x000001C4) Publish configuration for event CCAIDLE */
  682. __IOM uint32_t PUBLISH_CCABUSY; /*!< (@ 0x000001C8) Publish configuration for event CCABUSY */
  683. __IOM uint32_t PUBLISH_CCASTOPPED; /*!< (@ 0x000001CC) Publish configuration for event CCASTOPPED */
  684. __IOM uint32_t PUBLISH_RATEBOOST; /*!< (@ 0x000001D0) Publish configuration for event RATEBOOST */
  685. __IOM uint32_t PUBLISH_TXREADY; /*!< (@ 0x000001D4) Publish configuration for event TXREADY */
  686. __IOM uint32_t PUBLISH_RXREADY; /*!< (@ 0x000001D8) Publish configuration for event RXREADY */
  687. __IOM uint32_t PUBLISH_MHRMATCH; /*!< (@ 0x000001DC) Publish configuration for event MHRMATCH */
  688. __IM uint32_t RESERVED8[2];
  689. __IOM uint32_t PUBLISH_SYNC; /*!< (@ 0x000001E8) Publish configuration for event SYNC */
  690. __IOM uint32_t PUBLISH_PHYEND; /*!< (@ 0x000001EC) Publish configuration for event PHYEND */
  691. __IOM uint32_t PUBLISH_CTEPRESENT; /*!< (@ 0x000001F0) Publish configuration for event CTEPRESENT */
  692. __IM uint32_t RESERVED9[3];
  693. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  694. __IM uint32_t RESERVED10[64];
  695. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  696. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  697. __IM uint32_t RESERVED11[61];
  698. __IM uint32_t CRCSTATUS; /*!< (@ 0x00000400) CRC status */
  699. __IM uint32_t RESERVED12;
  700. __IM uint32_t RXMATCH; /*!< (@ 0x00000408) Received address */
  701. __IM uint32_t RXCRC; /*!< (@ 0x0000040C) CRC field of previously received packet */
  702. __IM uint32_t DAI; /*!< (@ 0x00000410) Device address match index */
  703. __IM uint32_t PDUSTAT; /*!< (@ 0x00000414) Payload status */
  704. __IM uint32_t RESERVED13[13];
  705. __IM uint32_t CTESTATUS; /*!< (@ 0x0000044C) CTEInfo parsed from received packet */
  706. __IM uint32_t RESERVED14[2];
  707. __IM uint32_t DFESTATUS; /*!< (@ 0x00000458) DFE status information */
  708. __IM uint32_t RESERVED15[42];
  709. __IOM uint32_t PACKETPTR; /*!< (@ 0x00000504) Packet pointer */
  710. __IOM uint32_t FREQUENCY; /*!< (@ 0x00000508) Frequency */
  711. __IOM uint32_t TXPOWER; /*!< (@ 0x0000050C) Output power */
  712. __IOM uint32_t MODE; /*!< (@ 0x00000510) Data rate and modulation */
  713. __IOM uint32_t PCNF0; /*!< (@ 0x00000514) Packet configuration register 0 */
  714. __IOM uint32_t PCNF1; /*!< (@ 0x00000518) Packet configuration register 1 */
  715. __IOM uint32_t BASE0; /*!< (@ 0x0000051C) Base address 0 */
  716. __IOM uint32_t BASE1; /*!< (@ 0x00000520) Base address 1 */
  717. __IOM uint32_t PREFIX0; /*!< (@ 0x00000524) Prefixes bytes for logical addresses 0-3 */
  718. __IOM uint32_t PREFIX1; /*!< (@ 0x00000528) Prefixes bytes for logical addresses 4-7 */
  719. __IOM uint32_t TXADDRESS; /*!< (@ 0x0000052C) Transmit address select */
  720. __IOM uint32_t RXADDRESSES; /*!< (@ 0x00000530) Receive address select */
  721. __IOM uint32_t CRCCNF; /*!< (@ 0x00000534) CRC configuration */
  722. __IOM uint32_t CRCPOLY; /*!< (@ 0x00000538) CRC polynomial */
  723. __IOM uint32_t CRCINIT; /*!< (@ 0x0000053C) CRC initial value */
  724. __IM uint32_t RESERVED16;
  725. __IOM uint32_t TIFS; /*!< (@ 0x00000544) Interframe spacing in us */
  726. __IM uint32_t RSSISAMPLE; /*!< (@ 0x00000548) RSSI sample */
  727. __IM uint32_t RESERVED17;
  728. __IM uint32_t STATE; /*!< (@ 0x00000550) Current radio state */
  729. __IOM uint32_t DATAWHITEIV; /*!< (@ 0x00000554) Data whitening initial value */
  730. __IM uint32_t RESERVED18[2];
  731. __IOM uint32_t BCC; /*!< (@ 0x00000560) Bit counter compare */
  732. __IM uint32_t RESERVED19[39];
  733. __IOM uint32_t DAB[8]; /*!< (@ 0x00000600) Description collection: Device address base segment
  734. n */
  735. __IOM uint32_t DAP[8]; /*!< (@ 0x00000620) Description collection: Device address prefix
  736. n */
  737. __IOM uint32_t DACNF; /*!< (@ 0x00000640) Device address match configuration */
  738. __IOM uint32_t MHRMATCHCONF; /*!< (@ 0x00000644) Search pattern configuration */
  739. __IOM uint32_t MHRMATCHMAS; /*!< (@ 0x00000648) Pattern mask */
  740. __IM uint32_t RESERVED20;
  741. __IOM uint32_t MODECNF0; /*!< (@ 0x00000650) Radio mode configuration register 0 */
  742. __IM uint32_t RESERVED21[3];
  743. __IOM uint32_t SFD; /*!< (@ 0x00000660) IEEE 802.15.4 start of frame delimiter */
  744. __IOM uint32_t EDCNT; /*!< (@ 0x00000664) IEEE 802.15.4 energy detect loop count */
  745. __IM uint32_t EDSAMPLE; /*!< (@ 0x00000668) IEEE 802.15.4 energy detect level */
  746. __IOM uint32_t CCACTRL; /*!< (@ 0x0000066C) IEEE 802.15.4 clear channel assessment control */
  747. __IM uint32_t RESERVED22[164];
  748. __IOM uint32_t DFEMODE; /*!< (@ 0x00000900) Whether to use Angle-of-Arrival (AOA) or Angle-of-Departure
  749. (AOD) */
  750. __IOM uint32_t CTEINLINECONF; /*!< (@ 0x00000904) Configuration for CTE inline mode */
  751. __IM uint32_t RESERVED23[2];
  752. __IOM uint32_t DFECTRL1; /*!< (@ 0x00000910) Various configuration for Direction finding */
  753. __IOM uint32_t DFECTRL2; /*!< (@ 0x00000914) Start offset for Direction finding */
  754. __IM uint32_t RESERVED24[4];
  755. __IOM uint32_t SWITCHPATTERN; /*!< (@ 0x00000928) GPIO patterns to be used for each antenna */
  756. __IOM uint32_t CLEARPATTERN; /*!< (@ 0x0000092C) Clear the GPIO pattern array for antenna control */
  757. __IOM RADIO_PSEL_Type PSEL; /*!< (@ 0x00000930) Unspecified */
  758. __IOM RADIO_DFEPACKET_Type DFEPACKET; /*!< (@ 0x00000950) DFE packet EasyDMA channel */
  759. __IM uint32_t RESERVED25[424];
  760. __IOM uint32_t POWER; /*!< (@ 0x00000FFC) Peripheral power control */
  761. } NRF_RADIO_Type; /*!< Size = 4096 (0x1000) */
  762. /* =========================================================================================================================== */
  763. /* ================ RNG_NS ================ */
  764. /* =========================================================================================================================== */
  765. /**
  766. * @brief Random Number Generator (RNG_NS)
  767. */
  768. typedef struct { /*!< (@ 0x41009000) RNG_NS Structure */
  769. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Task starting the random number generator */
  770. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Task stopping the random number generator */
  771. __IM uint32_t RESERVED[30];
  772. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000080) Subscribe configuration for task START */
  773. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000084) Subscribe configuration for task STOP */
  774. __IM uint32_t RESERVED1[30];
  775. __IOM uint32_t EVENTS_VALRDY; /*!< (@ 0x00000100) Event being generated for every new random number
  776. written to the VALUE register */
  777. __IM uint32_t RESERVED2[31];
  778. __IOM uint32_t PUBLISH_VALRDY; /*!< (@ 0x00000180) Publish configuration for event VALRDY */
  779. __IM uint32_t RESERVED3[31];
  780. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  781. __IM uint32_t RESERVED4[64];
  782. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  783. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  784. __IM uint32_t RESERVED5[126];
  785. __IOM uint32_t CONFIG; /*!< (@ 0x00000504) Configuration register */
  786. __IM uint32_t VALUE; /*!< (@ 0x00000508) Output random number */
  787. } NRF_RNG_Type; /*!< Size = 1292 (0x50c) */
  788. /* =========================================================================================================================== */
  789. /* ================ GPIOTE_NS ================ */
  790. /* =========================================================================================================================== */
  791. /**
  792. * @brief GPIO Tasks and Events (GPIOTE_NS)
  793. */
  794. typedef struct { /*!< (@ 0x4100A000) GPIOTE_NS Structure */
  795. __OM uint32_t TASKS_OUT[8]; /*!< (@ 0x00000000) Description collection: Task for writing to pin
  796. specified in CONFIG[n].PSEL. Action on pin
  797. is configured in CONFIG[n].POLARITY. */
  798. __IM uint32_t RESERVED[4];
  799. __OM uint32_t TASKS_SET[8]; /*!< (@ 0x00000030) Description collection: Task for writing to pin
  800. specified in CONFIG[n].PSEL. Action on pin
  801. is to set it high. */
  802. __IM uint32_t RESERVED1[4];
  803. __OM uint32_t TASKS_CLR[8]; /*!< (@ 0x00000060) Description collection: Task for writing to pin
  804. specified in CONFIG[n].PSEL. Action on pin
  805. is to set it low. */
  806. __IOM uint32_t SUBSCRIBE_OUT[8]; /*!< (@ 0x00000080) Description collection: Subscribe configuration
  807. for task OUT[n] */
  808. __IM uint32_t RESERVED2[4];
  809. __IOM uint32_t SUBSCRIBE_SET[8]; /*!< (@ 0x000000B0) Description collection: Subscribe configuration
  810. for task SET[n] */
  811. __IM uint32_t RESERVED3[4];
  812. __IOM uint32_t SUBSCRIBE_CLR[8]; /*!< (@ 0x000000E0) Description collection: Subscribe configuration
  813. for task CLR[n] */
  814. __IOM uint32_t EVENTS_IN[8]; /*!< (@ 0x00000100) Description collection: Event generated from
  815. pin specified in CONFIG[n].PSEL */
  816. __IM uint32_t RESERVED4[23];
  817. __IOM uint32_t EVENTS_PORT; /*!< (@ 0x0000017C) Event generated from multiple input GPIO pins
  818. with SENSE mechanism enabled */
  819. __IOM uint32_t PUBLISH_IN[8]; /*!< (@ 0x00000180) Description collection: Publish configuration
  820. for event IN[n] */
  821. __IM uint32_t RESERVED5[23];
  822. __IOM uint32_t PUBLISH_PORT; /*!< (@ 0x000001FC) Publish configuration for event PORT */
  823. __IM uint32_t RESERVED6[65];
  824. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  825. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  826. __IM uint32_t RESERVED7[126];
  827. __IOM uint32_t LATENCY; /*!< (@ 0x00000504) Latency selection for Event mode (MODE=Event)
  828. with rising or falling edge detection on
  829. the pin. */
  830. __IM uint32_t RESERVED8[2];
  831. __IOM uint32_t CONFIG[8]; /*!< (@ 0x00000510) Description collection: Configuration for OUT[n],
  832. SET[n], and CLR[n] tasks and IN[n] event */
  833. } NRF_GPIOTE_Type; /*!< Size = 1328 (0x530) */
  834. /* =========================================================================================================================== */
  835. /* ================ WDT_NS ================ */
  836. /* =========================================================================================================================== */
  837. /**
  838. * @brief Watchdog Timer (WDT_NS)
  839. */
  840. typedef struct { /*!< (@ 0x4100B000) WDT_NS Structure */
  841. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start the watchdog */
  842. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stop the watchdog timer. */
  843. __IM uint32_t RESERVED[30];
  844. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000080) Subscribe configuration for task START */
  845. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000084) Subscribe configuration for task STOP */
  846. __IM uint32_t RESERVED1[30];
  847. __IOM uint32_t EVENTS_TIMEOUT; /*!< (@ 0x00000100) Watchdog timeout */
  848. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) Watchdog stopped */
  849. __IM uint32_t RESERVED2[30];
  850. __IOM uint32_t PUBLISH_TIMEOUT; /*!< (@ 0x00000180) Publish configuration for event TIMEOUT */
  851. __IOM uint32_t PUBLISH_STOPPED; /*!< (@ 0x00000184) Publish configuration for event STOPPED */
  852. __IM uint32_t RESERVED3[95];
  853. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  854. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  855. __IM uint32_t RESERVED4[6];
  856. __IOM uint32_t NMIENSET; /*!< (@ 0x00000324) Enable interrupt */
  857. __IOM uint32_t NMIENCLR; /*!< (@ 0x00000328) Disable interrupt */
  858. __IM uint32_t RESERVED5[53];
  859. __IM uint32_t RUNSTATUS; /*!< (@ 0x00000400) Run status */
  860. __IM uint32_t REQSTATUS; /*!< (@ 0x00000404) Request status */
  861. __IM uint32_t RESERVED6[63];
  862. __IOM uint32_t CRV; /*!< (@ 0x00000504) Counter reload value */
  863. __IOM uint32_t RREN; /*!< (@ 0x00000508) Enable register for reload request registers */
  864. __IOM uint32_t CONFIG; /*!< (@ 0x0000050C) Configuration register */
  865. __IM uint32_t RESERVED7[4];
  866. __OM uint32_t TSEN; /*!< (@ 0x00000520) Task Stop Enable */
  867. __IM uint32_t RESERVED8[55];
  868. __OM uint32_t RR[8]; /*!< (@ 0x00000600) Description collection: Reload request n */
  869. } NRF_WDT_Type; /*!< Size = 1568 (0x620) */
  870. /* =========================================================================================================================== */
  871. /* ================ TIMER0_NS ================ */
  872. /* =========================================================================================================================== */
  873. /**
  874. * @brief Timer/Counter 0 (TIMER0_NS)
  875. */
  876. typedef struct { /*!< (@ 0x4100C000) TIMER0_NS Structure */
  877. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start Timer */
  878. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stop Timer */
  879. __OM uint32_t TASKS_COUNT; /*!< (@ 0x00000008) Increment Timer (Counter mode only) */
  880. __OM uint32_t TASKS_CLEAR; /*!< (@ 0x0000000C) Clear time */
  881. __OM uint32_t TASKS_SHUTDOWN; /*!< (@ 0x00000010) Deprecated register - Shut down timer */
  882. __IM uint32_t RESERVED[11];
  883. __OM uint32_t TASKS_CAPTURE[8]; /*!< (@ 0x00000040) Description collection: Capture Timer value to
  884. CC[n] register */
  885. __IM uint32_t RESERVED1[8];
  886. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000080) Subscribe configuration for task START */
  887. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000084) Subscribe configuration for task STOP */
  888. __IOM uint32_t SUBSCRIBE_COUNT; /*!< (@ 0x00000088) Subscribe configuration for task COUNT */
  889. __IOM uint32_t SUBSCRIBE_CLEAR; /*!< (@ 0x0000008C) Subscribe configuration for task CLEAR */
  890. __IOM uint32_t SUBSCRIBE_SHUTDOWN; /*!< (@ 0x00000090) Deprecated register - Subscribe configuration
  891. for task SHUTDOWN */
  892. __IM uint32_t RESERVED2[11];
  893. __IOM uint32_t SUBSCRIBE_CAPTURE[8]; /*!< (@ 0x000000C0) Description collection: Subscribe configuration
  894. for task CAPTURE[n] */
  895. __IM uint32_t RESERVED3[24];
  896. __IOM uint32_t EVENTS_COMPARE[8]; /*!< (@ 0x00000140) Description collection: Compare event on CC[n]
  897. match */
  898. __IM uint32_t RESERVED4[24];
  899. __IOM uint32_t PUBLISH_COMPARE[8]; /*!< (@ 0x000001C0) Description collection: Publish configuration
  900. for event COMPARE[n] */
  901. __IM uint32_t RESERVED5[8];
  902. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  903. __IM uint32_t RESERVED6[63];
  904. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  905. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  906. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  907. __IM uint32_t RESERVED7[126];
  908. __IOM uint32_t MODE; /*!< (@ 0x00000504) Timer mode selection */
  909. __IOM uint32_t BITMODE; /*!< (@ 0x00000508) Configure the number of bits used by the TIMER */
  910. __IM uint32_t RESERVED8;
  911. __IOM uint32_t PRESCALER; /*!< (@ 0x00000510) Timer prescaler register */
  912. __IM uint32_t RESERVED9[11];
  913. __IOM uint32_t CC[8]; /*!< (@ 0x00000540) Description collection: Capture/Compare register
  914. n */
  915. __IM uint32_t RESERVED10[8];
  916. __IOM uint32_t ONESHOTEN[8]; /*!< (@ 0x00000580) Description collection: Enable one-shot operation
  917. for Capture/Compare channel n */
  918. } NRF_TIMER_Type; /*!< Size = 1440 (0x5a0) */
  919. /* =========================================================================================================================== */
  920. /* ================ ECB_NS ================ */
  921. /* =========================================================================================================================== */
  922. /**
  923. * @brief AES ECB Mode Encryption (ECB_NS)
  924. */
  925. typedef struct { /*!< (@ 0x4100D000) ECB_NS Structure */
  926. __OM uint32_t TASKS_STARTECB; /*!< (@ 0x00000000) Start ECB block encrypt */
  927. __OM uint32_t TASKS_STOPECB; /*!< (@ 0x00000004) Abort a possible executing ECB operation */
  928. __IM uint32_t RESERVED[30];
  929. __IOM uint32_t SUBSCRIBE_STARTECB; /*!< (@ 0x00000080) Subscribe configuration for task STARTECB */
  930. __IOM uint32_t SUBSCRIBE_STOPECB; /*!< (@ 0x00000084) Subscribe configuration for task STOPECB */
  931. __IM uint32_t RESERVED1[30];
  932. __IOM uint32_t EVENTS_ENDECB; /*!< (@ 0x00000100) ECB block encrypt complete */
  933. __IOM uint32_t EVENTS_ERRORECB; /*!< (@ 0x00000104) ECB block encrypt aborted because of a STOPECB
  934. task or due to an error */
  935. __IM uint32_t RESERVED2[30];
  936. __IOM uint32_t PUBLISH_ENDECB; /*!< (@ 0x00000180) Publish configuration for event ENDECB */
  937. __IOM uint32_t PUBLISH_ERRORECB; /*!< (@ 0x00000184) Publish configuration for event ERRORECB */
  938. __IM uint32_t RESERVED3[95];
  939. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  940. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  941. __IM uint32_t RESERVED4[126];
  942. __IOM uint32_t ECBDATAPTR; /*!< (@ 0x00000504) ECB block encrypt memory pointers */
  943. } NRF_ECB_Type; /*!< Size = 1288 (0x508) */
  944. /* =========================================================================================================================== */
  945. /* ================ AAR_NS ================ */
  946. /* =========================================================================================================================== */
  947. /**
  948. * @brief Accelerated Address Resolver (AAR_NS)
  949. */
  950. typedef struct { /*!< (@ 0x4100E000) AAR_NS Structure */
  951. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start resolving addresses based on IRKs specified
  952. in the IRK data structure */
  953. __IM uint32_t RESERVED;
  954. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000008) Stop resolving addresses */
  955. __IM uint32_t RESERVED1[29];
  956. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000080) Subscribe configuration for task START */
  957. __IM uint32_t RESERVED2;
  958. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000088) Subscribe configuration for task STOP */
  959. __IM uint32_t RESERVED3[29];
  960. __IOM uint32_t EVENTS_END; /*!< (@ 0x00000100) Address resolution procedure complete */
  961. __IOM uint32_t EVENTS_RESOLVED; /*!< (@ 0x00000104) Address resolved */
  962. __IOM uint32_t EVENTS_NOTRESOLVED; /*!< (@ 0x00000108) Address not resolved */
  963. __IM uint32_t RESERVED4[29];
  964. __IOM uint32_t PUBLISH_END; /*!< (@ 0x00000180) Publish configuration for event END */
  965. __IOM uint32_t PUBLISH_RESOLVED; /*!< (@ 0x00000184) Publish configuration for event RESOLVED */
  966. __IOM uint32_t PUBLISH_NOTRESOLVED; /*!< (@ 0x00000188) Publish configuration for event NOTRESOLVED */
  967. __IM uint32_t RESERVED5[94];
  968. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  969. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  970. __IM uint32_t RESERVED6[61];
  971. __IM uint32_t STATUS; /*!< (@ 0x00000400) Resolution status */
  972. __IM uint32_t RESERVED7[63];
  973. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable AAR */
  974. __IOM uint32_t NIRK; /*!< (@ 0x00000504) Number of IRKs */
  975. __IOM uint32_t IRKPTR; /*!< (@ 0x00000508) Pointer to IRK data structure */
  976. __IM uint32_t RESERVED8;
  977. __IOM uint32_t ADDRPTR; /*!< (@ 0x00000510) Pointer to the resolvable address */
  978. __IOM uint32_t SCRATCHPTR; /*!< (@ 0x00000514) Pointer to data area used for temporary storage */
  979. } NRF_AAR_Type; /*!< Size = 1304 (0x518) */
  980. /* =========================================================================================================================== */
  981. /* ================ CCM_NS ================ */
  982. /* =========================================================================================================================== */
  983. /**
  984. * @brief AES CCM mode encryption (CCM_NS)
  985. */
  986. typedef struct { /*!< (@ 0x4100E000) CCM_NS Structure */
  987. __OM uint32_t TASKS_KSGEN; /*!< (@ 0x00000000) Start generation of keystream. This operation
  988. will stop by itself when completed. */
  989. __OM uint32_t TASKS_CRYPT; /*!< (@ 0x00000004) Start encryption/decryption. This operation will
  990. stop by itself when completed. */
  991. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000008) Stop encryption/decryption */
  992. __OM uint32_t TASKS_RATEOVERRIDE; /*!< (@ 0x0000000C) Override DATARATE setting in MODE register with
  993. the contents of the RATEOVERRIDE register
  994. for any ongoing encryption/decryption */
  995. __IM uint32_t RESERVED[28];
  996. __IOM uint32_t SUBSCRIBE_KSGEN; /*!< (@ 0x00000080) Subscribe configuration for task KSGEN */
  997. __IOM uint32_t SUBSCRIBE_CRYPT; /*!< (@ 0x00000084) Subscribe configuration for task CRYPT */
  998. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000088) Subscribe configuration for task STOP */
  999. __IOM uint32_t SUBSCRIBE_RATEOVERRIDE; /*!< (@ 0x0000008C) Subscribe configuration for task RATEOVERRIDE */
  1000. __IM uint32_t RESERVED1[28];
  1001. __IOM uint32_t EVENTS_ENDKSGEN; /*!< (@ 0x00000100) Keystream generation complete */
  1002. __IOM uint32_t EVENTS_ENDCRYPT; /*!< (@ 0x00000104) Encrypt/decrypt complete */
  1003. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000108) Deprecated register - CCM error event */
  1004. __IM uint32_t RESERVED2[29];
  1005. __IOM uint32_t PUBLISH_ENDKSGEN; /*!< (@ 0x00000180) Publish configuration for event ENDKSGEN */
  1006. __IOM uint32_t PUBLISH_ENDCRYPT; /*!< (@ 0x00000184) Publish configuration for event ENDCRYPT */
  1007. __IOM uint32_t PUBLISH_ERROR; /*!< (@ 0x00000188) Deprecated register - Publish configuration for
  1008. event ERROR */
  1009. __IM uint32_t RESERVED3[29];
  1010. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1011. __IM uint32_t RESERVED4[64];
  1012. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1013. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1014. __IM uint32_t RESERVED5[61];
  1015. __IM uint32_t MICSTATUS; /*!< (@ 0x00000400) MIC check result */
  1016. __IM uint32_t RESERVED6[63];
  1017. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable */
  1018. __IOM uint32_t MODE; /*!< (@ 0x00000504) Operation mode */
  1019. __IOM uint32_t CNFPTR; /*!< (@ 0x00000508) Pointer to data structure holding the AES key
  1020. and the NONCE vector */
  1021. __IOM uint32_t INPTR; /*!< (@ 0x0000050C) Input pointer */
  1022. __IOM uint32_t OUTPTR; /*!< (@ 0x00000510) Output pointer */
  1023. __IOM uint32_t SCRATCHPTR; /*!< (@ 0x00000514) Pointer to data area used for temporary storage */
  1024. __IOM uint32_t MAXPACKETSIZE; /*!< (@ 0x00000518) Length of keystream generated when MODE.LENGTH
  1025. = Extended */
  1026. __IOM uint32_t RATEOVERRIDE; /*!< (@ 0x0000051C) Data rate override setting. */
  1027. __IOM uint32_t HEADERMASK; /*!< (@ 0x00000520) Header (S0) mask. */
  1028. } NRF_CCM_Type; /*!< Size = 1316 (0x524) */
  1029. /* =========================================================================================================================== */
  1030. /* ================ DPPIC_NS ================ */
  1031. /* =========================================================================================================================== */
  1032. /**
  1033. * @brief Distributed programmable peripheral interconnect controller (DPPIC_NS)
  1034. */
  1035. typedef struct { /*!< (@ 0x4100F000) DPPIC_NS Structure */
  1036. __OM DPPIC_TASKS_CHG_Type TASKS_CHG[6]; /*!< (@ 0x00000000) Channel group tasks */
  1037. __IM uint32_t RESERVED[20];
  1038. __IOM DPPIC_SUBSCRIBE_CHG_Type SUBSCRIBE_CHG[6];/*!< (@ 0x00000080) Subscribe configuration for tasks */
  1039. __IM uint32_t RESERVED1[276];
  1040. __IOM uint32_t CHEN; /*!< (@ 0x00000500) Channel enable register */
  1041. __IOM uint32_t CHENSET; /*!< (@ 0x00000504) Channel enable set register */
  1042. __IOM uint32_t CHENCLR; /*!< (@ 0x00000508) Channel enable clear register */
  1043. __IM uint32_t RESERVED2[189];
  1044. __IOM uint32_t CHG[6]; /*!< (@ 0x00000800) Description collection: Channel group n Note:
  1045. Writes to this register are ignored if either
  1046. SUBSCRIBE_CHG[n].EN or SUBSCRIBE_CHG[n].DIS
  1047. is enabled */
  1048. } NRF_DPPIC_Type; /*!< Size = 2072 (0x818) */
  1049. /* =========================================================================================================================== */
  1050. /* ================ TEMP_NS ================ */
  1051. /* =========================================================================================================================== */
  1052. /**
  1053. * @brief Temperature Sensor (TEMP_NS)
  1054. */
  1055. typedef struct { /*!< (@ 0x41010000) TEMP_NS Structure */
  1056. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start temperature measurement */
  1057. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stop temperature measurement */
  1058. __IM uint32_t RESERVED[30];
  1059. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000080) Subscribe configuration for task START */
  1060. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000084) Subscribe configuration for task STOP */
  1061. __IM uint32_t RESERVED1[30];
  1062. __IOM uint32_t EVENTS_DATARDY; /*!< (@ 0x00000100) Temperature measurement complete, data ready */
  1063. __IM uint32_t RESERVED2[31];
  1064. __IOM uint32_t PUBLISH_DATARDY; /*!< (@ 0x00000180) Publish configuration for event DATARDY */
  1065. __IM uint32_t RESERVED3[96];
  1066. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1067. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1068. __IM uint32_t RESERVED4[127];
  1069. __IM int32_t TEMP; /*!< (@ 0x00000508) Temperature in degC (0.25deg steps) */
  1070. __IM uint32_t RESERVED5[5];
  1071. __IOM uint32_t A0; /*!< (@ 0x00000520) Slope of 1st piece wise linear function */
  1072. __IOM uint32_t A1; /*!< (@ 0x00000524) Slope of 2nd piece wise linear function */
  1073. __IOM uint32_t A2; /*!< (@ 0x00000528) Slope of 3rd piece wise linear function */
  1074. __IOM uint32_t A3; /*!< (@ 0x0000052C) Slope of 4th piece wise linear function */
  1075. __IOM uint32_t A4; /*!< (@ 0x00000530) Slope of 5th piece wise linear function */
  1076. __IOM uint32_t A5; /*!< (@ 0x00000534) Slope of 6th piece wise linear function */
  1077. __IM uint32_t RESERVED6[2];
  1078. __IOM uint32_t B0; /*!< (@ 0x00000540) y-intercept of 1st piece wise linear function */
  1079. __IOM uint32_t B1; /*!< (@ 0x00000544) y-intercept of 2nd piece wise linear function */
  1080. __IOM uint32_t B2; /*!< (@ 0x00000548) y-intercept of 3rd piece wise linear function */
  1081. __IOM uint32_t B3; /*!< (@ 0x0000054C) y-intercept of 4th piece wise linear function */
  1082. __IOM uint32_t B4; /*!< (@ 0x00000550) y-intercept of 5th piece wise linear function */
  1083. __IOM uint32_t B5; /*!< (@ 0x00000554) y-intercept of 6th piece wise linear function */
  1084. __IM uint32_t RESERVED7[2];
  1085. __IOM uint32_t T0; /*!< (@ 0x00000560) End point of 1st piece wise linear function */
  1086. __IOM uint32_t T1; /*!< (@ 0x00000564) End point of 2nd piece wise linear function */
  1087. __IOM uint32_t T2; /*!< (@ 0x00000568) End point of 3rd piece wise linear function */
  1088. __IOM uint32_t T3; /*!< (@ 0x0000056C) End point of 4th piece wise linear function */
  1089. __IOM uint32_t T4; /*!< (@ 0x00000570) End point of 5th piece wise linear function */
  1090. } NRF_TEMP_Type; /*!< Size = 1396 (0x574) */
  1091. /* =========================================================================================================================== */
  1092. /* ================ RTC0_NS ================ */
  1093. /* =========================================================================================================================== */
  1094. /**
  1095. * @brief Real-time counter 0 (RTC0_NS)
  1096. */
  1097. typedef struct { /*!< (@ 0x41011000) RTC0_NS Structure */
  1098. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start RTC counter */
  1099. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stop RTC counter */
  1100. __OM uint32_t TASKS_CLEAR; /*!< (@ 0x00000008) Clear RTC counter */
  1101. __OM uint32_t TASKS_TRIGOVRFLW; /*!< (@ 0x0000000C) Set counter to 0xFFFFF0 */
  1102. __IM uint32_t RESERVED[12];
  1103. __OM uint32_t TASKS_CAPTURE[4]; /*!< (@ 0x00000040) Description collection: Capture RTC counter to
  1104. CC[n] register */
  1105. __IM uint32_t RESERVED1[12];
  1106. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000080) Subscribe configuration for task START */
  1107. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000084) Subscribe configuration for task STOP */
  1108. __IOM uint32_t SUBSCRIBE_CLEAR; /*!< (@ 0x00000088) Subscribe configuration for task CLEAR */
  1109. __IOM uint32_t SUBSCRIBE_TRIGOVRFLW; /*!< (@ 0x0000008C) Subscribe configuration for task TRIGOVRFLW */
  1110. __IM uint32_t RESERVED2[12];
  1111. __IOM uint32_t SUBSCRIBE_CAPTURE[4]; /*!< (@ 0x000000C0) Description collection: Subscribe configuration
  1112. for task CAPTURE[n] */
  1113. __IM uint32_t RESERVED3[12];
  1114. __IOM uint32_t EVENTS_TICK; /*!< (@ 0x00000100) Event on counter increment */
  1115. __IOM uint32_t EVENTS_OVRFLW; /*!< (@ 0x00000104) Event on counter overflow */
  1116. __IM uint32_t RESERVED4[14];
  1117. __IOM uint32_t EVENTS_COMPARE[4]; /*!< (@ 0x00000140) Description collection: Compare event on CC[n]
  1118. match */
  1119. __IM uint32_t RESERVED5[12];
  1120. __IOM uint32_t PUBLISH_TICK; /*!< (@ 0x00000180) Publish configuration for event TICK */
  1121. __IOM uint32_t PUBLISH_OVRFLW; /*!< (@ 0x00000184) Publish configuration for event OVRFLW */
  1122. __IM uint32_t RESERVED6[14];
  1123. __IOM uint32_t PUBLISH_COMPARE[4]; /*!< (@ 0x000001C0) Description collection: Publish configuration
  1124. for event COMPARE[n] */
  1125. __IM uint32_t RESERVED7[12];
  1126. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1127. __IM uint32_t RESERVED8[64];
  1128. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1129. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1130. __IM uint32_t RESERVED9[13];
  1131. __IOM uint32_t EVTEN; /*!< (@ 0x00000340) Enable or disable event routing */
  1132. __IOM uint32_t EVTENSET; /*!< (@ 0x00000344) Enable event routing */
  1133. __IOM uint32_t EVTENCLR; /*!< (@ 0x00000348) Disable event routing */
  1134. __IM uint32_t RESERVED10[110];
  1135. __IM uint32_t COUNTER; /*!< (@ 0x00000504) Current counter value */
  1136. __IOM uint32_t PRESCALER; /*!< (@ 0x00000508) 12-bit prescaler for counter frequency (32768/(PRESCALER+1)).
  1137. Must be written when RTC is stopped. */
  1138. __IM uint32_t RESERVED11[13];
  1139. __IOM uint32_t CC[4]; /*!< (@ 0x00000540) Description collection: Compare register n */
  1140. } NRF_RTC_Type; /*!< Size = 1360 (0x550) */
  1141. /* =========================================================================================================================== */
  1142. /* ================ IPC_NS ================ */
  1143. /* =========================================================================================================================== */
  1144. /**
  1145. * @brief Interprocessor communication (IPC_NS)
  1146. */
  1147. typedef struct { /*!< (@ 0x41012000) IPC_NS Structure */
  1148. __OM uint32_t TASKS_SEND[16]; /*!< (@ 0x00000000) Description collection: Trigger events on IPC
  1149. channel enabled in SEND_CNF[n] */
  1150. __IM uint32_t RESERVED[16];
  1151. __IOM uint32_t SUBSCRIBE_SEND[16]; /*!< (@ 0x00000080) Description collection: Subscribe configuration
  1152. for task SEND[n] */
  1153. __IM uint32_t RESERVED1[16];
  1154. __IOM uint32_t EVENTS_RECEIVE[16]; /*!< (@ 0x00000100) Description collection: Event received on one
  1155. or more of the enabled IPC channels in RECEIVE_CNF[n] */
  1156. __IM uint32_t RESERVED2[16];
  1157. __IOM uint32_t PUBLISH_RECEIVE[16]; /*!< (@ 0x00000180) Description collection: Publish configuration
  1158. for event RECEIVE[n] */
  1159. __IM uint32_t RESERVED3[80];
  1160. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1161. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1162. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1163. __IM uint32_t INTPEND; /*!< (@ 0x0000030C) Pending interrupts */
  1164. __IM uint32_t RESERVED4[128];
  1165. __IOM uint32_t SEND_CNF[16]; /*!< (@ 0x00000510) Description collection: Send event configuration
  1166. for TASKS_SEND[n] */
  1167. __IM uint32_t RESERVED5[16];
  1168. __IOM uint32_t RECEIVE_CNF[16]; /*!< (@ 0x00000590) Description collection: Receive event configuration
  1169. for EVENTS_RECEIVE[n] */
  1170. __IM uint32_t RESERVED6[16];
  1171. __IOM uint32_t GPMEM[2]; /*!< (@ 0x00000610) Description collection: General purpose memory */
  1172. } NRF_IPC_Type; /*!< Size = 1560 (0x618) */
  1173. /* =========================================================================================================================== */
  1174. /* ================ SPIM0_NS ================ */
  1175. /* =========================================================================================================================== */
  1176. /**
  1177. * @brief Serial Peripheral Interface Master with EasyDMA (SPIM0_NS)
  1178. */
  1179. typedef struct { /*!< (@ 0x41013000) SPIM0_NS Structure */
  1180. __IM uint32_t RESERVED[4];
  1181. __OM uint32_t TASKS_START; /*!< (@ 0x00000010) Start SPI transaction */
  1182. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000014) Stop SPI transaction */
  1183. __IM uint32_t RESERVED1;
  1184. __OM uint32_t TASKS_SUSPEND; /*!< (@ 0x0000001C) Suspend SPI transaction */
  1185. __OM uint32_t TASKS_RESUME; /*!< (@ 0x00000020) Resume SPI transaction */
  1186. __IM uint32_t RESERVED2[27];
  1187. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000090) Subscribe configuration for task START */
  1188. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000094) Subscribe configuration for task STOP */
  1189. __IM uint32_t RESERVED3;
  1190. __IOM uint32_t SUBSCRIBE_SUSPEND; /*!< (@ 0x0000009C) Subscribe configuration for task SUSPEND */
  1191. __IOM uint32_t SUBSCRIBE_RESUME; /*!< (@ 0x000000A0) Subscribe configuration for task RESUME */
  1192. __IM uint32_t RESERVED4[24];
  1193. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) SPI transaction has stopped */
  1194. __IM uint32_t RESERVED5[2];
  1195. __IOM uint32_t EVENTS_ENDRX; /*!< (@ 0x00000110) End of RXD buffer reached */
  1196. __IM uint32_t RESERVED6;
  1197. __IOM uint32_t EVENTS_END; /*!< (@ 0x00000118) End of RXD buffer and TXD buffer reached */
  1198. __IM uint32_t RESERVED7;
  1199. __IOM uint32_t EVENTS_ENDTX; /*!< (@ 0x00000120) End of TXD buffer reached */
  1200. __IM uint32_t RESERVED8[10];
  1201. __IOM uint32_t EVENTS_STARTED; /*!< (@ 0x0000014C) Transaction started */
  1202. __IM uint32_t RESERVED9[13];
  1203. __IOM uint32_t PUBLISH_STOPPED; /*!< (@ 0x00000184) Publish configuration for event STOPPED */
  1204. __IM uint32_t RESERVED10[2];
  1205. __IOM uint32_t PUBLISH_ENDRX; /*!< (@ 0x00000190) Publish configuration for event ENDRX */
  1206. __IM uint32_t RESERVED11;
  1207. __IOM uint32_t PUBLISH_END; /*!< (@ 0x00000198) Publish configuration for event END */
  1208. __IM uint32_t RESERVED12;
  1209. __IOM uint32_t PUBLISH_ENDTX; /*!< (@ 0x000001A0) Publish configuration for event ENDTX */
  1210. __IM uint32_t RESERVED13[10];
  1211. __IOM uint32_t PUBLISH_STARTED; /*!< (@ 0x000001CC) Publish configuration for event STARTED */
  1212. __IM uint32_t RESERVED14[12];
  1213. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1214. __IM uint32_t RESERVED15[64];
  1215. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1216. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1217. __IM uint32_t RESERVED16[61];
  1218. __IOM uint32_t STALLSTAT; /*!< (@ 0x00000400) Stall status for EasyDMA RAM accesses. The fields
  1219. in this register is set to STALL by hardware
  1220. whenever a stall occurres and can be cleared
  1221. (set to NOSTALL) by the CPU. */
  1222. __IM uint32_t RESERVED17[63];
  1223. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable SPIM */
  1224. __IM uint32_t RESERVED18;
  1225. __IOM SPIM_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  1226. __IM uint32_t RESERVED19[3];
  1227. __IOM uint32_t FREQUENCY; /*!< (@ 0x00000524) SPI frequency. Accuracy depends on the HFCLK
  1228. source selected. */
  1229. __IM uint32_t RESERVED20[3];
  1230. __IOM SPIM_RXD_Type RXD; /*!< (@ 0x00000534) RXD EasyDMA channel */
  1231. __IOM SPIM_TXD_Type TXD; /*!< (@ 0x00000544) TXD EasyDMA channel */
  1232. __IOM uint32_t CONFIG; /*!< (@ 0x00000554) Configuration register */
  1233. __IM uint32_t RESERVED21[2];
  1234. __IOM SPIM_IFTIMING_Type IFTIMING; /*!< (@ 0x00000560) Unspecified */
  1235. __IOM uint32_t CSNPOL; /*!< (@ 0x00000568) Polarity of CSN output */
  1236. __IOM uint32_t PSELDCX; /*!< (@ 0x0000056C) Pin select for DCX signal */
  1237. __IOM uint32_t DCXCNT; /*!< (@ 0x00000570) DCX configuration */
  1238. __IM uint32_t RESERVED22[19];
  1239. __IOM uint32_t ORC; /*!< (@ 0x000005C0) Byte transmitted after TXD.MAXCNT bytes have
  1240. been transmitted in the case when RXD.MAXCNT
  1241. is greater than TXD.MAXCNT */
  1242. } NRF_SPIM_Type; /*!< Size = 1476 (0x5c4) */
  1243. /* =========================================================================================================================== */
  1244. /* ================ SPIS0_NS ================ */
  1245. /* =========================================================================================================================== */
  1246. /**
  1247. * @brief SPI Slave (SPIS0_NS)
  1248. */
  1249. typedef struct { /*!< (@ 0x41013000) SPIS0_NS Structure */
  1250. __IM uint32_t RESERVED[9];
  1251. __OM uint32_t TASKS_ACQUIRE; /*!< (@ 0x00000024) Acquire SPI semaphore */
  1252. __OM uint32_t TASKS_RELEASE; /*!< (@ 0x00000028) Release SPI semaphore, enabling the SPI slave
  1253. to acquire it */
  1254. __IM uint32_t RESERVED1[30];
  1255. __IOM uint32_t SUBSCRIBE_ACQUIRE; /*!< (@ 0x000000A4) Subscribe configuration for task ACQUIRE */
  1256. __IOM uint32_t SUBSCRIBE_RELEASE; /*!< (@ 0x000000A8) Subscribe configuration for task RELEASE */
  1257. __IM uint32_t RESERVED2[22];
  1258. __IOM uint32_t EVENTS_END; /*!< (@ 0x00000104) Granted transaction completed */
  1259. __IM uint32_t RESERVED3[2];
  1260. __IOM uint32_t EVENTS_ENDRX; /*!< (@ 0x00000110) End of RXD buffer reached */
  1261. __IM uint32_t RESERVED4[5];
  1262. __IOM uint32_t EVENTS_ACQUIRED; /*!< (@ 0x00000128) Semaphore acquired */
  1263. __IM uint32_t RESERVED5[22];
  1264. __IOM uint32_t PUBLISH_END; /*!< (@ 0x00000184) Publish configuration for event END */
  1265. __IM uint32_t RESERVED6[2];
  1266. __IOM uint32_t PUBLISH_ENDRX; /*!< (@ 0x00000190) Publish configuration for event ENDRX */
  1267. __IM uint32_t RESERVED7[5];
  1268. __IOM uint32_t PUBLISH_ACQUIRED; /*!< (@ 0x000001A8) Publish configuration for event ACQUIRED */
  1269. __IM uint32_t RESERVED8[21];
  1270. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1271. __IM uint32_t RESERVED9[64];
  1272. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1273. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1274. __IM uint32_t RESERVED10[61];
  1275. __IM uint32_t SEMSTAT; /*!< (@ 0x00000400) Semaphore status register */
  1276. __IM uint32_t RESERVED11[15];
  1277. __IOM uint32_t STATUS; /*!< (@ 0x00000440) Status from last transaction */
  1278. __IM uint32_t RESERVED12[47];
  1279. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable SPI slave */
  1280. __IM uint32_t RESERVED13;
  1281. __IOM SPIS_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  1282. __IM uint32_t RESERVED14[7];
  1283. __IOM SPIS_RXD_Type RXD; /*!< (@ 0x00000534) Unspecified */
  1284. __IOM SPIS_TXD_Type TXD; /*!< (@ 0x00000544) Unspecified */
  1285. __IOM uint32_t CONFIG; /*!< (@ 0x00000554) Configuration register */
  1286. __IM uint32_t RESERVED15;
  1287. __IOM uint32_t DEF; /*!< (@ 0x0000055C) Default character. Character clocked out in case
  1288. of an ignored transaction. */
  1289. __IM uint32_t RESERVED16[24];
  1290. __IOM uint32_t ORC; /*!< (@ 0x000005C0) Over-read character */
  1291. } NRF_SPIS_Type; /*!< Size = 1476 (0x5c4) */
  1292. /* =========================================================================================================================== */
  1293. /* ================ TWIM0_NS ================ */
  1294. /* =========================================================================================================================== */
  1295. /**
  1296. * @brief I2C compatible Two-Wire Master Interface with EasyDMA (TWIM0_NS)
  1297. */
  1298. typedef struct { /*!< (@ 0x41013000) TWIM0_NS Structure */
  1299. __OM uint32_t TASKS_STARTRX; /*!< (@ 0x00000000) Start TWI receive sequence */
  1300. __IM uint32_t RESERVED;
  1301. __OM uint32_t TASKS_STARTTX; /*!< (@ 0x00000008) Start TWI transmit sequence */
  1302. __IM uint32_t RESERVED1[2];
  1303. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000014) Stop TWI transaction. Must be issued while the
  1304. TWI master is not suspended. */
  1305. __IM uint32_t RESERVED2;
  1306. __OM uint32_t TASKS_SUSPEND; /*!< (@ 0x0000001C) Suspend TWI transaction */
  1307. __OM uint32_t TASKS_RESUME; /*!< (@ 0x00000020) Resume TWI transaction */
  1308. __IM uint32_t RESERVED3[23];
  1309. __IOM uint32_t SUBSCRIBE_STARTRX; /*!< (@ 0x00000080) Subscribe configuration for task STARTRX */
  1310. __IM uint32_t RESERVED4;
  1311. __IOM uint32_t SUBSCRIBE_STARTTX; /*!< (@ 0x00000088) Subscribe configuration for task STARTTX */
  1312. __IM uint32_t RESERVED5[2];
  1313. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000094) Subscribe configuration for task STOP */
  1314. __IM uint32_t RESERVED6;
  1315. __IOM uint32_t SUBSCRIBE_SUSPEND; /*!< (@ 0x0000009C) Subscribe configuration for task SUSPEND */
  1316. __IOM uint32_t SUBSCRIBE_RESUME; /*!< (@ 0x000000A0) Subscribe configuration for task RESUME */
  1317. __IM uint32_t RESERVED7[24];
  1318. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) TWI stopped */
  1319. __IM uint32_t RESERVED8[7];
  1320. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000124) TWI error */
  1321. __IM uint32_t RESERVED9[8];
  1322. __IOM uint32_t EVENTS_SUSPENDED; /*!< (@ 0x00000148) SUSPEND task has been issued, TWI traffic is
  1323. now suspended. */
  1324. __IOM uint32_t EVENTS_RXSTARTED; /*!< (@ 0x0000014C) Receive sequence started */
  1325. __IOM uint32_t EVENTS_TXSTARTED; /*!< (@ 0x00000150) Transmit sequence started */
  1326. __IM uint32_t RESERVED10[2];
  1327. __IOM uint32_t EVENTS_LASTRX; /*!< (@ 0x0000015C) Byte boundary, starting to receive the last byte */
  1328. __IOM uint32_t EVENTS_LASTTX; /*!< (@ 0x00000160) Byte boundary, starting to transmit the last
  1329. byte */
  1330. __IM uint32_t RESERVED11[8];
  1331. __IOM uint32_t PUBLISH_STOPPED; /*!< (@ 0x00000184) Publish configuration for event STOPPED */
  1332. __IM uint32_t RESERVED12[7];
  1333. __IOM uint32_t PUBLISH_ERROR; /*!< (@ 0x000001A4) Publish configuration for event ERROR */
  1334. __IM uint32_t RESERVED13[8];
  1335. __IOM uint32_t PUBLISH_SUSPENDED; /*!< (@ 0x000001C8) Publish configuration for event SUSPENDED */
  1336. __IOM uint32_t PUBLISH_RXSTARTED; /*!< (@ 0x000001CC) Publish configuration for event RXSTARTED */
  1337. __IOM uint32_t PUBLISH_TXSTARTED; /*!< (@ 0x000001D0) Publish configuration for event TXSTARTED */
  1338. __IM uint32_t RESERVED14[2];
  1339. __IOM uint32_t PUBLISH_LASTRX; /*!< (@ 0x000001DC) Publish configuration for event LASTRX */
  1340. __IOM uint32_t PUBLISH_LASTTX; /*!< (@ 0x000001E0) Publish configuration for event LASTTX */
  1341. __IM uint32_t RESERVED15[7];
  1342. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1343. __IM uint32_t RESERVED16[63];
  1344. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1345. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1346. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1347. __IM uint32_t RESERVED17[110];
  1348. __IOM uint32_t ERRORSRC; /*!< (@ 0x000004C4) Error source */
  1349. __IM uint32_t RESERVED18[14];
  1350. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable TWIM */
  1351. __IM uint32_t RESERVED19;
  1352. __IOM TWIM_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  1353. __IM uint32_t RESERVED20[5];
  1354. __IOM uint32_t FREQUENCY; /*!< (@ 0x00000524) TWI frequency. Accuracy depends on the HFCLK
  1355. source selected. */
  1356. __IM uint32_t RESERVED21[3];
  1357. __IOM TWIM_RXD_Type RXD; /*!< (@ 0x00000534) RXD EasyDMA channel */
  1358. __IOM TWIM_TXD_Type TXD; /*!< (@ 0x00000544) TXD EasyDMA channel */
  1359. __IM uint32_t RESERVED22[13];
  1360. __IOM uint32_t ADDRESS; /*!< (@ 0x00000588) Address used in the TWI transfer */
  1361. } NRF_TWIM_Type; /*!< Size = 1420 (0x58c) */
  1362. /* =========================================================================================================================== */
  1363. /* ================ TWIS0_NS ================ */
  1364. /* =========================================================================================================================== */
  1365. /**
  1366. * @brief I2C compatible Two-Wire Slave Interface with EasyDMA (TWIS0_NS)
  1367. */
  1368. typedef struct { /*!< (@ 0x41013000) TWIS0_NS Structure */
  1369. __IM uint32_t RESERVED[5];
  1370. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000014) Stop TWI transaction */
  1371. __IM uint32_t RESERVED1;
  1372. __OM uint32_t TASKS_SUSPEND; /*!< (@ 0x0000001C) Suspend TWI transaction */
  1373. __OM uint32_t TASKS_RESUME; /*!< (@ 0x00000020) Resume TWI transaction */
  1374. __IM uint32_t RESERVED2[3];
  1375. __OM uint32_t TASKS_PREPARERX; /*!< (@ 0x00000030) Prepare the TWI slave to respond to a write command */
  1376. __OM uint32_t TASKS_PREPARETX; /*!< (@ 0x00000034) Prepare the TWI slave to respond to a read command */
  1377. __IM uint32_t RESERVED3[23];
  1378. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000094) Subscribe configuration for task STOP */
  1379. __IM uint32_t RESERVED4;
  1380. __IOM uint32_t SUBSCRIBE_SUSPEND; /*!< (@ 0x0000009C) Subscribe configuration for task SUSPEND */
  1381. __IOM uint32_t SUBSCRIBE_RESUME; /*!< (@ 0x000000A0) Subscribe configuration for task RESUME */
  1382. __IM uint32_t RESERVED5[3];
  1383. __IOM uint32_t SUBSCRIBE_PREPARERX; /*!< (@ 0x000000B0) Subscribe configuration for task PREPARERX */
  1384. __IOM uint32_t SUBSCRIBE_PREPARETX; /*!< (@ 0x000000B4) Subscribe configuration for task PREPARETX */
  1385. __IM uint32_t RESERVED6[19];
  1386. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) TWI stopped */
  1387. __IM uint32_t RESERVED7[7];
  1388. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000124) TWI error */
  1389. __IM uint32_t RESERVED8[9];
  1390. __IOM uint32_t EVENTS_RXSTARTED; /*!< (@ 0x0000014C) Receive sequence started */
  1391. __IOM uint32_t EVENTS_TXSTARTED; /*!< (@ 0x00000150) Transmit sequence started */
  1392. __IM uint32_t RESERVED9[4];
  1393. __IOM uint32_t EVENTS_WRITE; /*!< (@ 0x00000164) Write command received */
  1394. __IOM uint32_t EVENTS_READ; /*!< (@ 0x00000168) Read command received */
  1395. __IM uint32_t RESERVED10[6];
  1396. __IOM uint32_t PUBLISH_STOPPED; /*!< (@ 0x00000184) Publish configuration for event STOPPED */
  1397. __IM uint32_t RESERVED11[7];
  1398. __IOM uint32_t PUBLISH_ERROR; /*!< (@ 0x000001A4) Publish configuration for event ERROR */
  1399. __IM uint32_t RESERVED12[9];
  1400. __IOM uint32_t PUBLISH_RXSTARTED; /*!< (@ 0x000001CC) Publish configuration for event RXSTARTED */
  1401. __IOM uint32_t PUBLISH_TXSTARTED; /*!< (@ 0x000001D0) Publish configuration for event TXSTARTED */
  1402. __IM uint32_t RESERVED13[4];
  1403. __IOM uint32_t PUBLISH_WRITE; /*!< (@ 0x000001E4) Publish configuration for event WRITE */
  1404. __IOM uint32_t PUBLISH_READ; /*!< (@ 0x000001E8) Publish configuration for event READ */
  1405. __IM uint32_t RESERVED14[5];
  1406. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1407. __IM uint32_t RESERVED15[63];
  1408. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1409. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1410. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1411. __IM uint32_t RESERVED16[113];
  1412. __IOM uint32_t ERRORSRC; /*!< (@ 0x000004D0) Error source */
  1413. __IM uint32_t MATCH; /*!< (@ 0x000004D4) Status register indicating which address had
  1414. a match */
  1415. __IM uint32_t RESERVED17[10];
  1416. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable TWIS */
  1417. __IM uint32_t RESERVED18;
  1418. __IOM TWIS_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  1419. __IM uint32_t RESERVED19[9];
  1420. __IOM TWIS_RXD_Type RXD; /*!< (@ 0x00000534) RXD EasyDMA channel */
  1421. __IOM TWIS_TXD_Type TXD; /*!< (@ 0x00000544) TXD EasyDMA channel */
  1422. __IM uint32_t RESERVED20[13];
  1423. __IOM uint32_t ADDRESS[2]; /*!< (@ 0x00000588) Description collection: TWI slave address n */
  1424. __IM uint32_t RESERVED21;
  1425. __IOM uint32_t CONFIG; /*!< (@ 0x00000594) Configuration register for the address match
  1426. mechanism */
  1427. __IM uint32_t RESERVED22[10];
  1428. __IOM uint32_t ORC; /*!< (@ 0x000005C0) Over-read character. Character sent out in case
  1429. of an over-read of the transmit buffer. */
  1430. } NRF_TWIS_Type; /*!< Size = 1476 (0x5c4) */
  1431. /* =========================================================================================================================== */
  1432. /* ================ UARTE0_NS ================ */
  1433. /* =========================================================================================================================== */
  1434. /**
  1435. * @brief UART with EasyDMA (UARTE0_NS)
  1436. */
  1437. typedef struct { /*!< (@ 0x41013000) UARTE0_NS Structure */
  1438. __OM uint32_t TASKS_STARTRX; /*!< (@ 0x00000000) Start UART receiver */
  1439. __OM uint32_t TASKS_STOPRX; /*!< (@ 0x00000004) Stop UART receiver */
  1440. __OM uint32_t TASKS_STARTTX; /*!< (@ 0x00000008) Start UART transmitter */
  1441. __OM uint32_t TASKS_STOPTX; /*!< (@ 0x0000000C) Stop UART transmitter */
  1442. __IM uint32_t RESERVED[7];
  1443. __OM uint32_t TASKS_FLUSHRX; /*!< (@ 0x0000002C) Flush RX FIFO into RX buffer */
  1444. __IM uint32_t RESERVED1[20];
  1445. __IOM uint32_t SUBSCRIBE_STARTRX; /*!< (@ 0x00000080) Subscribe configuration for task STARTRX */
  1446. __IOM uint32_t SUBSCRIBE_STOPRX; /*!< (@ 0x00000084) Subscribe configuration for task STOPRX */
  1447. __IOM uint32_t SUBSCRIBE_STARTTX; /*!< (@ 0x00000088) Subscribe configuration for task STARTTX */
  1448. __IOM uint32_t SUBSCRIBE_STOPTX; /*!< (@ 0x0000008C) Subscribe configuration for task STOPTX */
  1449. __IM uint32_t RESERVED2[7];
  1450. __IOM uint32_t SUBSCRIBE_FLUSHRX; /*!< (@ 0x000000AC) Subscribe configuration for task FLUSHRX */
  1451. __IM uint32_t RESERVED3[20];
  1452. __IOM uint32_t EVENTS_CTS; /*!< (@ 0x00000100) CTS is activated (set low). Clear To Send. */
  1453. __IOM uint32_t EVENTS_NCTS; /*!< (@ 0x00000104) CTS is deactivated (set high). Not Clear To Send. */
  1454. __IOM uint32_t EVENTS_RXDRDY; /*!< (@ 0x00000108) Data received in RXD (but potentially not yet
  1455. transferred to Data RAM) */
  1456. __IM uint32_t RESERVED4;
  1457. __IOM uint32_t EVENTS_ENDRX; /*!< (@ 0x00000110) Receive buffer is filled up */
  1458. __IM uint32_t RESERVED5[2];
  1459. __IOM uint32_t EVENTS_TXDRDY; /*!< (@ 0x0000011C) Data sent from TXD */
  1460. __IOM uint32_t EVENTS_ENDTX; /*!< (@ 0x00000120) Last TX byte transmitted */
  1461. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000124) Error detected */
  1462. __IM uint32_t RESERVED6[7];
  1463. __IOM uint32_t EVENTS_RXTO; /*!< (@ 0x00000144) Receiver timeout */
  1464. __IM uint32_t RESERVED7;
  1465. __IOM uint32_t EVENTS_RXSTARTED; /*!< (@ 0x0000014C) UART receiver has started */
  1466. __IOM uint32_t EVENTS_TXSTARTED; /*!< (@ 0x00000150) UART transmitter has started */
  1467. __IM uint32_t RESERVED8;
  1468. __IOM uint32_t EVENTS_TXSTOPPED; /*!< (@ 0x00000158) Transmitter stopped */
  1469. __IM uint32_t RESERVED9[9];
  1470. __IOM uint32_t PUBLISH_CTS; /*!< (@ 0x00000180) Publish configuration for event CTS */
  1471. __IOM uint32_t PUBLISH_NCTS; /*!< (@ 0x00000184) Publish configuration for event NCTS */
  1472. __IOM uint32_t PUBLISH_RXDRDY; /*!< (@ 0x00000188) Publish configuration for event RXDRDY */
  1473. __IM uint32_t RESERVED10;
  1474. __IOM uint32_t PUBLISH_ENDRX; /*!< (@ 0x00000190) Publish configuration for event ENDRX */
  1475. __IM uint32_t RESERVED11[2];
  1476. __IOM uint32_t PUBLISH_TXDRDY; /*!< (@ 0x0000019C) Publish configuration for event TXDRDY */
  1477. __IOM uint32_t PUBLISH_ENDTX; /*!< (@ 0x000001A0) Publish configuration for event ENDTX */
  1478. __IOM uint32_t PUBLISH_ERROR; /*!< (@ 0x000001A4) Publish configuration for event ERROR */
  1479. __IM uint32_t RESERVED12[7];
  1480. __IOM uint32_t PUBLISH_RXTO; /*!< (@ 0x000001C4) Publish configuration for event RXTO */
  1481. __IM uint32_t RESERVED13;
  1482. __IOM uint32_t PUBLISH_RXSTARTED; /*!< (@ 0x000001CC) Publish configuration for event RXSTARTED */
  1483. __IOM uint32_t PUBLISH_TXSTARTED; /*!< (@ 0x000001D0) Publish configuration for event TXSTARTED */
  1484. __IM uint32_t RESERVED14;
  1485. __IOM uint32_t PUBLISH_TXSTOPPED; /*!< (@ 0x000001D8) Publish configuration for event TXSTOPPED */
  1486. __IM uint32_t RESERVED15[9];
  1487. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1488. __IM uint32_t RESERVED16[63];
  1489. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1490. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1491. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1492. __IM uint32_t RESERVED17[93];
  1493. __IOM uint32_t ERRORSRC; /*!< (@ 0x00000480) Error source Note : this register is read / write
  1494. one to clear. */
  1495. __IM uint32_t RESERVED18[31];
  1496. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable UART */
  1497. __IM uint32_t RESERVED19;
  1498. __IOM UARTE_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  1499. __IM uint32_t RESERVED20[3];
  1500. __IOM uint32_t BAUDRATE; /*!< (@ 0x00000524) Baud rate. Accuracy depends on the HFCLK source
  1501. selected. */
  1502. __IM uint32_t RESERVED21[3];
  1503. __IOM UARTE_RXD_Type RXD; /*!< (@ 0x00000534) RXD EasyDMA channel */
  1504. __IM uint32_t RESERVED22;
  1505. __IOM UARTE_TXD_Type TXD; /*!< (@ 0x00000544) TXD EasyDMA channel */
  1506. __IM uint32_t RESERVED23[7];
  1507. __IOM uint32_t CONFIG; /*!< (@ 0x0000056C) Configuration of parity and hardware flow control */
  1508. } NRF_UARTE_Type; /*!< Size = 1392 (0x570) */
  1509. /* =========================================================================================================================== */
  1510. /* ================ EGU0_NS ================ */
  1511. /* =========================================================================================================================== */
  1512. /**
  1513. * @brief Event generator unit (EGU0_NS)
  1514. */
  1515. typedef struct { /*!< (@ 0x41014000) EGU0_NS Structure */
  1516. __OM uint32_t TASKS_TRIGGER[16]; /*!< (@ 0x00000000) Description collection: Trigger n for triggering
  1517. the corresponding TRIGGERED[n] event */
  1518. __IM uint32_t RESERVED[16];
  1519. __IOM uint32_t SUBSCRIBE_TRIGGER[16]; /*!< (@ 0x00000080) Description collection: Subscribe configuration
  1520. for task TRIGGER[n] */
  1521. __IM uint32_t RESERVED1[16];
  1522. __IOM uint32_t EVENTS_TRIGGERED[16]; /*!< (@ 0x00000100) Description collection: Event number n generated
  1523. by triggering the corresponding TRIGGER[n]
  1524. task */
  1525. __IM uint32_t RESERVED2[16];
  1526. __IOM uint32_t PUBLISH_TRIGGERED[16]; /*!< (@ 0x00000180) Description collection: Publish configuration
  1527. for event TRIGGERED[n] */
  1528. __IM uint32_t RESERVED3[80];
  1529. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1530. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1531. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1532. } NRF_EGU_Type; /*!< Size = 780 (0x30c) */
  1533. /* =========================================================================================================================== */
  1534. /* ================ SWI0_NS ================ */
  1535. /* =========================================================================================================================== */
  1536. /**
  1537. * @brief Software interrupt 0 (SWI0_NS)
  1538. */
  1539. typedef struct { /*!< (@ 0x4101A000) SWI0_NS Structure */
  1540. __IM uint32_t UNUSED; /*!< (@ 0x00000000) Unused. */
  1541. } NRF_SWI_Type; /*!< Size = 4 (0x4) */
  1542. /* =========================================================================================================================== */
  1543. /* ================ APPMUTEX_NS ================ */
  1544. /* =========================================================================================================================== */
  1545. /**
  1546. * @brief MUTEX 0 (APPMUTEX_NS)
  1547. */
  1548. typedef struct { /*!< (@ 0x40030000) APPMUTEX_NS Structure */
  1549. __IM uint32_t RESERVED[256];
  1550. __IOM uint32_t MUTEX[16]; /*!< (@ 0x00000400) Description collection: Mutex register */
  1551. } NRF_MUTEX_Type; /*!< Size = 1088 (0x440) */
  1552. /* =========================================================================================================================== */
  1553. /* ================ ACL_NS ================ */
  1554. /* =========================================================================================================================== */
  1555. /**
  1556. * @brief Access control lists (ACL_NS)
  1557. */
  1558. typedef struct { /*!< (@ 0x41080000) ACL_NS Structure */
  1559. __IM uint32_t RESERVED[512];
  1560. __IOM ACL_ACL_Type ACL[8]; /*!< (@ 0x00000800) Unspecified */
  1561. } NRF_ACL_Type; /*!< Size = 2176 (0x880) */
  1562. /* =========================================================================================================================== */
  1563. /* ================ NVMC_NS ================ */
  1564. /* =========================================================================================================================== */
  1565. /**
  1566. * @brief Non-volatile memory controller (NVMC_NS)
  1567. */
  1568. typedef struct { /*!< (@ 0x41080000) NVMC_NS Structure */
  1569. __IM uint32_t RESERVED[256];
  1570. __IM uint32_t READY; /*!< (@ 0x00000400) Ready flag */
  1571. __IM uint32_t RESERVED1;
  1572. __IM uint32_t READYNEXT; /*!< (@ 0x00000408) Ready flag */
  1573. __IM uint32_t RESERVED2[62];
  1574. __IOM uint32_t CONFIG; /*!< (@ 0x00000504) Configuration register */
  1575. __IM uint32_t RESERVED3;
  1576. __OM uint32_t ERASEALL; /*!< (@ 0x0000050C) Register for erasing all non-volatile user memory */
  1577. __IM uint32_t RESERVED4[3];
  1578. __IOM uint32_t ERASEPAGEPARTIALCFG; /*!< (@ 0x0000051C) Register for partial erase configuration */
  1579. __IM uint32_t RESERVED5[8];
  1580. __IOM uint32_t ICACHECNF; /*!< (@ 0x00000540) I-code cache configuration register */
  1581. __IM uint32_t RESERVED6;
  1582. __IOM uint32_t IHIT; /*!< (@ 0x00000548) I-code cache hit counter */
  1583. __IOM uint32_t IMISS; /*!< (@ 0x0000054C) I-code cache miss counter */
  1584. } NRF_NVMC_Type; /*!< Size = 1360 (0x550) */
  1585. /* =========================================================================================================================== */
  1586. /* ================ VMC_NS ================ */
  1587. /* =========================================================================================================================== */
  1588. /**
  1589. * @brief Volatile Memory controller (VMC_NS)
  1590. */
  1591. typedef struct { /*!< (@ 0x41081000) VMC_NS Structure */
  1592. __IM uint32_t RESERVED[384];
  1593. __IOM VMC_RAM_Type RAM[4]; /*!< (@ 0x00000600) Unspecified */
  1594. } NRF_VMC_Type; /*!< Size = 1600 (0x640) */
  1595. /* =========================================================================================================================== */
  1596. /* ================ P0_NS ================ */
  1597. /* =========================================================================================================================== */
  1598. /**
  1599. * @brief GPIO Port 0 (P0_NS)
  1600. */
  1601. typedef struct { /*!< (@ 0x418C0500) P0_NS Structure */
  1602. __IM uint32_t RESERVED;
  1603. __IOM uint32_t OUT; /*!< (@ 0x00000004) Write GPIO port */
  1604. __IOM uint32_t OUTSET; /*!< (@ 0x00000008) Set individual bits in GPIO port */
  1605. __IOM uint32_t OUTCLR; /*!< (@ 0x0000000C) Clear individual bits in GPIO port */
  1606. __IM uint32_t IN; /*!< (@ 0x00000010) Read GPIO port */
  1607. __IOM uint32_t DIR; /*!< (@ 0x00000014) Direction of GPIO pins */
  1608. __IOM uint32_t DIRSET; /*!< (@ 0x00000018) DIR set register */
  1609. __IOM uint32_t DIRCLR; /*!< (@ 0x0000001C) DIR clear register */
  1610. __IOM uint32_t LATCH; /*!< (@ 0x00000020) Latch register indicating what GPIO pins that
  1611. have met the criteria set in the PIN_CNF[n].SENSE
  1612. registers */
  1613. __IOM uint32_t DETECTMODE; /*!< (@ 0x00000024) Select between default DETECT signal behavior
  1614. and LDETECT mode (For non-secure pin only) */
  1615. __IOM uint32_t DETECTMODE_SEC; /*!< (@ 0x00000028) Select between default DETECT signal behavior
  1616. and LDETECT mode (For secure pin only) */
  1617. __IM uint32_t RESERVED1[117];
  1618. __IOM uint32_t PIN_CNF[32]; /*!< (@ 0x00000200) Description collection: Configuration of GPIO
  1619. pins */
  1620. } NRF_GPIO_Type; /*!< Size = 640 (0x280) */
  1621. /** @} */ /* End of group Device_Peripheral_peripherals */
  1622. /* =========================================================================================================================== */
  1623. /* ================ Device Specific Peripheral Address Map ================ */
  1624. /* =========================================================================================================================== */
  1625. /** @addtogroup Device_Peripheral_peripheralAddr
  1626. * @{
  1627. */
  1628. #define NRF_FICR_NS_BASE 0x01FF0000UL
  1629. #define NRF_UICR_NS_BASE 0x01FF8000UL
  1630. #define NRF_CTI_NS_BASE 0xE0042000UL
  1631. #define NRF_DCNF_NS_BASE 0x41000000UL
  1632. #define NRF_VREQCTRL_NS_BASE 0x41004000UL
  1633. #define NRF_CLOCK_NS_BASE 0x41005000UL
  1634. #define NRF_POWER_NS_BASE 0x41005000UL
  1635. #define NRF_RESET_NS_BASE 0x41005000UL
  1636. #define NRF_CTRLAP_NS_BASE 0x41006000UL
  1637. #define NRF_RADIO_NS_BASE 0x41008000UL
  1638. #define NRF_RNG_NS_BASE 0x41009000UL
  1639. #define NRF_GPIOTE_NS_BASE 0x4100A000UL
  1640. #define NRF_WDT_NS_BASE 0x4100B000UL
  1641. #define NRF_TIMER0_NS_BASE 0x4100C000UL
  1642. #define NRF_ECB_NS_BASE 0x4100D000UL
  1643. #define NRF_AAR_NS_BASE 0x4100E000UL
  1644. #define NRF_CCM_NS_BASE 0x4100E000UL
  1645. #define NRF_DPPIC_NS_BASE 0x4100F000UL
  1646. #define NRF_TEMP_NS_BASE 0x41010000UL
  1647. #define NRF_RTC0_NS_BASE 0x41011000UL
  1648. #define NRF_IPC_NS_BASE 0x41012000UL
  1649. #define NRF_SPIM0_NS_BASE 0x41013000UL
  1650. #define NRF_SPIS0_NS_BASE 0x41013000UL
  1651. #define NRF_TWIM0_NS_BASE 0x41013000UL
  1652. #define NRF_TWIS0_NS_BASE 0x41013000UL
  1653. #define NRF_UARTE0_NS_BASE 0x41013000UL
  1654. #define NRF_EGU0_NS_BASE 0x41014000UL
  1655. #define NRF_RTC1_NS_BASE 0x41016000UL
  1656. #define NRF_TIMER1_NS_BASE 0x41018000UL
  1657. #define NRF_TIMER2_NS_BASE 0x41019000UL
  1658. #define NRF_SWI0_NS_BASE 0x4101A000UL
  1659. #define NRF_SWI1_NS_BASE 0x4101B000UL
  1660. #define NRF_SWI2_NS_BASE 0x4101C000UL
  1661. #define NRF_SWI3_NS_BASE 0x4101D000UL
  1662. #define NRF_APPMUTEX_NS_BASE 0x40030000UL
  1663. #define NRF_APPMUTEX_S_BASE 0x50030000UL
  1664. #define NRF_ACL_NS_BASE 0x41080000UL
  1665. #define NRF_NVMC_NS_BASE 0x41080000UL
  1666. #define NRF_VMC_NS_BASE 0x41081000UL
  1667. #define NRF_P0_NS_BASE 0x418C0500UL
  1668. #define NRF_P1_NS_BASE 0x418C0800UL
  1669. /** @} */ /* End of group Device_Peripheral_peripheralAddr */
  1670. /* =========================================================================================================================== */
  1671. /* ================ Peripheral declaration ================ */
  1672. /* =========================================================================================================================== */
  1673. /** @addtogroup Device_Peripheral_declaration
  1674. * @{
  1675. */
  1676. #define NRF_FICR_NS ((NRF_FICR_Type*) NRF_FICR_NS_BASE)
  1677. #define NRF_UICR_NS ((NRF_UICR_Type*) NRF_UICR_NS_BASE)
  1678. #define NRF_CTI_NS ((NRF_CTI_Type*) NRF_CTI_NS_BASE)
  1679. #define NRF_DCNF_NS ((NRF_DCNF_Type*) NRF_DCNF_NS_BASE)
  1680. #define NRF_VREQCTRL_NS ((NRF_VREQCTRL_Type*) NRF_VREQCTRL_NS_BASE)
  1681. #define NRF_CLOCK_NS ((NRF_CLOCK_Type*) NRF_CLOCK_NS_BASE)
  1682. #define NRF_POWER_NS ((NRF_POWER_Type*) NRF_POWER_NS_BASE)
  1683. #define NRF_RESET_NS ((NRF_RESET_Type*) NRF_RESET_NS_BASE)
  1684. #define NRF_CTRLAP_NS ((NRF_CTRLAPPERI_Type*) NRF_CTRLAP_NS_BASE)
  1685. #define NRF_RADIO_NS ((NRF_RADIO_Type*) NRF_RADIO_NS_BASE)
  1686. #define NRF_RNG_NS ((NRF_RNG_Type*) NRF_RNG_NS_BASE)
  1687. #define NRF_GPIOTE_NS ((NRF_GPIOTE_Type*) NRF_GPIOTE_NS_BASE)
  1688. #define NRF_WDT_NS ((NRF_WDT_Type*) NRF_WDT_NS_BASE)
  1689. #define NRF_TIMER0_NS ((NRF_TIMER_Type*) NRF_TIMER0_NS_BASE)
  1690. #define NRF_ECB_NS ((NRF_ECB_Type*) NRF_ECB_NS_BASE)
  1691. #define NRF_AAR_NS ((NRF_AAR_Type*) NRF_AAR_NS_BASE)
  1692. #define NRF_CCM_NS ((NRF_CCM_Type*) NRF_CCM_NS_BASE)
  1693. #define NRF_DPPIC_NS ((NRF_DPPIC_Type*) NRF_DPPIC_NS_BASE)
  1694. #define NRF_TEMP_NS ((NRF_TEMP_Type*) NRF_TEMP_NS_BASE)
  1695. #define NRF_RTC0_NS ((NRF_RTC_Type*) NRF_RTC0_NS_BASE)
  1696. #define NRF_IPC_NS ((NRF_IPC_Type*) NRF_IPC_NS_BASE)
  1697. #define NRF_SPIM0_NS ((NRF_SPIM_Type*) NRF_SPIM0_NS_BASE)
  1698. #define NRF_SPIS0_NS ((NRF_SPIS_Type*) NRF_SPIS0_NS_BASE)
  1699. #define NRF_TWIM0_NS ((NRF_TWIM_Type*) NRF_TWIM0_NS_BASE)
  1700. #define NRF_TWIS0_NS ((NRF_TWIS_Type*) NRF_TWIS0_NS_BASE)
  1701. #define NRF_UARTE0_NS ((NRF_UARTE_Type*) NRF_UARTE0_NS_BASE)
  1702. #define NRF_EGU0_NS ((NRF_EGU_Type*) NRF_EGU0_NS_BASE)
  1703. #define NRF_RTC1_NS ((NRF_RTC_Type*) NRF_RTC1_NS_BASE)
  1704. #define NRF_TIMER1_NS ((NRF_TIMER_Type*) NRF_TIMER1_NS_BASE)
  1705. #define NRF_TIMER2_NS ((NRF_TIMER_Type*) NRF_TIMER2_NS_BASE)
  1706. #define NRF_SWI0_NS ((NRF_SWI_Type*) NRF_SWI0_NS_BASE)
  1707. #define NRF_SWI1_NS ((NRF_SWI_Type*) NRF_SWI1_NS_BASE)
  1708. #define NRF_SWI2_NS ((NRF_SWI_Type*) NRF_SWI2_NS_BASE)
  1709. #define NRF_SWI3_NS ((NRF_SWI_Type*) NRF_SWI3_NS_BASE)
  1710. #define NRF_APPMUTEX_NS ((NRF_MUTEX_Type*) NRF_APPMUTEX_NS_BASE)
  1711. #define NRF_APPMUTEX_S ((NRF_MUTEX_Type*) NRF_APPMUTEX_S_BASE)
  1712. #define NRF_ACL_NS ((NRF_ACL_Type*) NRF_ACL_NS_BASE)
  1713. #define NRF_NVMC_NS ((NRF_NVMC_Type*) NRF_NVMC_NS_BASE)
  1714. #define NRF_VMC_NS ((NRF_VMC_Type*) NRF_VMC_NS_BASE)
  1715. #define NRF_P0_NS ((NRF_GPIO_Type*) NRF_P0_NS_BASE)
  1716. #define NRF_P1_NS ((NRF_GPIO_Type*) NRF_P1_NS_BASE)
  1717. /** @} */ /* End of group Device_Peripheral_declaration */
  1718. #ifdef __cplusplus
  1719. }
  1720. #endif
  1721. #endif /* NRF5340_NETWORK_H */
  1722. /** @} */ /* End of group nrf5340_network */
  1723. /** @} */ /* End of group Nordic Semiconductor */