nrf52840.h 183 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428
  1. /****************************************************************************************************//**
  2. * @file nrf52840.h
  3. *
  4. * @brief CMSIS Cortex-M4 Peripheral Access Layer Header File for
  5. * nrf52840 from Nordic Semiconductor.
  6. *
  7. * @version V1
  8. * @date 22. February 2017
  9. *
  10. * @note Generated with SVDConv V2.81d
  11. * from CMSIS SVD File 'nrf52840.svd' Version 1,
  12. *
  13. * @par Copyright (c) 2010 - 2017, Nordic Semiconductor ASA
  14. *
  15. * All rights reserved.
  16. *
  17. * Redistribution and use in source and binary forms, with or without modification,
  18. * are permitted provided that the following conditions are met:
  19. *
  20. * 1. Redistributions of source code must retain the above copyright notice, this
  21. * list of conditions and the following disclaimer.
  22. *
  23. * 2. Redistributions in binary form, except as embedded into a Nordic
  24. * Semiconductor ASA integrated circuit in a product or a software update for
  25. * such product, must reproduce the above copyright notice, this list of
  26. * conditions and the following disclaimer in the documentation and/or other
  27. * materials provided with the distribution.
  28. *
  29. * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
  30. * contributors may be used to endorse or promote products derived from this
  31. * software without specific prior written permission.
  32. *
  33. * 4. This software, with or without modification, must only be used with a
  34. * Nordic Semiconductor ASA integrated circuit.
  35. *
  36. * 5. Any software provided in binary form under this license must not be reverse
  37. * engineered, decompiled, modified and/or disassembled.
  38. *
  39. * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
  40. * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  41. * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
  42. * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
  43. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  44. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  45. * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  46. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  47. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  48. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  49. *
  50. *
  51. *******************************************************************************************************/
  52. /** @addtogroup Nordic Semiconductor
  53. * @{
  54. */
  55. /** @addtogroup nrf52840
  56. * @{
  57. */
  58. #ifndef NRF52840_H
  59. #define NRF52840_H
  60. #ifdef __cplusplus
  61. extern "C" {
  62. #endif
  63. /* ------------------------- Interrupt Number Definition ------------------------ */
  64. typedef enum {
  65. /* ------------------- Cortex-M4 Processor Exceptions Numbers ------------------- */
  66. Reset_IRQn = -15, /*!< 1 Reset Vector, invoked on Power up and warm reset */
  67. NonMaskableInt_IRQn = -14, /*!< 2 Non maskable Interrupt, cannot be stopped or preempted */
  68. HardFault_IRQn = -13, /*!< 3 Hard Fault, all classes of Fault */
  69. MemoryManagement_IRQn = -12, /*!< 4 Memory Management, MPU mismatch, including Access Violation
  70. and No Match */
  71. BusFault_IRQn = -11, /*!< 5 Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory
  72. related Fault */
  73. UsageFault_IRQn = -10, /*!< 6 Usage Fault, i.e. Undef Instruction, Illegal State Transition */
  74. SVCall_IRQn = -5, /*!< 11 System Service Call via SVC instruction */
  75. DebugMonitor_IRQn = -4, /*!< 12 Debug Monitor */
  76. PendSV_IRQn = -2, /*!< 14 Pendable request for system service */
  77. SysTick_IRQn = -1, /*!< 15 System Tick Timer */
  78. /* --------------------- nrf52840 Specific Interrupt Numbers -------------------- */
  79. POWER_CLOCK_IRQn = 0, /*!< 0 POWER_CLOCK */
  80. RADIO_IRQn = 1, /*!< 1 RADIO */
  81. UARTE0_UART0_IRQn = 2, /*!< 2 UARTE0_UART0 */
  82. SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn= 3, /*!< 3 SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0 */
  83. SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn= 4, /*!< 4 SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1 */
  84. NFCT_IRQn = 5, /*!< 5 NFCT */
  85. GPIOTE_IRQn = 6, /*!< 6 GPIOTE */
  86. SAADC_IRQn = 7, /*!< 7 SAADC */
  87. TIMER0_IRQn = 8, /*!< 8 TIMER0 */
  88. TIMER1_IRQn = 9, /*!< 9 TIMER1 */
  89. TIMER2_IRQn = 10, /*!< 10 TIMER2 */
  90. RTC0_IRQn = 11, /*!< 11 RTC0 */
  91. TEMP_IRQn = 12, /*!< 12 TEMP */
  92. RNG_IRQn = 13, /*!< 13 RNG */
  93. ECB_IRQn = 14, /*!< 14 ECB */
  94. CCM_AAR_IRQn = 15, /*!< 15 CCM_AAR */
  95. WDT_IRQn = 16, /*!< 16 WDT */
  96. RTC1_IRQn = 17, /*!< 17 RTC1 */
  97. QDEC_IRQn = 18, /*!< 18 QDEC */
  98. COMP_LPCOMP_IRQn = 19, /*!< 19 COMP_LPCOMP */
  99. SWI0_EGU0_IRQn = 20, /*!< 20 SWI0_EGU0 */
  100. SWI1_EGU1_IRQn = 21, /*!< 21 SWI1_EGU1 */
  101. SWI2_EGU2_IRQn = 22, /*!< 22 SWI2_EGU2 */
  102. SWI3_EGU3_IRQn = 23, /*!< 23 SWI3_EGU3 */
  103. SWI4_EGU4_IRQn = 24, /*!< 24 SWI4_EGU4 */
  104. SWI5_EGU5_IRQn = 25, /*!< 25 SWI5_EGU5 */
  105. TIMER3_IRQn = 26, /*!< 26 TIMER3 */
  106. TIMER4_IRQn = 27, /*!< 27 TIMER4 */
  107. PWM0_IRQn = 28, /*!< 28 PWM0 */
  108. PDM_IRQn = 29, /*!< 29 PDM */
  109. MWU_IRQn = 32, /*!< 32 MWU */
  110. PWM1_IRQn = 33, /*!< 33 PWM1 */
  111. PWM2_IRQn = 34, /*!< 34 PWM2 */
  112. SPIM2_SPIS2_SPI2_IRQn = 35, /*!< 35 SPIM2_SPIS2_SPI2 */
  113. RTC2_IRQn = 36, /*!< 36 RTC2 */
  114. I2S_IRQn = 37, /*!< 37 I2S */
  115. FPU_IRQn = 38, /*!< 38 FPU */
  116. USBD_IRQn = 39, /*!< 39 USBD */
  117. UARTE1_IRQn = 40, /*!< 40 UARTE1 */
  118. QSPI_IRQn = 41, /*!< 41 QSPI */
  119. CRYPTOCELL_IRQn = 42, /*!< 42 CRYPTOCELL */
  120. SPIM3_IRQn = 43, /*!< 43 SPIM3 */
  121. PWM3_IRQn = 45 /*!< 45 PWM3 */
  122. } IRQn_Type;
  123. /** @addtogroup Configuration_of_CMSIS
  124. * @{
  125. */
  126. /* ================================================================================ */
  127. /* ================ Processor and Core Peripheral Section ================ */
  128. /* ================================================================================ */
  129. /* ----------------Configuration of the Cortex-M4 Processor and Core Peripherals---------------- */
  130. #define __CM4_REV 0x0001 /*!< Cortex-M4 Core Revision */
  131. #define __MPU_PRESENT 1 /*!< MPU present or not */
  132. #define __NVIC_PRIO_BITS 3 /*!< Number of Bits used for Priority Levels */
  133. #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
  134. #define __FPU_PRESENT 1 /*!< FPU present or not */
  135. /** @} */ /* End of group Configuration_of_CMSIS */
  136. #include "core_cm4.h" /*!< Cortex-M4 processor and core peripherals */
  137. #include "system_nrf52840.h" /*!< nrf52840 System */
  138. /* ================================================================================ */
  139. /* ================ Device Specific Peripheral Section ================ */
  140. /* ================================================================================ */
  141. /** @addtogroup Device_Peripheral_Registers
  142. * @{
  143. */
  144. /* ------------------- Start of section using anonymous unions ------------------ */
  145. #if defined(__CC_ARM)
  146. #pragma push
  147. #pragma anon_unions
  148. #elif defined(__ICCARM__)
  149. #pragma language=extended
  150. #elif defined(__GNUC__)
  151. /* anonymous unions are enabled by default */
  152. #elif defined(__TMS470__)
  153. /* anonymous unions are enabled by default */
  154. #elif defined(__TASKING__)
  155. #pragma warning 586
  156. #else
  157. #warning Not supported compiler type
  158. #endif
  159. typedef struct {
  160. __I uint32_t PART; /*!< Part code */
  161. __I uint32_t VARIANT; /*!< Part variant (hardware version and production configuration) */
  162. __I uint32_t PACKAGE; /*!< Package option */
  163. __I uint32_t RAM; /*!< RAM variant */
  164. __I uint32_t FLASH; /*!< Flash variant */
  165. __IO uint32_t UNUSED0[3]; /*!< Description collection[0]: Unspecified */
  166. } FICR_INFO_Type;
  167. typedef struct {
  168. __I uint32_t A0; /*!< Slope definition A0 */
  169. __I uint32_t A1; /*!< Slope definition A1 */
  170. __I uint32_t A2; /*!< Slope definition A2 */
  171. __I uint32_t A3; /*!< Slope definition A3 */
  172. __I uint32_t A4; /*!< Slope definition A4 */
  173. __I uint32_t A5; /*!< Slope definition A5 */
  174. __I uint32_t B0; /*!< Y-intercept B0 */
  175. __I uint32_t B1; /*!< Y-intercept B1 */
  176. __I uint32_t B2; /*!< Y-intercept B2 */
  177. __I uint32_t B3; /*!< Y-intercept B3 */
  178. __I uint32_t B4; /*!< Y-intercept B4 */
  179. __I uint32_t B5; /*!< Y-intercept B5 */
  180. __I uint32_t T0; /*!< Segment end T0 */
  181. __I uint32_t T1; /*!< Segment end T1 */
  182. __I uint32_t T2; /*!< Segment end T2 */
  183. __I uint32_t T3; /*!< Segment end T3 */
  184. __I uint32_t T4; /*!< Segment end T4 */
  185. } FICR_TEMP_Type;
  186. typedef struct {
  187. __I uint32_t TAGHEADER0; /*!< Default header for NFC tag. Software can read these values to
  188. populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
  189. __I uint32_t TAGHEADER1; /*!< Default header for NFC tag. Software can read these values to
  190. populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
  191. __I uint32_t TAGHEADER2; /*!< Default header for NFC tag. Software can read these values to
  192. populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
  193. __I uint32_t TAGHEADER3; /*!< Default header for NFC tag. Software can read these values to
  194. populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
  195. } FICR_NFC_Type;
  196. typedef struct {
  197. __IO uint32_t POWER; /*!< Description cluster[0]: RAM0 power control register */
  198. __O uint32_t POWERSET; /*!< Description cluster[0]: RAM0 power control set register */
  199. __O uint32_t POWERCLR; /*!< Description cluster[0]: RAM0 power control clear register */
  200. __I uint32_t RESERVED0;
  201. } POWER_RAM_Type;
  202. typedef struct {
  203. __IO uint32_t RTS; /*!< Pin select for RTS signal */
  204. __IO uint32_t TXD; /*!< Pin select for TXD signal */
  205. __IO uint32_t CTS; /*!< Pin select for CTS signal */
  206. __IO uint32_t RXD; /*!< Pin select for RXD signal */
  207. } UARTE_PSEL_Type;
  208. typedef struct {
  209. __IO uint32_t PTR; /*!< Data pointer */
  210. __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
  211. __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
  212. } UARTE_RXD_Type;
  213. typedef struct {
  214. __IO uint32_t PTR; /*!< Data pointer */
  215. __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
  216. __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
  217. } UARTE_TXD_Type;
  218. typedef struct {
  219. __IO uint32_t RTS; /*!< Pin select for RTS */
  220. __IO uint32_t TXD; /*!< Pin select for TXD */
  221. __IO uint32_t CTS; /*!< Pin select for CTS */
  222. __IO uint32_t RXD; /*!< Pin select for RXD */
  223. } UART_PSEL_Type;
  224. typedef struct {
  225. __IO uint32_t SCK; /*!< Pin select for SCK */
  226. __IO uint32_t MOSI; /*!< Pin select for MOSI signal */
  227. __IO uint32_t MISO; /*!< Pin select for MISO signal */
  228. __IO uint32_t CSN; /*!< Pin select for CSN */
  229. } SPIM_PSEL_Type;
  230. typedef struct {
  231. __IO uint32_t PTR; /*!< Data pointer */
  232. __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
  233. __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
  234. __IO uint32_t LIST; /*!< EasyDMA list type */
  235. } SPIM_RXD_Type;
  236. typedef struct {
  237. __IO uint32_t PTR; /*!< Data pointer */
  238. __IO uint32_t MAXCNT; /*!< Number of bytes in transmit buffer */
  239. __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
  240. __IO uint32_t LIST; /*!< EasyDMA list type */
  241. } SPIM_TXD_Type;
  242. typedef struct {
  243. __IO uint32_t RXDELAY; /*!< Sample delay for input serial data on MISO */
  244. __IO uint32_t CSNDUR; /*!< Minimum duration between edge of CSN and edge of SCK and minimum
  245. duration CSN must stay high between transactions */
  246. } SPIM_IFTIMING_Type;
  247. typedef struct {
  248. __IO uint32_t SCK; /*!< Pin select for SCK */
  249. __IO uint32_t MISO; /*!< Pin select for MISO signal */
  250. __IO uint32_t MOSI; /*!< Pin select for MOSI signal */
  251. __IO uint32_t CSN; /*!< Pin select for CSN signal */
  252. } SPIS_PSEL_Type;
  253. typedef struct {
  254. __IO uint32_t PTR; /*!< RXD data pointer */
  255. __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
  256. __I uint32_t AMOUNT; /*!< Number of bytes received in last granted transaction */
  257. } SPIS_RXD_Type;
  258. typedef struct {
  259. __IO uint32_t PTR; /*!< TXD data pointer */
  260. __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
  261. __I uint32_t AMOUNT; /*!< Number of bytes transmitted in last granted transaction */
  262. } SPIS_TXD_Type;
  263. typedef struct {
  264. __IO uint32_t SCL; /*!< Pin select for SCL signal */
  265. __IO uint32_t SDA; /*!< Pin select for SDA signal */
  266. } TWIM_PSEL_Type;
  267. typedef struct {
  268. __IO uint32_t PTR; /*!< Data pointer */
  269. __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
  270. __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
  271. __IO uint32_t LIST; /*!< EasyDMA list type */
  272. } TWIM_RXD_Type;
  273. typedef struct {
  274. __IO uint32_t PTR; /*!< Data pointer */
  275. __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
  276. __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
  277. __IO uint32_t LIST; /*!< EasyDMA list type */
  278. } TWIM_TXD_Type;
  279. typedef struct {
  280. __IO uint32_t SCL; /*!< Pin select for SCL signal */
  281. __IO uint32_t SDA; /*!< Pin select for SDA signal */
  282. } TWIS_PSEL_Type;
  283. typedef struct {
  284. __IO uint32_t PTR; /*!< RXD Data pointer */
  285. __IO uint32_t MAXCNT; /*!< Maximum number of bytes in RXD buffer */
  286. __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last RXD transaction */
  287. } TWIS_RXD_Type;
  288. typedef struct {
  289. __IO uint32_t PTR; /*!< TXD Data pointer */
  290. __IO uint32_t MAXCNT; /*!< Maximum number of bytes in TXD buffer */
  291. __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last TXD transaction */
  292. } TWIS_TXD_Type;
  293. typedef struct {
  294. __IO uint32_t SCK; /*!< Pin select for SCK */
  295. __IO uint32_t MOSI; /*!< Pin select for MOSI signal */
  296. __IO uint32_t MISO; /*!< Pin select for MISO signal */
  297. } SPI_PSEL_Type;
  298. typedef struct {
  299. __IO uint32_t SCL; /*!< Pin select for SCL */
  300. __IO uint32_t SDA; /*!< Pin select for SDA */
  301. } TWI_PSEL_Type;
  302. typedef struct {
  303. __IO uint32_t RX; /*!< Result of last incoming frame */
  304. } NFCT_FRAMESTATUS_Type;
  305. typedef struct {
  306. __IO uint32_t FRAMECONFIG; /*!< Configuration of outgoing frames */
  307. __IO uint32_t AMOUNT; /*!< Size of outgoing frame */
  308. } NFCT_TXD_Type;
  309. typedef struct {
  310. __IO uint32_t FRAMECONFIG; /*!< Configuration of incoming frames */
  311. __I uint32_t AMOUNT; /*!< Size of last incoming frame */
  312. } NFCT_RXD_Type;
  313. typedef struct {
  314. __IO uint32_t LIMITH; /*!< Description cluster[0]: Last results is equal or above CH[0].LIMIT.HIGH */
  315. __IO uint32_t LIMITL; /*!< Description cluster[0]: Last results is equal or below CH[0].LIMIT.LOW */
  316. } SAADC_EVENTS_CH_Type;
  317. typedef struct {
  318. __IO uint32_t PSELP; /*!< Description cluster[0]: Input positive pin selection for CH[0] */
  319. __IO uint32_t PSELN; /*!< Description cluster[0]: Input negative pin selection for CH[0] */
  320. __IO uint32_t CONFIG; /*!< Description cluster[0]: Input configuration for CH[0] */
  321. __IO uint32_t LIMIT; /*!< Description cluster[0]: High/low limits for event monitoring
  322. a channel */
  323. } SAADC_CH_Type;
  324. typedef struct {
  325. __IO uint32_t PTR; /*!< Data pointer */
  326. __IO uint32_t MAXCNT; /*!< Maximum number of buffer words to transfer */
  327. __I uint32_t AMOUNT; /*!< Number of buffer words transferred since last START */
  328. } SAADC_RESULT_Type;
  329. typedef struct {
  330. __IO uint32_t LED; /*!< Pin select for LED signal */
  331. __IO uint32_t A; /*!< Pin select for A signal */
  332. __IO uint32_t B; /*!< Pin select for B signal */
  333. } QDEC_PSEL_Type;
  334. typedef struct {
  335. __IO uint32_t PTR; /*!< Description cluster[0]: Beginning address in Data RAM of this
  336. sequence */
  337. __IO uint32_t CNT; /*!< Description cluster[0]: Amount of values (duty cycles) in this
  338. sequence */
  339. __IO uint32_t REFRESH; /*!< Description cluster[0]: Amount of additional PWM periods between
  340. samples loaded into compare register */
  341. __IO uint32_t ENDDELAY; /*!< Description cluster[0]: Time added after the sequence */
  342. __I uint32_t RESERVED1[4];
  343. } PWM_SEQ_Type;
  344. typedef struct {
  345. __IO uint32_t OUT[4]; /*!< Description collection[0]: Output pin select for PWM channel
  346. 0 */
  347. } PWM_PSEL_Type;
  348. typedef struct {
  349. __IO uint32_t CLK; /*!< Pin number configuration for PDM CLK signal */
  350. __IO uint32_t DIN; /*!< Pin number configuration for PDM DIN signal */
  351. } PDM_PSEL_Type;
  352. typedef struct {
  353. __IO uint32_t PTR; /*!< RAM address pointer to write samples to with EasyDMA */
  354. __IO uint32_t MAXCNT; /*!< Number of samples to allocate memory for in EasyDMA mode */
  355. } PDM_SAMPLE_Type;
  356. typedef struct {
  357. __IO uint32_t ADDR; /*!< Description cluster[0]: Configure the word-aligned start address
  358. of region 0 to protect */
  359. __IO uint32_t SIZE; /*!< Description cluster[0]: Size of region to protect counting from
  360. address ACL[0].ADDR. Write '0' as no effect. */
  361. __IO uint32_t PERM; /*!< Description cluster[0]: Access permissions for region 0 as defined
  362. by start address ACL[0].ADDR and size ACL[0].SIZE */
  363. __IO uint32_t UNUSED0; /*!< Unspecified */
  364. } ACL_ACL_Type;
  365. typedef struct {
  366. __O uint32_t EN; /*!< Description cluster[0]: Enable channel group 0 */
  367. __O uint32_t DIS; /*!< Description cluster[0]: Disable channel group 0 */
  368. } PPI_TASKS_CHG_Type;
  369. typedef struct {
  370. __IO uint32_t EEP; /*!< Description cluster[0]: Channel 0 event end-point */
  371. __IO uint32_t TEP; /*!< Description cluster[0]: Channel 0 task end-point */
  372. } PPI_CH_Type;
  373. typedef struct {
  374. __IO uint32_t TEP; /*!< Description cluster[0]: Channel 0 task end-point */
  375. } PPI_FORK_Type;
  376. typedef struct {
  377. __IO uint32_t WA; /*!< Description cluster[0]: Write access to region 0 detected */
  378. __IO uint32_t RA; /*!< Description cluster[0]: Read access to region 0 detected */
  379. } MWU_EVENTS_REGION_Type;
  380. typedef struct {
  381. __IO uint32_t WA; /*!< Description cluster[0]: Write access to peripheral region 0
  382. detected */
  383. __IO uint32_t RA; /*!< Description cluster[0]: Read access to peripheral region 0 detected */
  384. } MWU_EVENTS_PREGION_Type;
  385. typedef struct {
  386. __IO uint32_t SUBSTATWA; /*!< Description cluster[0]: Source of event/interrupt in region
  387. 0, write access detected while corresponding subregion was enabled
  388. for watching */
  389. __IO uint32_t SUBSTATRA; /*!< Description cluster[0]: Source of event/interrupt in region
  390. 0, read access detected while corresponding subregion was enabled
  391. for watching */
  392. } MWU_PERREGION_Type;
  393. typedef struct {
  394. __IO uint32_t START; /*!< Description cluster[0]: Start address for region 0 */
  395. __IO uint32_t END; /*!< Description cluster[0]: End address of region 0 */
  396. __I uint32_t RESERVED2[2];
  397. } MWU_REGION_Type;
  398. typedef struct {
  399. __I uint32_t START; /*!< Description cluster[0]: Reserved for future use */
  400. __I uint32_t END; /*!< Description cluster[0]: Reserved for future use */
  401. __IO uint32_t SUBS; /*!< Description cluster[0]: Subregions of region 0 */
  402. __I uint32_t RESERVED3;
  403. } MWU_PREGION_Type;
  404. typedef struct {
  405. __IO uint32_t MODE; /*!< I2S mode. */
  406. __IO uint32_t RXEN; /*!< Reception (RX) enable. */
  407. __IO uint32_t TXEN; /*!< Transmission (TX) enable. */
  408. __IO uint32_t MCKEN; /*!< Master clock generator enable. */
  409. __IO uint32_t MCKFREQ; /*!< Master clock generator frequency. */
  410. __IO uint32_t RATIO; /*!< MCK / LRCK ratio. */
  411. __IO uint32_t SWIDTH; /*!< Sample width. */
  412. __IO uint32_t ALIGN; /*!< Alignment of sample within a frame. */
  413. __IO uint32_t FORMAT; /*!< Frame format. */
  414. __IO uint32_t CHANNELS; /*!< Enable channels. */
  415. } I2S_CONFIG_Type;
  416. typedef struct {
  417. __IO uint32_t PTR; /*!< Receive buffer RAM start address. */
  418. } I2S_RXD_Type;
  419. typedef struct {
  420. __IO uint32_t PTR; /*!< Transmit buffer RAM start address. */
  421. } I2S_TXD_Type;
  422. typedef struct {
  423. __IO uint32_t MAXCNT; /*!< Size of RXD and TXD buffers. */
  424. } I2S_RXTXD_Type;
  425. typedef struct {
  426. __IO uint32_t MCK; /*!< Pin select for MCK signal. */
  427. __IO uint32_t SCK; /*!< Pin select for SCK signal. */
  428. __IO uint32_t LRCK; /*!< Pin select for LRCK signal. */
  429. __IO uint32_t SDIN; /*!< Pin select for SDIN signal. */
  430. __IO uint32_t SDOUT; /*!< Pin select for SDOUT signal. */
  431. } I2S_PSEL_Type;
  432. typedef struct {
  433. __I uint32_t EPIN[8]; /*!< Description collection[0]: IN endpoint halted status. Can be
  434. used as is as response to a GetStatus() request to endpoint. */
  435. __I uint32_t RESERVED4;
  436. __I uint32_t EPOUT[8]; /*!< Description collection[0]: OUT endpoint halted status. Can be
  437. used as is as response to a GetStatus() request to endpoint. */
  438. } USBD_HALTED_Type;
  439. typedef struct {
  440. __IO uint32_t EPOUT[8]; /*!< Description collection[0]: Amount of bytes received last in
  441. the data stage of this OUT endpoint */
  442. __IO uint32_t ISOOUT; /*!< Amount of bytes received last on this iso OUT data endpoint */
  443. } USBD_SIZE_Type;
  444. typedef struct {
  445. __IO uint32_t PTR; /*!< Description cluster[0]: Data pointer */
  446. __IO uint32_t MAXCNT; /*!< Description cluster[0]: Maximum number of bytes to transfer */
  447. __I uint32_t AMOUNT; /*!< Description cluster[0]: Number of bytes transferred in the last
  448. transaction */
  449. __I uint32_t RESERVED5[2];
  450. } USBD_EPIN_Type;
  451. typedef struct {
  452. __IO uint32_t PTR; /*!< Data pointer */
  453. __IO uint32_t MAXCNT; /*!< Maximum number of bytes to transfer */
  454. __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
  455. } USBD_ISOIN_Type;
  456. typedef struct {
  457. __IO uint32_t PTR; /*!< Description cluster[0]: Data pointer */
  458. __IO uint32_t MAXCNT; /*!< Description cluster[0]: Maximum number of bytes to transfer */
  459. __I uint32_t AMOUNT; /*!< Description cluster[0]: Number of bytes transferred in the last
  460. transaction */
  461. __I uint32_t RESERVED6[2];
  462. } USBD_EPOUT_Type;
  463. typedef struct {
  464. __IO uint32_t PTR; /*!< Data pointer */
  465. __IO uint32_t MAXCNT; /*!< Maximum number of bytes to transfer */
  466. __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
  467. } USBD_ISOOUT_Type;
  468. typedef struct {
  469. __IO uint32_t SRC; /*!< Flash memory source address */
  470. __IO uint32_t DST; /*!< RAM destination address */
  471. __IO uint32_t CNT; /*!< Read transfer length */
  472. } QSPI_READ_Type;
  473. typedef struct {
  474. __IO uint32_t DST; /*!< Flash destination address */
  475. __IO uint32_t SRC; /*!< RAM source address */
  476. __IO uint32_t CNT; /*!< Write transfer length */
  477. } QSPI_WRITE_Type;
  478. typedef struct {
  479. __IO uint32_t PTR; /*!< Start address of flash block to be erased */
  480. __IO uint32_t LEN; /*!< Size of block to be erased. */
  481. } QSPI_ERASE_Type;
  482. typedef struct {
  483. __IO uint32_t SCK; /*!< Pin select for serial clock SCK */
  484. __IO uint32_t CSN; /*!< Pin select for chip select signal CSN. */
  485. __I uint32_t RESERVED7;
  486. __IO uint32_t IO0; /*!< Pin select for serial data MOSI/IO0. */
  487. __IO uint32_t IO1; /*!< Pin select for serial data MISO/IO1. */
  488. __IO uint32_t IO2; /*!< Pin select for serial data IO2. */
  489. __IO uint32_t IO3; /*!< Pin select for serial data IO3. */
  490. } QSPI_PSEL_Type;
  491. /* ================================================================================ */
  492. /* ================ FICR ================ */
  493. /* ================================================================================ */
  494. /**
  495. * @brief Factory information configuration registers (FICR)
  496. */
  497. typedef struct { /*!< FICR Structure */
  498. __I uint32_t RESERVED0[4];
  499. __I uint32_t CODEPAGESIZE; /*!< Code memory page size */
  500. __I uint32_t CODESIZE; /*!< Code memory size */
  501. __I uint32_t RESERVED1[18];
  502. __I uint32_t DEVICEID[2]; /*!< Description collection[0]: Device identifier */
  503. __I uint32_t RESERVED2[6];
  504. __I uint32_t ER[4]; /*!< Description collection[0]: Encryption root, word 0 */
  505. __I uint32_t IR[4]; /*!< Description collection[0]: Identity Root, word 0 */
  506. __I uint32_t DEVICEADDRTYPE; /*!< Device address type */
  507. __I uint32_t DEVICEADDR[2]; /*!< Description collection[0]: Device address 0 */
  508. __I uint32_t RESERVED3[21];
  509. FICR_INFO_Type INFO; /*!< Device info */
  510. __I uint32_t RESERVED4[185];
  511. FICR_TEMP_Type TEMP; /*!< Registers storing factory TEMP module linearization coefficients */
  512. __I uint32_t RESERVED5[2];
  513. FICR_NFC_Type NFC; /*!< Unspecified */
  514. } NRF_FICR_Type;
  515. /* ================================================================================ */
  516. /* ================ UICR ================ */
  517. /* ================================================================================ */
  518. /**
  519. * @brief User information configuration registers (UICR)
  520. */
  521. typedef struct { /*!< UICR Structure */
  522. __IO uint32_t UNUSED0; /*!< Unspecified */
  523. __IO uint32_t UNUSED1; /*!< Unspecified */
  524. __IO uint32_t UNUSED2; /*!< Unspecified */
  525. __I uint32_t RESERVED0;
  526. __IO uint32_t UNUSED3; /*!< Unspecified */
  527. __IO uint32_t NRFFW[15]; /*!< Description collection[0]: Reserved for Nordic firmware design */
  528. __IO uint32_t NRFHW[12]; /*!< Description collection[0]: Reserved for Nordic hardware design */
  529. __IO uint32_t CUSTOMER[32]; /*!< Description collection[0]: Reserved for customer */
  530. __I uint32_t RESERVED1[64];
  531. __IO uint32_t PSELRESET[2]; /*!< Description collection[0]: Mapping of the nRESET function */
  532. __IO uint32_t APPROTECT; /*!< Access port protection */
  533. __IO uint32_t NFCPINS; /*!< Setting of pins dedicated to NFC functionality: NFC antenna
  534. or GPIO */
  535. __I uint32_t RESERVED2[60];
  536. __IO uint32_t EXTSUPPLY; /*!< Enable external circuitry to be supplied from VDD pin. Applicable
  537. in high voltage mode only. */
  538. __IO uint32_t REGOUT0; /*!< GPIO reference voltage / external output supply voltage in high
  539. voltage mode */
  540. } NRF_UICR_Type;
  541. /* ================================================================================ */
  542. /* ================ POWER ================ */
  543. /* ================================================================================ */
  544. /**
  545. * @brief Power control (POWER)
  546. */
  547. typedef struct { /*!< POWER Structure */
  548. __I uint32_t RESERVED0[30];
  549. __O uint32_t TASKS_CONSTLAT; /*!< Enable constant latency mode */
  550. __O uint32_t TASKS_LOWPWR; /*!< Enable low power mode (variable latency) */
  551. __I uint32_t RESERVED1[34];
  552. __IO uint32_t EVENTS_POFWARN; /*!< Power failure warning */
  553. __I uint32_t RESERVED2[2];
  554. __IO uint32_t EVENTS_SLEEPENTER; /*!< CPU entered WFI/WFE sleep */
  555. __IO uint32_t EVENTS_SLEEPEXIT; /*!< CPU exited WFI/WFE sleep */
  556. __IO uint32_t EVENTS_USBDETECTED; /*!< Voltage supply detected on VBUS */
  557. __IO uint32_t EVENTS_USBREMOVED; /*!< Voltage supply removed from VBUS */
  558. __IO uint32_t EVENTS_USBPWRRDY; /*!< USB 3.3 V supply ready */
  559. __I uint32_t RESERVED3[119];
  560. __IO uint32_t INTENSET; /*!< Enable interrupt */
  561. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  562. __I uint32_t RESERVED4[61];
  563. __IO uint32_t RESETREAS; /*!< Reset reason */
  564. __I uint32_t RESERVED5[9];
  565. __I uint32_t RAMSTATUS; /*!< Deprecated register - RAM status register */
  566. __I uint32_t RESERVED6[3];
  567. __I uint32_t USBREGSTATUS; /*!< USB supply status */
  568. __I uint32_t RESERVED7[49];
  569. __O uint32_t SYSTEMOFF; /*!< System OFF register */
  570. __I uint32_t RESERVED8[3];
  571. __IO uint32_t POFCON; /*!< Power failure comparator configuration */
  572. __I uint32_t RESERVED9[2];
  573. __IO uint32_t GPREGRET; /*!< General purpose retention register */
  574. __IO uint32_t GPREGRET2; /*!< General purpose retention register */
  575. __I uint32_t RESERVED10[21];
  576. __IO uint32_t DCDCEN; /*!< Enable DC/DC converter for REG1 stage. */
  577. __I uint32_t RESERVED11;
  578. __IO uint32_t DCDCEN0; /*!< Enable DC/DC converter for REG0 stage. */
  579. __I uint32_t RESERVED12[47];
  580. __I uint32_t MAINREGSTATUS; /*!< Main supply status */
  581. __I uint32_t RESERVED13[175];
  582. POWER_RAM_Type RAM[9]; /*!< Unspecified */
  583. } NRF_POWER_Type;
  584. /* ================================================================================ */
  585. /* ================ CLOCK ================ */
  586. /* ================================================================================ */
  587. /**
  588. * @brief Clock control (CLOCK)
  589. */
  590. typedef struct { /*!< CLOCK Structure */
  591. __O uint32_t TASKS_HFCLKSTART; /*!< Start HFCLK crystal oscillator */
  592. __O uint32_t TASKS_HFCLKSTOP; /*!< Stop HFCLK crystal oscillator */
  593. __O uint32_t TASKS_LFCLKSTART; /*!< Start LFCLK source */
  594. __O uint32_t TASKS_LFCLKSTOP; /*!< Stop LFCLK source */
  595. __O uint32_t TASKS_CAL; /*!< Start calibration of LFRC or LFULP oscillator */
  596. __O uint32_t TASKS_CTSTART; /*!< Start calibration timer */
  597. __O uint32_t TASKS_CTSTOP; /*!< Stop calibration timer */
  598. __I uint32_t RESERVED0[57];
  599. __IO uint32_t EVENTS_HFCLKSTARTED; /*!< HFCLK oscillator started */
  600. __IO uint32_t EVENTS_LFCLKSTARTED; /*!< LFCLK started */
  601. __I uint32_t RESERVED1;
  602. __IO uint32_t EVENTS_DONE; /*!< Calibration of LFCLK RC oscillator complete event */
  603. __IO uint32_t EVENTS_CTTO; /*!< Calibration timer timeout */
  604. __I uint32_t RESERVED2[124];
  605. __IO uint32_t INTENSET; /*!< Enable interrupt */
  606. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  607. __I uint32_t RESERVED3[63];
  608. __I uint32_t HFCLKRUN; /*!< Status indicating that HFCLKSTART task has been triggered */
  609. __I uint32_t HFCLKSTAT; /*!< HFCLK status */
  610. __I uint32_t RESERVED4;
  611. __I uint32_t LFCLKRUN; /*!< Status indicating that LFCLKSTART task has been triggered */
  612. __I uint32_t LFCLKSTAT; /*!< LFCLK status */
  613. __I uint32_t LFCLKSRCCOPY; /*!< Copy of LFCLKSRC register, set when LFCLKSTART task was triggered */
  614. __I uint32_t RESERVED5[62];
  615. __IO uint32_t LFCLKSRC; /*!< Clock source for the LFCLK */
  616. __I uint32_t RESERVED6[7];
  617. __IO uint32_t CTIV; /*!< Calibration timer interval */
  618. __I uint32_t RESERVED7[8];
  619. __IO uint32_t TRACECONFIG; /*!< Clocking options for the Trace Port debug interface */
  620. __I uint32_t RESERVED8[21];
  621. __IO uint32_t LFRCMODE; /*!< LFRC mode configuration */
  622. } NRF_CLOCK_Type;
  623. /* ================================================================================ */
  624. /* ================ RADIO ================ */
  625. /* ================================================================================ */
  626. /**
  627. * @brief 2.4 GHz Radio (RADIO)
  628. */
  629. typedef struct { /*!< RADIO Structure */
  630. __O uint32_t TASKS_TXEN; /*!< Enable RADIO in TX mode */
  631. __O uint32_t TASKS_RXEN; /*!< Enable RADIO in RX mode */
  632. __O uint32_t TASKS_START; /*!< Start RADIO */
  633. __O uint32_t TASKS_STOP; /*!< Stop RADIO */
  634. __O uint32_t TASKS_DISABLE; /*!< Disable RADIO */
  635. __O uint32_t TASKS_RSSISTART; /*!< Start the RSSI and take one single sample of the receive signal
  636. strength. */
  637. __O uint32_t TASKS_RSSISTOP; /*!< Stop the RSSI measurement */
  638. __O uint32_t TASKS_BCSTART; /*!< Start the bit counter */
  639. __O uint32_t TASKS_BCSTOP; /*!< Stop the bit counter */
  640. __O uint32_t TASKS_EDSTART; /*!< Start the Energy Detect measurement used in IEEE 802.15.4 mode */
  641. __O uint32_t TASKS_EDSTOP; /*!< Stop the Energy Detect measurement */
  642. __O uint32_t TASKS_CCASTART; /*!< Start the Clear Channel Assessment used in IEEE 802.15.4 mode */
  643. __O uint32_t TASKS_CCASTOP; /*!< Stop the Clear Channel Assessment */
  644. __I uint32_t RESERVED0[51];
  645. __IO uint32_t EVENTS_READY; /*!< RADIO has ramped up and is ready to be started */
  646. __IO uint32_t EVENTS_ADDRESS; /*!< Address sent or received */
  647. __IO uint32_t EVENTS_PAYLOAD; /*!< Packet payload sent or received */
  648. __IO uint32_t EVENTS_END; /*!< Packet sent or received */
  649. __IO uint32_t EVENTS_DISABLED; /*!< RADIO has been disabled */
  650. __IO uint32_t EVENTS_DEVMATCH; /*!< A device address match occurred on the last received packet */
  651. __IO uint32_t EVENTS_DEVMISS; /*!< No device address match occurred on the last received packet */
  652. __IO uint32_t EVENTS_RSSIEND; /*!< Sampling of receive signal strength complete. */
  653. __I uint32_t RESERVED1[2];
  654. __IO uint32_t EVENTS_BCMATCH; /*!< Bit counter reached bit count value. */
  655. __I uint32_t RESERVED2;
  656. __IO uint32_t EVENTS_CRCOK; /*!< Packet received with CRC ok */
  657. __IO uint32_t EVENTS_CRCERROR; /*!< Packet received with CRC error */
  658. __IO uint32_t EVENTS_FRAMESTART; /*!< IEEE 802.15.4 length field received */
  659. __IO uint32_t EVENTS_EDEND; /*!< Sampling of Energy Detection complete. A new ED sample is ready
  660. for readout from the RADIO.EDSAMPLE register */
  661. __IO uint32_t EVENTS_EDSTOPPED; /*!< The sampling of Energy Detection has stopped */
  662. __IO uint32_t EVENTS_CCAIDLE; /*!< Wireless medium in idle - clear to send */
  663. __IO uint32_t EVENTS_CCABUSY; /*!< Wireless medium busy - do not send */
  664. __IO uint32_t EVENTS_CCASTOPPED; /*!< The CCA has stopped */
  665. __IO uint32_t EVENTS_RATEBOOST; /*!< Ble_LR CI field received, receive mode is changed from Ble_LR125Kbit
  666. to Ble_LR500Kbit. */
  667. __IO uint32_t EVENTS_TXREADY; /*!< RADIO has ramped up and is ready to be started TX path */
  668. __IO uint32_t EVENTS_RXREADY; /*!< RADIO has ramped up and is ready to be started RX path */
  669. __IO uint32_t EVENTS_MHRMATCH; /*!< MAC Header match found. */
  670. __I uint32_t RESERVED3[40];
  671. __IO uint32_t SHORTS; /*!< Shortcut register */
  672. __I uint32_t RESERVED4[64];
  673. __IO uint32_t INTENSET; /*!< Enable interrupt */
  674. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  675. __I uint32_t RESERVED5[61];
  676. __I uint32_t CRCSTATUS; /*!< CRC status */
  677. __I uint32_t RESERVED6;
  678. __I uint32_t RXMATCH; /*!< Received address */
  679. __I uint32_t RXCRC; /*!< CRC field of previously received packet */
  680. __I uint32_t DAI; /*!< Device address match index */
  681. __I uint32_t RESERVED7[60];
  682. __IO uint32_t PACKETPTR; /*!< Packet pointer */
  683. __IO uint32_t FREQUENCY; /*!< Frequency */
  684. __IO uint32_t TXPOWER; /*!< Output power */
  685. __IO uint32_t MODE; /*!< Data rate and modulation */
  686. __IO uint32_t PCNF0; /*!< Packet configuration register 0 */
  687. __IO uint32_t PCNF1; /*!< Packet configuration register 1 */
  688. __IO uint32_t BASE0; /*!< Base address 0 */
  689. __IO uint32_t BASE1; /*!< Base address 1 */
  690. __IO uint32_t PREFIX0; /*!< Prefixes bytes for logical addresses 0-3 */
  691. __IO uint32_t PREFIX1; /*!< Prefixes bytes for logical addresses 4-7 */
  692. __IO uint32_t TXADDRESS; /*!< Transmit address select */
  693. __IO uint32_t RXADDRESSES; /*!< Receive address select */
  694. __IO uint32_t CRCCNF; /*!< CRC configuration */
  695. __IO uint32_t CRCPOLY; /*!< CRC polynomial */
  696. __IO uint32_t CRCINIT; /*!< CRC initial value */
  697. __I uint32_t RESERVED8;
  698. __IO uint32_t TIFS; /*!< Inter Frame Spacing in us */
  699. __I uint32_t RSSISAMPLE; /*!< RSSI sample */
  700. __I uint32_t RESERVED9;
  701. __I uint32_t STATE; /*!< Current radio state */
  702. __IO uint32_t DATAWHITEIV; /*!< Data whitening initial value */
  703. __I uint32_t RESERVED10[2];
  704. __IO uint32_t BCC; /*!< Bit counter compare */
  705. __I uint32_t RESERVED11[39];
  706. __IO uint32_t DAB[8]; /*!< Description collection[0]: Device address base segment 0 */
  707. __IO uint32_t DAP[8]; /*!< Description collection[0]: Device address prefix 0 */
  708. __IO uint32_t DACNF; /*!< Device address match configuration */
  709. __IO uint32_t MHRMATCHCONF; /*!< Search Pattern Configuration */
  710. __IO uint32_t MHRMATCHMAS; /*!< Pattern mask */
  711. __I uint32_t RESERVED12;
  712. __IO uint32_t MODECNF0; /*!< Radio mode configuration register 0 */
  713. __I uint32_t RESERVED13[3];
  714. __IO uint32_t SFD; /*!< IEEE 802.15.4 Start of Frame Delimiter */
  715. __IO uint32_t EDCNT; /*!< IEEE 802.15.4 Energy Detect Loop Count */
  716. __IO uint32_t EDSAMPLE; /*!< IEEE 802.15.4 Energy Detect Level */
  717. __IO uint32_t CCACTRL; /*!< IEEE 802.15.4 Clear Channel Assessment Control */
  718. __I uint32_t RESERVED14[611];
  719. __IO uint32_t POWER; /*!< Peripheral power control */
  720. } NRF_RADIO_Type;
  721. /* ================================================================================ */
  722. /* ================ UARTE ================ */
  723. /* ================================================================================ */
  724. /**
  725. * @brief UART with EasyDMA 0 (UARTE)
  726. */
  727. typedef struct { /*!< UARTE Structure */
  728. __O uint32_t TASKS_STARTRX; /*!< Start UART receiver */
  729. __O uint32_t TASKS_STOPRX; /*!< Stop UART receiver */
  730. __O uint32_t TASKS_STARTTX; /*!< Start UART transmitter */
  731. __O uint32_t TASKS_STOPTX; /*!< Stop UART transmitter */
  732. __I uint32_t RESERVED0[7];
  733. __O uint32_t TASKS_FLUSHRX; /*!< Flush RX FIFO into RX buffer */
  734. __I uint32_t RESERVED1[52];
  735. __IO uint32_t EVENTS_CTS; /*!< CTS is activated (set low). Clear To Send. */
  736. __IO uint32_t EVENTS_NCTS; /*!< CTS is deactivated (set high). Not Clear To Send. */
  737. __IO uint32_t EVENTS_RXDRDY; /*!< Data received in RXD (but potentially not yet transferred to
  738. Data RAM) */
  739. __I uint32_t RESERVED2;
  740. __IO uint32_t EVENTS_ENDRX; /*!< Receive buffer is filled up */
  741. __I uint32_t RESERVED3[2];
  742. __IO uint32_t EVENTS_TXDRDY; /*!< Data sent from TXD */
  743. __IO uint32_t EVENTS_ENDTX; /*!< Last TX byte transmitted */
  744. __IO uint32_t EVENTS_ERROR; /*!< Error detected */
  745. __I uint32_t RESERVED4[7];
  746. __IO uint32_t EVENTS_RXTO; /*!< Receiver timeout */
  747. __I uint32_t RESERVED5;
  748. __IO uint32_t EVENTS_RXSTARTED; /*!< UART receiver has started */
  749. __IO uint32_t EVENTS_TXSTARTED; /*!< UART transmitter has started */
  750. __I uint32_t RESERVED6;
  751. __IO uint32_t EVENTS_TXSTOPPED; /*!< Transmitter stopped */
  752. __I uint32_t RESERVED7[41];
  753. __IO uint32_t SHORTS; /*!< Shortcut register */
  754. __I uint32_t RESERVED8[63];
  755. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  756. __IO uint32_t INTENSET; /*!< Enable interrupt */
  757. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  758. __I uint32_t RESERVED9[93];
  759. __IO uint32_t ERRORSRC; /*!< Error source Note : this register is read / write one to clear. */
  760. __I uint32_t RESERVED10[31];
  761. __IO uint32_t ENABLE; /*!< Enable UART */
  762. __I uint32_t RESERVED11;
  763. UARTE_PSEL_Type PSEL; /*!< Unspecified */
  764. __I uint32_t RESERVED12[3];
  765. __IO uint32_t BAUDRATE; /*!< Baud rate. Accuracy depends on the HFCLK source selected. */
  766. __I uint32_t RESERVED13[3];
  767. UARTE_RXD_Type RXD; /*!< RXD EasyDMA channel */
  768. __I uint32_t RESERVED14;
  769. UARTE_TXD_Type TXD; /*!< TXD EasyDMA channel */
  770. __I uint32_t RESERVED15[7];
  771. __IO uint32_t CONFIG; /*!< Configuration of parity and hardware flow control */
  772. } NRF_UARTE_Type;
  773. /* ================================================================================ */
  774. /* ================ UART ================ */
  775. /* ================================================================================ */
  776. /**
  777. * @brief Universal Asynchronous Receiver/Transmitter (UART)
  778. */
  779. typedef struct { /*!< UART Structure */
  780. __O uint32_t TASKS_STARTRX; /*!< Start UART receiver */
  781. __O uint32_t TASKS_STOPRX; /*!< Stop UART receiver */
  782. __O uint32_t TASKS_STARTTX; /*!< Start UART transmitter */
  783. __O uint32_t TASKS_STOPTX; /*!< Stop UART transmitter */
  784. __I uint32_t RESERVED0[3];
  785. __O uint32_t TASKS_SUSPEND; /*!< Suspend UART */
  786. __I uint32_t RESERVED1[56];
  787. __IO uint32_t EVENTS_CTS; /*!< CTS is activated (set low). Clear To Send. */
  788. __IO uint32_t EVENTS_NCTS; /*!< CTS is deactivated (set high). Not Clear To Send. */
  789. __IO uint32_t EVENTS_RXDRDY; /*!< Data received in RXD */
  790. __I uint32_t RESERVED2[4];
  791. __IO uint32_t EVENTS_TXDRDY; /*!< Data sent from TXD */
  792. __I uint32_t RESERVED3;
  793. __IO uint32_t EVENTS_ERROR; /*!< Error detected */
  794. __I uint32_t RESERVED4[7];
  795. __IO uint32_t EVENTS_RXTO; /*!< Receiver timeout */
  796. __I uint32_t RESERVED5[46];
  797. __IO uint32_t SHORTS; /*!< Shortcut register */
  798. __I uint32_t RESERVED6[64];
  799. __IO uint32_t INTENSET; /*!< Enable interrupt */
  800. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  801. __I uint32_t RESERVED7[93];
  802. __IO uint32_t ERRORSRC; /*!< Error source */
  803. __I uint32_t RESERVED8[31];
  804. __IO uint32_t ENABLE; /*!< Enable UART */
  805. __I uint32_t RESERVED9;
  806. UART_PSEL_Type PSEL; /*!< Unspecified */
  807. __I uint32_t RXD; /*!< RXD register */
  808. __O uint32_t TXD; /*!< TXD register */
  809. __I uint32_t RESERVED10;
  810. __IO uint32_t BAUDRATE; /*!< Baud rate. Accuracy depends on the HFCLK source selected. */
  811. __I uint32_t RESERVED11[17];
  812. __IO uint32_t CONFIG; /*!< Configuration of parity and hardware flow control */
  813. } NRF_UART_Type;
  814. /* ================================================================================ */
  815. /* ================ SPIM ================ */
  816. /* ================================================================================ */
  817. /**
  818. * @brief Serial Peripheral Interface Master with EasyDMA 0 (SPIM)
  819. */
  820. typedef struct { /*!< SPIM Structure */
  821. __I uint32_t RESERVED0[4];
  822. __O uint32_t TASKS_START; /*!< Start SPI transaction */
  823. __O uint32_t TASKS_STOP; /*!< Stop SPI transaction */
  824. __I uint32_t RESERVED1;
  825. __O uint32_t TASKS_SUSPEND; /*!< Suspend SPI transaction */
  826. __O uint32_t TASKS_RESUME; /*!< Resume SPI transaction */
  827. __I uint32_t RESERVED2[56];
  828. __IO uint32_t EVENTS_STOPPED; /*!< SPI transaction has stopped */
  829. __I uint32_t RESERVED3[2];
  830. __IO uint32_t EVENTS_ENDRX; /*!< End of RXD buffer reached */
  831. __I uint32_t RESERVED4;
  832. __IO uint32_t EVENTS_END; /*!< End of RXD buffer and TXD buffer reached */
  833. __I uint32_t RESERVED5;
  834. __IO uint32_t EVENTS_ENDTX; /*!< End of TXD buffer reached */
  835. __I uint32_t RESERVED6[10];
  836. __IO uint32_t EVENTS_STARTED; /*!< Transaction started */
  837. __I uint32_t RESERVED7[44];
  838. __IO uint32_t SHORTS; /*!< Shortcut register */
  839. __I uint32_t RESERVED8[64];
  840. __IO uint32_t INTENSET; /*!< Enable interrupt */
  841. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  842. __I uint32_t RESERVED9[61];
  843. __IO uint32_t STALLSTAT; /*!< Stall status for EasyDMA RAM accesses. The fields in this register
  844. is set to STALL by hardware whenever a stall occurres and can
  845. be cleared (set to NOSTALL) by the CPU. */
  846. __I uint32_t RESERVED10[63];
  847. __IO uint32_t ENABLE; /*!< Enable SPIM */
  848. __I uint32_t RESERVED11;
  849. SPIM_PSEL_Type PSEL; /*!< Unspecified */
  850. __I uint32_t RESERVED12[3];
  851. __IO uint32_t FREQUENCY; /*!< SPI frequency. Accuracy depends on the HFCLK source selected. */
  852. __I uint32_t RESERVED13[3];
  853. SPIM_RXD_Type RXD; /*!< RXD EasyDMA channel */
  854. SPIM_TXD_Type TXD; /*!< TXD EasyDMA channel */
  855. __IO uint32_t CONFIG; /*!< Configuration register */
  856. __I uint32_t RESERVED14[2];
  857. SPIM_IFTIMING_Type IFTIMING; /*!< Unspecified */
  858. __I uint32_t RESERVED15[22];
  859. __IO uint32_t ORC; /*!< Byte transmitted after TXD.MAXCNT bytes have been transmitted
  860. in the case when RXD.MAXCNT is greater than TXD.MAXCNT */
  861. } NRF_SPIM_Type;
  862. /* ================================================================================ */
  863. /* ================ SPIS ================ */
  864. /* ================================================================================ */
  865. /**
  866. * @brief SPI Slave 0 (SPIS)
  867. */
  868. typedef struct { /*!< SPIS Structure */
  869. __I uint32_t RESERVED0[9];
  870. __O uint32_t TASKS_ACQUIRE; /*!< Acquire SPI semaphore */
  871. __O uint32_t TASKS_RELEASE; /*!< Release SPI semaphore, enabling the SPI slave to acquire it */
  872. __I uint32_t RESERVED1[54];
  873. __IO uint32_t EVENTS_END; /*!< Granted transaction completed */
  874. __I uint32_t RESERVED2[2];
  875. __IO uint32_t EVENTS_ENDRX; /*!< End of RXD buffer reached */
  876. __I uint32_t RESERVED3[5];
  877. __IO uint32_t EVENTS_ACQUIRED; /*!< Semaphore acquired */
  878. __I uint32_t RESERVED4[53];
  879. __IO uint32_t SHORTS; /*!< Shortcut register */
  880. __I uint32_t RESERVED5[64];
  881. __IO uint32_t INTENSET; /*!< Enable interrupt */
  882. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  883. __I uint32_t RESERVED6[61];
  884. __I uint32_t SEMSTAT; /*!< Semaphore status register */
  885. __I uint32_t RESERVED7[15];
  886. __IO uint32_t STATUS; /*!< Status from last transaction */
  887. __I uint32_t RESERVED8[47];
  888. __IO uint32_t ENABLE; /*!< Enable SPI slave */
  889. __I uint32_t RESERVED9;
  890. SPIS_PSEL_Type PSEL; /*!< Unspecified */
  891. __I uint32_t RESERVED10[7];
  892. SPIS_RXD_Type RXD; /*!< Unspecified */
  893. __I uint32_t RESERVED11;
  894. SPIS_TXD_Type TXD; /*!< Unspecified */
  895. __I uint32_t RESERVED12;
  896. __IO uint32_t CONFIG; /*!< Configuration register */
  897. __I uint32_t RESERVED13;
  898. __IO uint32_t DEF; /*!< Default character. Character clocked out in case of an ignored
  899. transaction. */
  900. __I uint32_t RESERVED14[24];
  901. __IO uint32_t ORC; /*!< Over-read character */
  902. } NRF_SPIS_Type;
  903. /* ================================================================================ */
  904. /* ================ TWIM ================ */
  905. /* ================================================================================ */
  906. /**
  907. * @brief I2C compatible Two-Wire Master Interface with EasyDMA 0 (TWIM)
  908. */
  909. typedef struct { /*!< TWIM Structure */
  910. __O uint32_t TASKS_STARTRX; /*!< Start TWI receive sequence */
  911. __I uint32_t RESERVED0;
  912. __O uint32_t TASKS_STARTTX; /*!< Start TWI transmit sequence */
  913. __I uint32_t RESERVED1[2];
  914. __O uint32_t TASKS_STOP; /*!< Stop TWI transaction. Must be issued while the TWI master is
  915. not suspended. */
  916. __I uint32_t RESERVED2;
  917. __O uint32_t TASKS_SUSPEND; /*!< Suspend TWI transaction */
  918. __O uint32_t TASKS_RESUME; /*!< Resume TWI transaction */
  919. __I uint32_t RESERVED3[56];
  920. __IO uint32_t EVENTS_STOPPED; /*!< TWI stopped */
  921. __I uint32_t RESERVED4[7];
  922. __IO uint32_t EVENTS_ERROR; /*!< TWI error */
  923. __I uint32_t RESERVED5[8];
  924. __IO uint32_t EVENTS_SUSPENDED; /*!< Last byte has been sent out after the SUSPEND task has been
  925. issued, TWI traffic is now suspended. */
  926. __IO uint32_t EVENTS_RXSTARTED; /*!< Receive sequence started */
  927. __IO uint32_t EVENTS_TXSTARTED; /*!< Transmit sequence started */
  928. __I uint32_t RESERVED6[2];
  929. __IO uint32_t EVENTS_LASTRX; /*!< Byte boundary, starting to receive the last byte */
  930. __IO uint32_t EVENTS_LASTTX; /*!< Byte boundary, starting to transmit the last byte */
  931. __I uint32_t RESERVED7[39];
  932. __IO uint32_t SHORTS; /*!< Shortcut register */
  933. __I uint32_t RESERVED8[63];
  934. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  935. __IO uint32_t INTENSET; /*!< Enable interrupt */
  936. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  937. __I uint32_t RESERVED9[110];
  938. __IO uint32_t ERRORSRC; /*!< Error source */
  939. __I uint32_t RESERVED10[14];
  940. __IO uint32_t ENABLE; /*!< Enable TWIM */
  941. __I uint32_t RESERVED11;
  942. TWIM_PSEL_Type PSEL; /*!< Unspecified */
  943. __I uint32_t RESERVED12[5];
  944. __IO uint32_t FREQUENCY; /*!< TWI frequency. Accuracy depends on the HFCLK source selected. */
  945. __I uint32_t RESERVED13[3];
  946. TWIM_RXD_Type RXD; /*!< RXD EasyDMA channel */
  947. TWIM_TXD_Type TXD; /*!< TXD EasyDMA channel */
  948. __I uint32_t RESERVED14[13];
  949. __IO uint32_t ADDRESS; /*!< Address used in the TWI transfer */
  950. } NRF_TWIM_Type;
  951. /* ================================================================================ */
  952. /* ================ TWIS ================ */
  953. /* ================================================================================ */
  954. /**
  955. * @brief I2C compatible Two-Wire Slave Interface with EasyDMA 0 (TWIS)
  956. */
  957. typedef struct { /*!< TWIS Structure */
  958. __I uint32_t RESERVED0[5];
  959. __O uint32_t TASKS_STOP; /*!< Stop TWI transaction */
  960. __I uint32_t RESERVED1;
  961. __O uint32_t TASKS_SUSPEND; /*!< Suspend TWI transaction */
  962. __O uint32_t TASKS_RESUME; /*!< Resume TWI transaction */
  963. __I uint32_t RESERVED2[3];
  964. __O uint32_t TASKS_PREPARERX; /*!< Prepare the TWI slave to respond to a write command */
  965. __O uint32_t TASKS_PREPARETX; /*!< Prepare the TWI slave to respond to a read command */
  966. __I uint32_t RESERVED3[51];
  967. __IO uint32_t EVENTS_STOPPED; /*!< TWI stopped */
  968. __I uint32_t RESERVED4[7];
  969. __IO uint32_t EVENTS_ERROR; /*!< TWI error */
  970. __I uint32_t RESERVED5[9];
  971. __IO uint32_t EVENTS_RXSTARTED; /*!< Receive sequence started */
  972. __IO uint32_t EVENTS_TXSTARTED; /*!< Transmit sequence started */
  973. __I uint32_t RESERVED6[4];
  974. __IO uint32_t EVENTS_WRITE; /*!< Write command received */
  975. __IO uint32_t EVENTS_READ; /*!< Read command received */
  976. __I uint32_t RESERVED7[37];
  977. __IO uint32_t SHORTS; /*!< Shortcut register */
  978. __I uint32_t RESERVED8[63];
  979. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  980. __IO uint32_t INTENSET; /*!< Enable interrupt */
  981. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  982. __I uint32_t RESERVED9[113];
  983. __IO uint32_t ERRORSRC; /*!< Error source */
  984. __I uint32_t MATCH; /*!< Status register indicating which address had a match */
  985. __I uint32_t RESERVED10[10];
  986. __IO uint32_t ENABLE; /*!< Enable TWIS */
  987. __I uint32_t RESERVED11;
  988. TWIS_PSEL_Type PSEL; /*!< Unspecified */
  989. __I uint32_t RESERVED12[9];
  990. TWIS_RXD_Type RXD; /*!< RXD EasyDMA channel */
  991. __I uint32_t RESERVED13;
  992. TWIS_TXD_Type TXD; /*!< TXD EasyDMA channel */
  993. __I uint32_t RESERVED14[14];
  994. __IO uint32_t ADDRESS[2]; /*!< Description collection[0]: TWI slave address 0 */
  995. __I uint32_t RESERVED15;
  996. __IO uint32_t CONFIG; /*!< Configuration register for the address match mechanism */
  997. __I uint32_t RESERVED16[10];
  998. __IO uint32_t ORC; /*!< Over-read character. Character sent out in case of an over-read
  999. of the transmit buffer. */
  1000. } NRF_TWIS_Type;
  1001. /* ================================================================================ */
  1002. /* ================ SPI ================ */
  1003. /* ================================================================================ */
  1004. /**
  1005. * @brief Serial Peripheral Interface 0 (SPI)
  1006. */
  1007. typedef struct { /*!< SPI Structure */
  1008. __I uint32_t RESERVED0[66];
  1009. __IO uint32_t EVENTS_READY; /*!< TXD byte sent and RXD byte received */
  1010. __I uint32_t RESERVED1[126];
  1011. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1012. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1013. __I uint32_t RESERVED2[125];
  1014. __IO uint32_t ENABLE; /*!< Enable SPI */
  1015. __I uint32_t RESERVED3;
  1016. SPI_PSEL_Type PSEL; /*!< Unspecified */
  1017. __I uint32_t RESERVED4;
  1018. __I uint32_t RXD; /*!< RXD register */
  1019. __IO uint32_t TXD; /*!< TXD register */
  1020. __I uint32_t RESERVED5;
  1021. __IO uint32_t FREQUENCY; /*!< SPI frequency. Accuracy depends on the HFCLK source selected. */
  1022. __I uint32_t RESERVED6[11];
  1023. __IO uint32_t CONFIG; /*!< Configuration register */
  1024. } NRF_SPI_Type;
  1025. /* ================================================================================ */
  1026. /* ================ TWI ================ */
  1027. /* ================================================================================ */
  1028. /**
  1029. * @brief I2C compatible Two-Wire Interface 0 (TWI)
  1030. */
  1031. typedef struct { /*!< TWI Structure */
  1032. __O uint32_t TASKS_STARTRX; /*!< Start TWI receive sequence */
  1033. __I uint32_t RESERVED0;
  1034. __O uint32_t TASKS_STARTTX; /*!< Start TWI transmit sequence */
  1035. __I uint32_t RESERVED1[2];
  1036. __O uint32_t TASKS_STOP; /*!< Stop TWI transaction */
  1037. __I uint32_t RESERVED2;
  1038. __O uint32_t TASKS_SUSPEND; /*!< Suspend TWI transaction */
  1039. __O uint32_t TASKS_RESUME; /*!< Resume TWI transaction */
  1040. __I uint32_t RESERVED3[56];
  1041. __IO uint32_t EVENTS_STOPPED; /*!< TWI stopped */
  1042. __IO uint32_t EVENTS_RXDREADY; /*!< TWI RXD byte received */
  1043. __I uint32_t RESERVED4[4];
  1044. __IO uint32_t EVENTS_TXDSENT; /*!< TWI TXD byte sent */
  1045. __I uint32_t RESERVED5;
  1046. __IO uint32_t EVENTS_ERROR; /*!< TWI error */
  1047. __I uint32_t RESERVED6[4];
  1048. __IO uint32_t EVENTS_BB; /*!< TWI byte boundary, generated before each byte that is sent or
  1049. received */
  1050. __I uint32_t RESERVED7[3];
  1051. __IO uint32_t EVENTS_SUSPENDED; /*!< TWI entered the suspended state */
  1052. __I uint32_t RESERVED8[45];
  1053. __IO uint32_t SHORTS; /*!< Shortcut register */
  1054. __I uint32_t RESERVED9[64];
  1055. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1056. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1057. __I uint32_t RESERVED10[110];
  1058. __IO uint32_t ERRORSRC; /*!< Error source */
  1059. __I uint32_t RESERVED11[14];
  1060. __IO uint32_t ENABLE; /*!< Enable TWI */
  1061. __I uint32_t RESERVED12;
  1062. TWI_PSEL_Type PSEL; /*!< Unspecified */
  1063. __I uint32_t RESERVED13[2];
  1064. __I uint32_t RXD; /*!< RXD register */
  1065. __IO uint32_t TXD; /*!< TXD register */
  1066. __I uint32_t RESERVED14;
  1067. __IO uint32_t FREQUENCY; /*!< TWI frequency. Accuracy depends on the HFCLK source selected. */
  1068. __I uint32_t RESERVED15[24];
  1069. __IO uint32_t ADDRESS; /*!< Address used in the TWI transfer */
  1070. } NRF_TWI_Type;
  1071. /* ================================================================================ */
  1072. /* ================ NFCT ================ */
  1073. /* ================================================================================ */
  1074. /**
  1075. * @brief NFC-A compatible radio (NFCT)
  1076. */
  1077. typedef struct { /*!< NFCT Structure */
  1078. __O uint32_t TASKS_ACTIVATE; /*!< Activate NFCT peripheral for incoming and outgoing frames, change
  1079. state to activated */
  1080. __O uint32_t TASKS_DISABLE; /*!< Disable NFCT peripheral */
  1081. __O uint32_t TASKS_SENSE; /*!< Enable NFC sense field mode, change state to sense mode */
  1082. __O uint32_t TASKS_STARTTX; /*!< Start transmission of an outgoing frame, change state to transmit */
  1083. __I uint32_t RESERVED0[3];
  1084. __O uint32_t TASKS_ENABLERXDATA; /*!< Initializes the EasyDMA for receive. */
  1085. __I uint32_t RESERVED1;
  1086. __O uint32_t TASKS_GOIDLE; /*!< Force state machine to IDLE state */
  1087. __O uint32_t TASKS_GOSLEEP; /*!< Force state machine to SLEEP_A state */
  1088. __I uint32_t RESERVED2[53];
  1089. __IO uint32_t EVENTS_READY; /*!< The NFCT peripheral is ready to receive and send frames */
  1090. __IO uint32_t EVENTS_FIELDDETECTED; /*!< Remote NFC field detected */
  1091. __IO uint32_t EVENTS_FIELDLOST; /*!< Remote NFC field lost */
  1092. __IO uint32_t EVENTS_TXFRAMESTART; /*!< Marks the start of the first symbol of a transmitted frame */
  1093. __IO uint32_t EVENTS_TXFRAMEEND; /*!< Marks the end of the last transmitted on-air symbol of a frame */
  1094. __IO uint32_t EVENTS_RXFRAMESTART; /*!< Marks the end of the first symbol of a received frame */
  1095. __IO uint32_t EVENTS_RXFRAMEEND; /*!< Received data has been checked (CRC, parity) and transferred
  1096. to RAM, and EasyDMA has ended accessing the RX buffer */
  1097. __IO uint32_t EVENTS_ERROR; /*!< NFC error reported. The ERRORSTATUS register contains details
  1098. on the source of the error. */
  1099. __I uint32_t RESERVED3[2];
  1100. __IO uint32_t EVENTS_RXERROR; /*!< NFC RX frame error reported. The FRAMESTATUS.RX register contains
  1101. details on the source of the error. */
  1102. __IO uint32_t EVENTS_ENDRX; /*!< RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full. */
  1103. __IO uint32_t EVENTS_ENDTX; /*!< Transmission of data in RAM has ended, and EasyDMA has ended
  1104. accessing the TX buffer */
  1105. __I uint32_t RESERVED4;
  1106. __IO uint32_t EVENTS_AUTOCOLRESSTARTED; /*!< Auto collision resolution process has started */
  1107. __I uint32_t RESERVED5[3];
  1108. __IO uint32_t EVENTS_COLLISION; /*!< NFC auto collision resolution error reported. */
  1109. __IO uint32_t EVENTS_SELECTED; /*!< NFC auto collision resolution successfully completed */
  1110. __IO uint32_t EVENTS_STARTED; /*!< EasyDMA is ready to receive or send frames. */
  1111. __I uint32_t RESERVED6[43];
  1112. __IO uint32_t SHORTS; /*!< Shortcut register */
  1113. __I uint32_t RESERVED7[63];
  1114. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  1115. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1116. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1117. __I uint32_t RESERVED8[62];
  1118. __IO uint32_t ERRORSTATUS; /*!< NFC Error Status register */
  1119. __I uint32_t RESERVED9;
  1120. NFCT_FRAMESTATUS_Type FRAMESTATUS; /*!< Unspecified */
  1121. __I uint32_t NFCTAGSTATE; /*!< NfcTag state register */
  1122. __I uint32_t RESERVED10[10];
  1123. __I uint32_t FIELDPRESENT; /*!< Indicates the presence or not of a valid field */
  1124. __I uint32_t RESERVED11[49];
  1125. __IO uint32_t FRAMEDELAYMIN; /*!< Minimum frame delay */
  1126. __IO uint32_t FRAMEDELAYMAX; /*!< Maximum frame delay */
  1127. __IO uint32_t FRAMEDELAYMODE; /*!< Configuration register for the Frame Delay Timer */
  1128. __IO uint32_t PACKETPTR; /*!< Packet pointer for TXD and RXD data storage in Data RAM */
  1129. __IO uint32_t MAXLEN; /*!< Size of the RAM buffer allocated to TXD and RXD data storage
  1130. each */
  1131. NFCT_TXD_Type TXD; /*!< Unspecified */
  1132. NFCT_RXD_Type RXD; /*!< Unspecified */
  1133. __I uint32_t RESERVED12[26];
  1134. __IO uint32_t NFCID1_LAST; /*!< Last NFCID1 part (4, 7 or 10 bytes ID) */
  1135. __IO uint32_t NFCID1_2ND_LAST; /*!< Second last NFCID1 part (7 or 10 bytes ID) */
  1136. __IO uint32_t NFCID1_3RD_LAST; /*!< Third last NFCID1 part (10 bytes ID) */
  1137. __IO uint32_t AUTOCOLRESCONFIG; /*!< Controls the auto collision resolution function. This setting
  1138. must be done before the NFCT peripheral is enabled. */
  1139. __IO uint32_t SENSRES; /*!< NFC-A SENS_RES auto-response settings */
  1140. __IO uint32_t SELRES; /*!< NFC-A SEL_RES auto-response settings */
  1141. } NRF_NFCT_Type;
  1142. /* ================================================================================ */
  1143. /* ================ GPIOTE ================ */
  1144. /* ================================================================================ */
  1145. /**
  1146. * @brief GPIO Tasks and Events (GPIOTE)
  1147. */
  1148. typedef struct { /*!< GPIOTE Structure */
  1149. __O uint32_t TASKS_OUT[8]; /*!< Description collection[0]: Task for writing to pin specified
  1150. in CONFIG[0].PSEL. Action on pin is configured in CONFIG[0].POLARITY. */
  1151. __I uint32_t RESERVED0[4];
  1152. __O uint32_t TASKS_SET[8]; /*!< Description collection[0]: Task for writing to pin specified
  1153. in CONFIG[0].PSEL. Action on pin is to set it high. */
  1154. __I uint32_t RESERVED1[4];
  1155. __O uint32_t TASKS_CLR[8]; /*!< Description collection[0]: Task for writing to pin specified
  1156. in CONFIG[0].PSEL. Action on pin is to set it low. */
  1157. __I uint32_t RESERVED2[32];
  1158. __IO uint32_t EVENTS_IN[8]; /*!< Description collection[0]: Event generated from pin specified
  1159. in CONFIG[0].PSEL */
  1160. __I uint32_t RESERVED3[23];
  1161. __IO uint32_t EVENTS_PORT; /*!< Event generated from multiple input GPIO pins with SENSE mechanism
  1162. enabled */
  1163. __I uint32_t RESERVED4[97];
  1164. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1165. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1166. __I uint32_t RESERVED5[129];
  1167. __IO uint32_t CONFIG[8]; /*!< Description collection[0]: Configuration for OUT[n], SET[n]
  1168. and CLR[n] tasks and IN[n] event */
  1169. } NRF_GPIOTE_Type;
  1170. /* ================================================================================ */
  1171. /* ================ SAADC ================ */
  1172. /* ================================================================================ */
  1173. /**
  1174. * @brief Analog to Digital Converter (SAADC)
  1175. */
  1176. typedef struct { /*!< SAADC Structure */
  1177. __O uint32_t TASKS_START; /*!< Start the ADC and prepare the result buffer in RAM */
  1178. __O uint32_t TASKS_SAMPLE; /*!< Take one ADC sample, if scan is enabled all channels are sampled */
  1179. __O uint32_t TASKS_STOP; /*!< Stop the ADC and terminate any on-going conversion */
  1180. __O uint32_t TASKS_CALIBRATEOFFSET; /*!< Starts offset auto-calibration */
  1181. __I uint32_t RESERVED0[60];
  1182. __IO uint32_t EVENTS_STARTED; /*!< The ADC has started */
  1183. __IO uint32_t EVENTS_END; /*!< The ADC has filled up the Result buffer */
  1184. __IO uint32_t EVENTS_DONE; /*!< A conversion task has been completed. Depending on the mode,
  1185. multiple conversions might be needed for a result to be transferred
  1186. to RAM. */
  1187. __IO uint32_t EVENTS_RESULTDONE; /*!< A result is ready to get transferred to RAM. */
  1188. __IO uint32_t EVENTS_CALIBRATEDONE; /*!< Calibration is complete */
  1189. __IO uint32_t EVENTS_STOPPED; /*!< The ADC has stopped */
  1190. SAADC_EVENTS_CH_Type EVENTS_CH[8]; /*!< Unspecified */
  1191. __I uint32_t RESERVED1[106];
  1192. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  1193. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1194. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1195. __I uint32_t RESERVED2[61];
  1196. __I uint32_t STATUS; /*!< Status */
  1197. __I uint32_t RESERVED3[63];
  1198. __IO uint32_t ENABLE; /*!< Enable or disable ADC */
  1199. __I uint32_t RESERVED4[3];
  1200. SAADC_CH_Type CH[8]; /*!< Unspecified */
  1201. __I uint32_t RESERVED5[24];
  1202. __IO uint32_t RESOLUTION; /*!< Resolution configuration */
  1203. __IO uint32_t OVERSAMPLE; /*!< Oversampling configuration. OVERSAMPLE should not be combined
  1204. with SCAN. The RESOLUTION is applied before averaging, thus
  1205. for high OVERSAMPLE a higher RESOLUTION should be used. */
  1206. __IO uint32_t SAMPLERATE; /*!< Controls normal or continuous sample rate */
  1207. __I uint32_t RESERVED6[12];
  1208. SAADC_RESULT_Type RESULT; /*!< RESULT EasyDMA channel */
  1209. } NRF_SAADC_Type;
  1210. /* ================================================================================ */
  1211. /* ================ TIMER ================ */
  1212. /* ================================================================================ */
  1213. /**
  1214. * @brief Timer/Counter 0 (TIMER)
  1215. */
  1216. typedef struct { /*!< TIMER Structure */
  1217. __O uint32_t TASKS_START; /*!< Start Timer */
  1218. __O uint32_t TASKS_STOP; /*!< Stop Timer */
  1219. __O uint32_t TASKS_COUNT; /*!< Increment Timer (Counter mode only) */
  1220. __O uint32_t TASKS_CLEAR; /*!< Clear time */
  1221. __O uint32_t TASKS_SHUTDOWN; /*!< Deprecated register - Shut down timer */
  1222. __I uint32_t RESERVED0[11];
  1223. __O uint32_t TASKS_CAPTURE[6]; /*!< Description collection[0]: Capture Timer value to CC[0] register */
  1224. __I uint32_t RESERVED1[58];
  1225. __IO uint32_t EVENTS_COMPARE[6]; /*!< Description collection[0]: Compare event on CC[0] match */
  1226. __I uint32_t RESERVED2[42];
  1227. __IO uint32_t SHORTS; /*!< Shortcut register */
  1228. __I uint32_t RESERVED3[64];
  1229. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1230. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1231. __I uint32_t RESERVED4[61];
  1232. __I uint32_t STATUS; /*!< Timer status */
  1233. __I uint32_t RESERVED5[64];
  1234. __IO uint32_t MODE; /*!< Timer mode selection */
  1235. __IO uint32_t BITMODE; /*!< Configure the number of bits used by the TIMER */
  1236. __I uint32_t RESERVED6;
  1237. __IO uint32_t PRESCALER; /*!< Timer prescaler register */
  1238. __I uint32_t RESERVED7[11];
  1239. __IO uint32_t CC[6]; /*!< Description collection[0]: Capture/Compare register 0 */
  1240. } NRF_TIMER_Type;
  1241. /* ================================================================================ */
  1242. /* ================ RTC ================ */
  1243. /* ================================================================================ */
  1244. /**
  1245. * @brief Real time counter 0 (RTC)
  1246. */
  1247. typedef struct { /*!< RTC Structure */
  1248. __O uint32_t TASKS_START; /*!< Start RTC COUNTER */
  1249. __O uint32_t TASKS_STOP; /*!< Stop RTC COUNTER */
  1250. __O uint32_t TASKS_CLEAR; /*!< Clear RTC COUNTER */
  1251. __O uint32_t TASKS_TRIGOVRFLW; /*!< Set COUNTER to 0xFFFFF0 */
  1252. __I uint32_t RESERVED0[60];
  1253. __IO uint32_t EVENTS_TICK; /*!< Event on COUNTER increment */
  1254. __IO uint32_t EVENTS_OVRFLW; /*!< Event on COUNTER overflow */
  1255. __I uint32_t RESERVED1[14];
  1256. __IO uint32_t EVENTS_COMPARE[4]; /*!< Description collection[0]: Compare event on CC[0] match */
  1257. __I uint32_t RESERVED2[109];
  1258. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1259. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1260. __I uint32_t RESERVED3[13];
  1261. __IO uint32_t EVTEN; /*!< Enable or disable event routing */
  1262. __IO uint32_t EVTENSET; /*!< Enable event routing */
  1263. __IO uint32_t EVTENCLR; /*!< Disable event routing */
  1264. __I uint32_t RESERVED4[110];
  1265. __I uint32_t COUNTER; /*!< Current COUNTER value */
  1266. __IO uint32_t PRESCALER; /*!< 12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must
  1267. be written when RTC is stopped */
  1268. __I uint32_t RESERVED5[13];
  1269. __IO uint32_t CC[4]; /*!< Description collection[0]: Compare register 0 */
  1270. } NRF_RTC_Type;
  1271. /* ================================================================================ */
  1272. /* ================ TEMP ================ */
  1273. /* ================================================================================ */
  1274. /**
  1275. * @brief Temperature Sensor (TEMP)
  1276. */
  1277. typedef struct { /*!< TEMP Structure */
  1278. __O uint32_t TASKS_START; /*!< Start temperature measurement */
  1279. __O uint32_t TASKS_STOP; /*!< Stop temperature measurement */
  1280. __I uint32_t RESERVED0[62];
  1281. __IO uint32_t EVENTS_DATARDY; /*!< Temperature measurement complete, data ready */
  1282. __I uint32_t RESERVED1[128];
  1283. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1284. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1285. __I uint32_t RESERVED2[127];
  1286. __I int32_t TEMP; /*!< Temperature in degC (0.25deg steps) */
  1287. __I uint32_t RESERVED3[5];
  1288. __IO uint32_t A0; /*!< Slope of 1st piece wise linear function */
  1289. __IO uint32_t A1; /*!< Slope of 2nd piece wise linear function */
  1290. __IO uint32_t A2; /*!< Slope of 3rd piece wise linear function */
  1291. __IO uint32_t A3; /*!< Slope of 4th piece wise linear function */
  1292. __IO uint32_t A4; /*!< Slope of 5th piece wise linear function */
  1293. __IO uint32_t A5; /*!< Slope of 6th piece wise linear function */
  1294. __I uint32_t RESERVED4[2];
  1295. __IO uint32_t B0; /*!< y-intercept of 1st piece wise linear function */
  1296. __IO uint32_t B1; /*!< y-intercept of 2nd piece wise linear function */
  1297. __IO uint32_t B2; /*!< y-intercept of 3rd piece wise linear function */
  1298. __IO uint32_t B3; /*!< y-intercept of 4th piece wise linear function */
  1299. __IO uint32_t B4; /*!< y-intercept of 5th piece wise linear function */
  1300. __IO uint32_t B5; /*!< y-intercept of 6th piece wise linear function */
  1301. __I uint32_t RESERVED5[2];
  1302. __IO uint32_t T0; /*!< End point of 1st piece wise linear function */
  1303. __IO uint32_t T1; /*!< End point of 2nd piece wise linear function */
  1304. __IO uint32_t T2; /*!< End point of 3rd piece wise linear function */
  1305. __IO uint32_t T3; /*!< End point of 4th piece wise linear function */
  1306. __IO uint32_t T4; /*!< End point of 5th piece wise linear function */
  1307. } NRF_TEMP_Type;
  1308. /* ================================================================================ */
  1309. /* ================ RNG ================ */
  1310. /* ================================================================================ */
  1311. /**
  1312. * @brief Random Number Generator (RNG)
  1313. */
  1314. typedef struct { /*!< RNG Structure */
  1315. __O uint32_t TASKS_START; /*!< Task starting the random number generator */
  1316. __O uint32_t TASKS_STOP; /*!< Task stopping the random number generator */
  1317. __I uint32_t RESERVED0[62];
  1318. __IO uint32_t EVENTS_VALRDY; /*!< Event being generated for every new random number written to
  1319. the VALUE register */
  1320. __I uint32_t RESERVED1[63];
  1321. __IO uint32_t SHORTS; /*!< Shortcut register */
  1322. __I uint32_t RESERVED2[64];
  1323. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1324. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1325. __I uint32_t RESERVED3[126];
  1326. __IO uint32_t CONFIG; /*!< Configuration register */
  1327. __I uint32_t VALUE; /*!< Output random number */
  1328. } NRF_RNG_Type;
  1329. /* ================================================================================ */
  1330. /* ================ ECB ================ */
  1331. /* ================================================================================ */
  1332. /**
  1333. * @brief AES ECB Mode Encryption (ECB)
  1334. */
  1335. typedef struct { /*!< ECB Structure */
  1336. __O uint32_t TASKS_STARTECB; /*!< Start ECB block encrypt */
  1337. __O uint32_t TASKS_STOPECB; /*!< Abort a possible executing ECB operation */
  1338. __I uint32_t RESERVED0[62];
  1339. __IO uint32_t EVENTS_ENDECB; /*!< ECB block encrypt complete */
  1340. __IO uint32_t EVENTS_ERRORECB; /*!< ECB block encrypt aborted because of a STOPECB task or due to
  1341. an error */
  1342. __I uint32_t RESERVED1[127];
  1343. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1344. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1345. __I uint32_t RESERVED2[126];
  1346. __IO uint32_t ECBDATAPTR; /*!< ECB block encrypt memory pointers */
  1347. } NRF_ECB_Type;
  1348. /* ================================================================================ */
  1349. /* ================ CCM ================ */
  1350. /* ================================================================================ */
  1351. /**
  1352. * @brief AES CCM Mode Encryption (CCM)
  1353. */
  1354. typedef struct { /*!< CCM Structure */
  1355. __O uint32_t TASKS_KSGEN; /*!< Start generation of key-stream. This operation will stop by
  1356. itself when completed. */
  1357. __O uint32_t TASKS_CRYPT; /*!< Start encryption/decryption. This operation will stop by itself
  1358. when completed. */
  1359. __O uint32_t TASKS_STOP; /*!< Stop encryption/decryption */
  1360. __O uint32_t TASKS_RATEOVERRIDE; /*!< Override DATARATE setting in MODE register with the contents
  1361. of the RATEOVERRIDE register for any ongoing encryption/decryption */
  1362. __I uint32_t RESERVED0[60];
  1363. __IO uint32_t EVENTS_ENDKSGEN; /*!< Key-stream generation complete */
  1364. __IO uint32_t EVENTS_ENDCRYPT; /*!< Encrypt/decrypt complete */
  1365. __IO uint32_t EVENTS_ERROR; /*!< Deprecated register - CCM error event */
  1366. __I uint32_t RESERVED1[61];
  1367. __IO uint32_t SHORTS; /*!< Shortcut register */
  1368. __I uint32_t RESERVED2[64];
  1369. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1370. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1371. __I uint32_t RESERVED3[61];
  1372. __I uint32_t MICSTATUS; /*!< MIC check result */
  1373. __I uint32_t RESERVED4[63];
  1374. __IO uint32_t ENABLE; /*!< Enable */
  1375. __IO uint32_t MODE; /*!< Operation mode */
  1376. __IO uint32_t CNFPTR; /*!< Pointer to data structure holding AES key and NONCE vector */
  1377. __IO uint32_t INPTR; /*!< Input pointer */
  1378. __IO uint32_t OUTPTR; /*!< Output pointer */
  1379. __IO uint32_t SCRATCHPTR; /*!< Pointer to data area used for temporary storage */
  1380. __IO uint32_t MAXPACKETSIZE; /*!< Length of key-stream generated when MODE.LENGTH = Extended. */
  1381. __IO uint32_t RATEOVERRIDE; /*!< Data rate override setting. */
  1382. } NRF_CCM_Type;
  1383. /* ================================================================================ */
  1384. /* ================ AAR ================ */
  1385. /* ================================================================================ */
  1386. /**
  1387. * @brief Accelerated Address Resolver (AAR)
  1388. */
  1389. typedef struct { /*!< AAR Structure */
  1390. __O uint32_t TASKS_START; /*!< Start resolving addresses based on IRKs specified in the IRK
  1391. data structure */
  1392. __I uint32_t RESERVED0;
  1393. __O uint32_t TASKS_STOP; /*!< Stop resolving addresses */
  1394. __I uint32_t RESERVED1[61];
  1395. __IO uint32_t EVENTS_END; /*!< Address resolution procedure complete */
  1396. __IO uint32_t EVENTS_RESOLVED; /*!< Address resolved */
  1397. __IO uint32_t EVENTS_NOTRESOLVED; /*!< Address not resolved */
  1398. __I uint32_t RESERVED2[126];
  1399. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1400. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1401. __I uint32_t RESERVED3[61];
  1402. __I uint32_t STATUS; /*!< Resolution status */
  1403. __I uint32_t RESERVED4[63];
  1404. __IO uint32_t ENABLE; /*!< Enable AAR */
  1405. __IO uint32_t NIRK; /*!< Number of IRKs */
  1406. __IO uint32_t IRKPTR; /*!< Pointer to IRK data structure */
  1407. __I uint32_t RESERVED5;
  1408. __IO uint32_t ADDRPTR; /*!< Pointer to the resolvable address */
  1409. __IO uint32_t SCRATCHPTR; /*!< Pointer to data area used for temporary storage */
  1410. } NRF_AAR_Type;
  1411. /* ================================================================================ */
  1412. /* ================ WDT ================ */
  1413. /* ================================================================================ */
  1414. /**
  1415. * @brief Watchdog Timer (WDT)
  1416. */
  1417. typedef struct { /*!< WDT Structure */
  1418. __O uint32_t TASKS_START; /*!< Start the watchdog */
  1419. __I uint32_t RESERVED0[63];
  1420. __IO uint32_t EVENTS_TIMEOUT; /*!< Watchdog timeout */
  1421. __I uint32_t RESERVED1[128];
  1422. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1423. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1424. __I uint32_t RESERVED2[61];
  1425. __I uint32_t RUNSTATUS; /*!< Run status */
  1426. __I uint32_t REQSTATUS; /*!< Request status */
  1427. __I uint32_t RESERVED3[63];
  1428. __IO uint32_t CRV; /*!< Counter reload value */
  1429. __IO uint32_t RREN; /*!< Enable register for reload request registers */
  1430. __IO uint32_t CONFIG; /*!< Configuration register */
  1431. __I uint32_t RESERVED4[60];
  1432. __O uint32_t RR[8]; /*!< Description collection[0]: Reload request 0 */
  1433. } NRF_WDT_Type;
  1434. /* ================================================================================ */
  1435. /* ================ QDEC ================ */
  1436. /* ================================================================================ */
  1437. /**
  1438. * @brief Quadrature Decoder (QDEC)
  1439. */
  1440. typedef struct { /*!< QDEC Structure */
  1441. __O uint32_t TASKS_START; /*!< Task starting the quadrature decoder */
  1442. __O uint32_t TASKS_STOP; /*!< Task stopping the quadrature decoder */
  1443. __O uint32_t TASKS_READCLRACC; /*!< Read and clear ACC and ACCDBL */
  1444. __O uint32_t TASKS_RDCLRACC; /*!< Read and clear ACC */
  1445. __O uint32_t TASKS_RDCLRDBL; /*!< Read and clear ACCDBL */
  1446. __I uint32_t RESERVED0[59];
  1447. __IO uint32_t EVENTS_SAMPLERDY; /*!< Event being generated for every new sample value written to
  1448. the SAMPLE register */
  1449. __IO uint32_t EVENTS_REPORTRDY; /*!< Non-null report ready */
  1450. __IO uint32_t EVENTS_ACCOF; /*!< ACC or ACCDBL register overflow */
  1451. __IO uint32_t EVENTS_DBLRDY; /*!< Double displacement(s) detected */
  1452. __IO uint32_t EVENTS_STOPPED; /*!< QDEC has been stopped */
  1453. __I uint32_t RESERVED1[59];
  1454. __IO uint32_t SHORTS; /*!< Shortcut register */
  1455. __I uint32_t RESERVED2[64];
  1456. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1457. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1458. __I uint32_t RESERVED3[125];
  1459. __IO uint32_t ENABLE; /*!< Enable the quadrature decoder */
  1460. __IO uint32_t LEDPOL; /*!< LED output pin polarity */
  1461. __IO uint32_t SAMPLEPER; /*!< Sample period */
  1462. __I int32_t SAMPLE; /*!< Motion sample value */
  1463. __IO uint32_t REPORTPER; /*!< Number of samples to be taken before REPORTRDY and DBLRDY events
  1464. can be generated */
  1465. __I int32_t ACC; /*!< Register accumulating the valid transitions */
  1466. __I int32_t ACCREAD; /*!< Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC
  1467. task */
  1468. QDEC_PSEL_Type PSEL; /*!< Unspecified */
  1469. __IO uint32_t DBFEN; /*!< Enable input debounce filters */
  1470. __I uint32_t RESERVED4[5];
  1471. __IO uint32_t LEDPRE; /*!< Time period the LED is switched ON prior to sampling */
  1472. __I uint32_t ACCDBL; /*!< Register accumulating the number of detected double transitions */
  1473. __I uint32_t ACCDBLREAD; /*!< Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL
  1474. task */
  1475. } NRF_QDEC_Type;
  1476. /* ================================================================================ */
  1477. /* ================ COMP ================ */
  1478. /* ================================================================================ */
  1479. /**
  1480. * @brief Comparator (COMP)
  1481. */
  1482. typedef struct { /*!< COMP Structure */
  1483. __O uint32_t TASKS_START; /*!< Start comparator */
  1484. __O uint32_t TASKS_STOP; /*!< Stop comparator */
  1485. __O uint32_t TASKS_SAMPLE; /*!< Sample comparator value */
  1486. __I uint32_t RESERVED0[61];
  1487. __IO uint32_t EVENTS_READY; /*!< COMP is ready and output is valid */
  1488. __IO uint32_t EVENTS_DOWN; /*!< Downward crossing */
  1489. __IO uint32_t EVENTS_UP; /*!< Upward crossing */
  1490. __IO uint32_t EVENTS_CROSS; /*!< Downward or upward crossing */
  1491. __I uint32_t RESERVED1[60];
  1492. __IO uint32_t SHORTS; /*!< Shortcut register */
  1493. __I uint32_t RESERVED2[63];
  1494. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  1495. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1496. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1497. __I uint32_t RESERVED3[61];
  1498. __I uint32_t RESULT; /*!< Compare result */
  1499. __I uint32_t RESERVED4[63];
  1500. __IO uint32_t ENABLE; /*!< COMP enable */
  1501. __IO uint32_t PSEL; /*!< Pin select */
  1502. __IO uint32_t REFSEL; /*!< Reference source select */
  1503. __IO uint32_t EXTREFSEL; /*!< External reference select */
  1504. __I uint32_t RESERVED5[8];
  1505. __IO uint32_t TH; /*!< Threshold configuration for hysteresis unit */
  1506. __IO uint32_t MODE; /*!< Mode configuration */
  1507. __IO uint32_t HYST; /*!< Comparator hysteresis enable */
  1508. __IO uint32_t ISOURCE; /*!< Current source select on analog input */
  1509. } NRF_COMP_Type;
  1510. /* ================================================================================ */
  1511. /* ================ LPCOMP ================ */
  1512. /* ================================================================================ */
  1513. /**
  1514. * @brief Low Power Comparator (LPCOMP)
  1515. */
  1516. typedef struct { /*!< LPCOMP Structure */
  1517. __O uint32_t TASKS_START; /*!< Start comparator */
  1518. __O uint32_t TASKS_STOP; /*!< Stop comparator */
  1519. __O uint32_t TASKS_SAMPLE; /*!< Sample comparator value */
  1520. __I uint32_t RESERVED0[61];
  1521. __IO uint32_t EVENTS_READY; /*!< LPCOMP is ready and output is valid */
  1522. __IO uint32_t EVENTS_DOWN; /*!< Downward crossing */
  1523. __IO uint32_t EVENTS_UP; /*!< Upward crossing */
  1524. __IO uint32_t EVENTS_CROSS; /*!< Downward or upward crossing */
  1525. __I uint32_t RESERVED1[60];
  1526. __IO uint32_t SHORTS; /*!< Shortcut register */
  1527. __I uint32_t RESERVED2[64];
  1528. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1529. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1530. __I uint32_t RESERVED3[61];
  1531. __I uint32_t RESULT; /*!< Compare result */
  1532. __I uint32_t RESERVED4[63];
  1533. __IO uint32_t ENABLE; /*!< Enable LPCOMP */
  1534. __IO uint32_t PSEL; /*!< Input pin select */
  1535. __IO uint32_t REFSEL; /*!< Reference select */
  1536. __IO uint32_t EXTREFSEL; /*!< External reference select */
  1537. __I uint32_t RESERVED5[4];
  1538. __IO uint32_t ANADETECT; /*!< Analog detect configuration */
  1539. __I uint32_t RESERVED6[5];
  1540. __IO uint32_t HYST; /*!< Comparator hysteresis enable */
  1541. } NRF_LPCOMP_Type;
  1542. /* ================================================================================ */
  1543. /* ================ SWI ================ */
  1544. /* ================================================================================ */
  1545. /**
  1546. * @brief Software interrupt 0 (SWI)
  1547. */
  1548. typedef struct { /*!< SWI Structure */
  1549. __I uint32_t UNUSED; /*!< Unused. */
  1550. } NRF_SWI_Type;
  1551. /* ================================================================================ */
  1552. /* ================ EGU ================ */
  1553. /* ================================================================================ */
  1554. /**
  1555. * @brief Event Generator Unit 0 (EGU)
  1556. */
  1557. typedef struct { /*!< EGU Structure */
  1558. __O uint32_t TASKS_TRIGGER[16]; /*!< Description collection[0]: Trigger 0 for triggering the corresponding
  1559. TRIGGERED[0] event */
  1560. __I uint32_t RESERVED0[48];
  1561. __IO uint32_t EVENTS_TRIGGERED[16]; /*!< Description collection[0]: Event number 0 generated by triggering
  1562. the corresponding TRIGGER[0] task */
  1563. __I uint32_t RESERVED1[112];
  1564. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  1565. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1566. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1567. } NRF_EGU_Type;
  1568. /* ================================================================================ */
  1569. /* ================ PWM ================ */
  1570. /* ================================================================================ */
  1571. /**
  1572. * @brief Pulse Width Modulation Unit 0 (PWM)
  1573. */
  1574. typedef struct { /*!< PWM Structure */
  1575. __I uint32_t RESERVED0;
  1576. __O uint32_t TASKS_STOP; /*!< Stops PWM pulse generation on all channels at the end of current
  1577. PWM period, and stops sequence playback */
  1578. __O uint32_t TASKS_SEQSTART[2]; /*!< Description collection[0]: Loads the first PWM value on all
  1579. enabled channels from sequence 0, and starts playing that sequence
  1580. at the rate defined in SEQ[0]REFRESH and/or DECODER.MODE. Causes
  1581. PWM generation to start it was not running. */
  1582. __O uint32_t TASKS_NEXTSTEP; /*!< Steps by one value in the current sequence on all enabled channels
  1583. if DECODER.MODE=NextStep. Does not cause PWM generation to start
  1584. it was not running. */
  1585. __I uint32_t RESERVED1[60];
  1586. __IO uint32_t EVENTS_STOPPED; /*!< Response to STOP task, emitted when PWM pulses are no longer
  1587. generated */
  1588. __IO uint32_t EVENTS_SEQSTARTED[2]; /*!< Description collection[0]: First PWM period started on sequence
  1589. 0 */
  1590. __IO uint32_t EVENTS_SEQEND[2]; /*!< Description collection[0]: Emitted at end of every sequence
  1591. 0, when last value from RAM has been applied to wave counter */
  1592. __IO uint32_t EVENTS_PWMPERIODEND; /*!< Emitted at the end of each PWM period */
  1593. __IO uint32_t EVENTS_LOOPSDONE; /*!< Concatenated sequences have been played the amount of times
  1594. defined in LOOP.CNT */
  1595. __I uint32_t RESERVED2[56];
  1596. __IO uint32_t SHORTS; /*!< Shortcut register */
  1597. __I uint32_t RESERVED3[63];
  1598. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  1599. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1600. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1601. __I uint32_t RESERVED4[125];
  1602. __IO uint32_t ENABLE; /*!< PWM module enable register */
  1603. __IO uint32_t MODE; /*!< Selects operating mode of the wave counter */
  1604. __IO uint32_t COUNTERTOP; /*!< Value up to which the pulse generator counter counts */
  1605. __IO uint32_t PRESCALER; /*!< Configuration for PWM_CLK */
  1606. __IO uint32_t DECODER; /*!< Configuration of the decoder */
  1607. __IO uint32_t LOOP; /*!< Amount of playback of a loop */
  1608. __I uint32_t RESERVED5[2];
  1609. PWM_SEQ_Type SEQ[2]; /*!< Unspecified */
  1610. PWM_PSEL_Type PSEL; /*!< Unspecified */
  1611. } NRF_PWM_Type;
  1612. /* ================================================================================ */
  1613. /* ================ PDM ================ */
  1614. /* ================================================================================ */
  1615. /**
  1616. * @brief Pulse Density Modulation (Digital Microphone) Interface (PDM)
  1617. */
  1618. typedef struct { /*!< PDM Structure */
  1619. __O uint32_t TASKS_START; /*!< Starts continuous PDM transfer */
  1620. __O uint32_t TASKS_STOP; /*!< Stops PDM transfer */
  1621. __I uint32_t RESERVED0[62];
  1622. __IO uint32_t EVENTS_STARTED; /*!< PDM transfer has started */
  1623. __IO uint32_t EVENTS_STOPPED; /*!< PDM transfer has finished */
  1624. __IO uint32_t EVENTS_END; /*!< The PDM has written the last sample specified by SAMPLE.MAXCNT
  1625. (or the last sample after a STOP task has been received) to
  1626. Data RAM */
  1627. __I uint32_t RESERVED1[125];
  1628. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  1629. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1630. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1631. __I uint32_t RESERVED2[125];
  1632. __IO uint32_t ENABLE; /*!< PDM module enable register */
  1633. __IO uint32_t PDMCLKCTRL; /*!< PDM clock generator control */
  1634. __IO uint32_t MODE; /*!< Defines the routing of the connected PDM microphones' signals */
  1635. __I uint32_t RESERVED3[3];
  1636. __IO uint32_t GAINL; /*!< Left output gain adjustment */
  1637. __IO uint32_t GAINR; /*!< Right output gain adjustment */
  1638. __IO uint32_t RATIO; /*!< Selects the ratio between PDM_CLK and output sample rate. Change
  1639. PDMCLKCTRL accordingly. */
  1640. __I uint32_t RESERVED4[7];
  1641. PDM_PSEL_Type PSEL; /*!< Unspecified */
  1642. __I uint32_t RESERVED5[6];
  1643. PDM_SAMPLE_Type SAMPLE; /*!< Unspecified */
  1644. } NRF_PDM_Type;
  1645. /* ================================================================================ */
  1646. /* ================ NVMC ================ */
  1647. /* ================================================================================ */
  1648. /**
  1649. * @brief Non Volatile Memory Controller (NVMC)
  1650. */
  1651. typedef struct { /*!< NVMC Structure */
  1652. __I uint32_t RESERVED0[256];
  1653. __I uint32_t READY; /*!< Ready flag */
  1654. __I uint32_t RESERVED1[64];
  1655. __IO uint32_t CONFIG; /*!< Configuration register */
  1656. union {
  1657. __IO uint32_t ERASEPCR1; /*!< Deprecated register - Register for erasing a page in code area.
  1658. Equivalent to ERASEPAGE. */
  1659. __IO uint32_t ERASEPAGE; /*!< Register for erasing a page in code area */
  1660. };
  1661. __IO uint32_t ERASEALL; /*!< Register for erasing all non-volatile user memory */
  1662. __IO uint32_t ERASEPCR0; /*!< Deprecated register - Register for erasing a page in code area.
  1663. Equivalent to ERASEPAGE. */
  1664. __IO uint32_t ERASEUICR; /*!< Register for erasing user information configuration registers */
  1665. __I uint32_t RESERVED2[10];
  1666. __IO uint32_t ICACHECNF; /*!< I-code cache configuration register. */
  1667. __I uint32_t RESERVED3;
  1668. __IO uint32_t IHIT; /*!< I-code cache hit counter. */
  1669. __IO uint32_t IMISS; /*!< I-code cache miss counter. */
  1670. } NRF_NVMC_Type;
  1671. /* ================================================================================ */
  1672. /* ================ ACL ================ */
  1673. /* ================================================================================ */
  1674. /**
  1675. * @brief Access control lists (ACL)
  1676. */
  1677. typedef struct { /*!< ACL Structure */
  1678. __I uint32_t RESERVED0[449];
  1679. __IO uint32_t DISABLEINDEBUG; /*!< Disable all ACL protection mechanisms for regions while in debug
  1680. mode */
  1681. __I uint32_t RESERVED1[62];
  1682. ACL_ACL_Type ACL[8]; /*!< Unspecified */
  1683. } NRF_ACL_Type;
  1684. /* ================================================================================ */
  1685. /* ================ PPI ================ */
  1686. /* ================================================================================ */
  1687. /**
  1688. * @brief Programmable Peripheral Interconnect (PPI)
  1689. */
  1690. typedef struct { /*!< PPI Structure */
  1691. PPI_TASKS_CHG_Type TASKS_CHG[6]; /*!< Channel group tasks */
  1692. __I uint32_t RESERVED0[308];
  1693. __IO uint32_t CHEN; /*!< Channel enable register */
  1694. __IO uint32_t CHENSET; /*!< Channel enable set register */
  1695. __IO uint32_t CHENCLR; /*!< Channel enable clear register */
  1696. __I uint32_t RESERVED1;
  1697. PPI_CH_Type CH[20]; /*!< PPI Channel */
  1698. __I uint32_t RESERVED2[148];
  1699. __IO uint32_t CHG[6]; /*!< Description collection[0]: Channel group 0 */
  1700. __I uint32_t RESERVED3[62];
  1701. PPI_FORK_Type FORK[32]; /*!< Fork */
  1702. } NRF_PPI_Type;
  1703. /* ================================================================================ */
  1704. /* ================ MWU ================ */
  1705. /* ================================================================================ */
  1706. /**
  1707. * @brief Memory Watch Unit (MWU)
  1708. */
  1709. typedef struct { /*!< MWU Structure */
  1710. __I uint32_t RESERVED0[64];
  1711. MWU_EVENTS_REGION_Type EVENTS_REGION[4]; /*!< Unspecified */
  1712. __I uint32_t RESERVED1[16];
  1713. MWU_EVENTS_PREGION_Type EVENTS_PREGION[2]; /*!< Unspecified */
  1714. __I uint32_t RESERVED2[100];
  1715. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  1716. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1717. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1718. __I uint32_t RESERVED3[5];
  1719. __IO uint32_t NMIEN; /*!< Enable or disable non-maskable interrupt */
  1720. __IO uint32_t NMIENSET; /*!< Enable non-maskable interrupt */
  1721. __IO uint32_t NMIENCLR; /*!< Disable non-maskable interrupt */
  1722. __I uint32_t RESERVED4[53];
  1723. MWU_PERREGION_Type PERREGION[2]; /*!< Unspecified */
  1724. __I uint32_t RESERVED5[64];
  1725. __IO uint32_t REGIONEN; /*!< Enable/disable regions watch */
  1726. __IO uint32_t REGIONENSET; /*!< Enable regions watch */
  1727. __IO uint32_t REGIONENCLR; /*!< Disable regions watch */
  1728. __I uint32_t RESERVED6[57];
  1729. MWU_REGION_Type REGION[4]; /*!< Unspecified */
  1730. __I uint32_t RESERVED7[32];
  1731. MWU_PREGION_Type PREGION[2]; /*!< Unspecified */
  1732. } NRF_MWU_Type;
  1733. /* ================================================================================ */
  1734. /* ================ I2S ================ */
  1735. /* ================================================================================ */
  1736. /**
  1737. * @brief Inter-IC Sound (I2S)
  1738. */
  1739. typedef struct { /*!< I2S Structure */
  1740. __O uint32_t TASKS_START; /*!< Starts continuous I2S transfer. Also starts MCK generator when
  1741. this is enabled. */
  1742. __O uint32_t TASKS_STOP; /*!< Stops I2S transfer. Also stops MCK generator. Triggering this
  1743. task will cause the {event:STOPPED} event to be generated. */
  1744. __I uint32_t RESERVED0[63];
  1745. __IO uint32_t EVENTS_RXPTRUPD; /*!< The RXD.PTR register has been copied to internal double-buffers.
  1746. When the I2S module is started and RX is enabled, this event
  1747. will be generated for every RXTXD.MAXCNT words that are received
  1748. on the SDIN pin. */
  1749. __IO uint32_t EVENTS_STOPPED; /*!< I2S transfer stopped. */
  1750. __I uint32_t RESERVED1[2];
  1751. __IO uint32_t EVENTS_TXPTRUPD; /*!< The TDX.PTR register has been copied to internal double-buffers.
  1752. When the I2S module is started and TX is enabled, this event
  1753. will be generated for every RXTXD.MAXCNT words that are sent
  1754. on the SDOUT pin. */
  1755. __I uint32_t RESERVED2[122];
  1756. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  1757. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1758. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1759. __I uint32_t RESERVED3[125];
  1760. __IO uint32_t ENABLE; /*!< Enable I2S module. */
  1761. I2S_CONFIG_Type CONFIG; /*!< Unspecified */
  1762. __I uint32_t RESERVED4[3];
  1763. I2S_RXD_Type RXD; /*!< Unspecified */
  1764. __I uint32_t RESERVED5;
  1765. I2S_TXD_Type TXD; /*!< Unspecified */
  1766. __I uint32_t RESERVED6[3];
  1767. I2S_RXTXD_Type RXTXD; /*!< Unspecified */
  1768. __I uint32_t RESERVED7[3];
  1769. I2S_PSEL_Type PSEL; /*!< Unspecified */
  1770. } NRF_I2S_Type;
  1771. /* ================================================================================ */
  1772. /* ================ FPU ================ */
  1773. /* ================================================================================ */
  1774. /**
  1775. * @brief FPU (FPU)
  1776. */
  1777. typedef struct { /*!< FPU Structure */
  1778. __I uint32_t UNUSED; /*!< Unused. */
  1779. } NRF_FPU_Type;
  1780. /* ================================================================================ */
  1781. /* ================ USBD ================ */
  1782. /* ================================================================================ */
  1783. /**
  1784. * @brief Universal Serial Bus device (USBD)
  1785. */
  1786. typedef struct { /*!< USBD Structure */
  1787. __I uint32_t RESERVED0;
  1788. __O uint32_t TASKS_STARTEPIN[8]; /*!< Description collection[0]: Captures the EPIN[0].PTR, EPIN[0].MAXCNT
  1789. and EPIN[0].CONFIG registers values, and enables endpoint IN
  1790. 0 to respond to traffic from host */
  1791. __O uint32_t TASKS_STARTISOIN; /*!< Captures the ISOIN.PTR, ISOIN.MAXCNT and ISOIN.CONFIG registers
  1792. values, and enables sending data on iso endpoint */
  1793. __O uint32_t TASKS_STARTEPOUT[8]; /*!< Description collection[0]: Captures the EPOUT[0].PTR, EPOUT[0].MAXCNT
  1794. and EPOUT[0].CONFIG registers values, and enables endpoint 0
  1795. to respond to traffic from host */
  1796. __O uint32_t TASKS_STARTISOOUT; /*!< Captures the ISOOUT.PTR, ISOOUT.MAXCNT and ISOOUT.CONFIG registers
  1797. values, and enables receiving of data on iso endpoint */
  1798. __O uint32_t TASKS_EP0RCVOUT; /*!< Allows OUT data stage on control endpoint 0 */
  1799. __O uint32_t TASKS_EP0STATUS; /*!< Allows status stage on control endpoint 0 */
  1800. __O uint32_t TASKS_EP0STALL; /*!< STALLs data and status stage on control endpoint 0 */
  1801. __O uint32_t TASKS_DPDMDRIVE; /*!< Forces D+ and D-lines to the state defined in the DPDMVALUE
  1802. register */
  1803. __O uint32_t TASKS_DPDMNODRIVE; /*!< Stops forcing D+ and D- lines to any state (USB engine takes
  1804. control) */
  1805. __I uint32_t RESERVED1[40];
  1806. __IO uint32_t EVENTS_USBRESET; /*!< Signals that a USB reset condition has been detected on the
  1807. USB lines */
  1808. __IO uint32_t EVENTS_STARTED; /*!< Confirms that the EPIN[n].PTR, EPIN[n].MAXCNT, EPIN[n].CONFIG,
  1809. or EPOUT[n].PTR, EPOUT[n].MAXCNT and EPOUT[n].CONFIG registers
  1810. have been captured on all endpoints reported in the EPSTATUS
  1811. register */
  1812. __IO uint32_t EVENTS_ENDEPIN[8]; /*!< Description collection[0]: The whole EPIN[0] buffer has been
  1813. consumed. The RAM buffer can be accessed safely by software. */
  1814. __IO uint32_t EVENTS_EP0DATADONE; /*!< An acknowledged data transfer has taken place on the control
  1815. endpoint */
  1816. __IO uint32_t EVENTS_ENDISOIN; /*!< The whole ISOIN buffer has been consumed. The RAM buffer can
  1817. be accessed safely by software. */
  1818. __IO uint32_t EVENTS_ENDEPOUT[8]; /*!< Description collection[0]: The whole EPOUT[0] buffer has been
  1819. consumed. The RAM buffer can be accessed safely by software. */
  1820. __IO uint32_t EVENTS_ENDISOOUT; /*!< The whole ISOOUT buffer has been consumed. The RAM buffer can
  1821. be accessed safely by software. */
  1822. __IO uint32_t EVENTS_SOF; /*!< Signals that a SOF (start of frame) condition has been detected
  1823. on the USB lines */
  1824. __IO uint32_t EVENTS_USBEVENT; /*!< An event or an error not covered by specific events has occurred,
  1825. check EVENTCAUSE register to find the cause */
  1826. __IO uint32_t EVENTS_EP0SETUP; /*!< A valid SETUP token has been received (and acknowledged) on
  1827. the control endpoint */
  1828. __IO uint32_t EVENTS_EPDATA; /*!< A data transfer has occurred on a data endpoint, indicated by
  1829. the EPDATASTATUS register */
  1830. __IO uint32_t EVENTS_ACCESSFAULT; /*!< Access to an unavailable USB register has been attempted (software
  1831. or EasyDMA). This event can get fired even when USBD is not
  1832. ENABLEd. */
  1833. __I uint32_t RESERVED2[38];
  1834. __IO uint32_t SHORTS; /*!< Shortcut register */
  1835. __I uint32_t RESERVED3[63];
  1836. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  1837. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1838. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1839. __I uint32_t RESERVED4[61];
  1840. __IO uint32_t EVENTCAUSE; /*!< Details on event that caused the USBEVENT event */
  1841. __I uint32_t BUSSTATE; /*!< Provides the logic state of the D+ and D- lines */
  1842. __I uint32_t RESERVED5[6];
  1843. USBD_HALTED_Type HALTED; /*!< Unspecified */
  1844. __I uint32_t RESERVED6;
  1845. __IO uint32_t EPSTATUS; /*!< Provides information on which endpoint's EasyDMA registers have
  1846. been captured */
  1847. __IO uint32_t EPDATASTATUS; /*!< Provides information on which endpoint(s) an acknowledged data
  1848. transfer has occurred (EPDATA event) */
  1849. __I uint32_t USBADDR; /*!< Device USB address */
  1850. __I uint32_t RESERVED7[3];
  1851. __I uint32_t BMREQUESTTYPE; /*!< SETUP data, byte 0, bmRequestType */
  1852. __I uint32_t BREQUEST; /*!< SETUP data, byte 1, bRequest */
  1853. __I uint32_t WVALUEL; /*!< SETUP data, byte 2, LSB of wValue */
  1854. __I uint32_t WVALUEH; /*!< SETUP data, byte 3, MSB of wValue */
  1855. __I uint32_t WINDEXL; /*!< SETUP data, byte 4, LSB of wIndex */
  1856. __I uint32_t WINDEXH; /*!< SETUP data, byte 5, MSB of wIndex */
  1857. __I uint32_t WLENGTHL; /*!< SETUP data, byte 6, LSB of wLength */
  1858. __I uint32_t WLENGTHH; /*!< SETUP data, byte 7, MSB of wLength */
  1859. USBD_SIZE_Type SIZE; /*!< Unspecified */
  1860. __I uint32_t RESERVED8[15];
  1861. __IO uint32_t ENABLE; /*!< Enable USB */
  1862. __IO uint32_t USBPULLUP; /*!< Control of the USB pull-up */
  1863. __IO uint32_t DPDMVALUE; /*!< State at which the DPDMDRIVE task will force D+ and D-. The
  1864. DPDMNODRIVE task reverts the control of the lines to MAC IP
  1865. (no forcing). */
  1866. __IO uint32_t DTOGGLE; /*!< Data toggle control and status. */
  1867. __IO uint32_t EPINEN; /*!< Endpoint IN enable */
  1868. __IO uint32_t EPOUTEN; /*!< Endpoint OUT enable */
  1869. __O uint32_t EPSTALL; /*!< STALL endpoints */
  1870. __IO uint32_t ISOSPLIT; /*!< Controls the split of ISO buffers */
  1871. __I uint32_t FRAMECNTR; /*!< Returns the current value of the start of frame counter */
  1872. __I uint32_t RESERVED9[3];
  1873. __IO uint32_t ISOINCONFIG; /*!< Controls the response of the ISO IN endpoint to an IN token
  1874. when no data is ready to be sent */
  1875. __I uint32_t RESERVED10[51];
  1876. USBD_EPIN_Type EPIN[8]; /*!< Unspecified */
  1877. USBD_ISOIN_Type ISOIN; /*!< Unspecified */
  1878. __I uint32_t RESERVED11[21];
  1879. USBD_EPOUT_Type EPOUT[8]; /*!< Unspecified */
  1880. USBD_ISOOUT_Type ISOOUT; /*!< Unspecified */
  1881. } NRF_USBD_Type;
  1882. /* ================================================================================ */
  1883. /* ================ QSPI ================ */
  1884. /* ================================================================================ */
  1885. /**
  1886. * @brief External flash interface (QSPI)
  1887. */
  1888. typedef struct { /*!< QSPI Structure */
  1889. __O uint32_t TASKS_ACTIVATE; /*!< Activate QSPI interface */
  1890. __O uint32_t TASKS_READSTART; /*!< Start transfer from external flash memory to internal RAM */
  1891. __O uint32_t TASKS_WRITESTART; /*!< Start transfer from internal RAM to external flash memory */
  1892. __O uint32_t TASKS_ERASESTART; /*!< Start external flash memory erase operation */
  1893. __I uint32_t RESERVED0[60];
  1894. __IO uint32_t EVENTS_READY; /*!< QSPI peripheral is ready. This event will be generated as a
  1895. response to any QSPI task. */
  1896. __I uint32_t RESERVED1[127];
  1897. __IO uint32_t INTEN; /*!< Enable or disable interrupt */
  1898. __IO uint32_t INTENSET; /*!< Enable interrupt */
  1899. __IO uint32_t INTENCLR; /*!< Disable interrupt */
  1900. __I uint32_t RESERVED2[125];
  1901. __IO uint32_t ENABLE; /*!< Enable QSPI peripheral and acquire the pins selected in PSELn
  1902. registers */
  1903. QSPI_READ_Type READ; /*!< Unspecified */
  1904. QSPI_WRITE_Type WRITE; /*!< Unspecified */
  1905. QSPI_ERASE_Type ERASE; /*!< Unspecified */
  1906. QSPI_PSEL_Type PSEL; /*!< Unspecified */
  1907. __IO uint32_t XIPOFFSET; /*!< Address offset into the external memory for Execute in Place
  1908. operation. */
  1909. __IO uint32_t IFCONFIG0; /*!< Interface configuration. */
  1910. __I uint32_t RESERVED3[46];
  1911. __IO uint32_t IFCONFIG1; /*!< Interface configuration. */
  1912. __I uint32_t STATUS; /*!< Status register. */
  1913. __I uint32_t RESERVED4[3];
  1914. __IO uint32_t DPMDUR; /*!< Set the duration required to enter/exit deep power-down mode
  1915. (DPM). */
  1916. __I uint32_t RESERVED5[3];
  1917. __IO uint32_t ADDRCONF; /*!< Extended address configuration. */
  1918. __I uint32_t RESERVED6[3];
  1919. __IO uint32_t CINSTRCONF; /*!< Custom instruction configuration register. */
  1920. __IO uint32_t CINSTRDAT0; /*!< Custom instruction data register 0. */
  1921. __IO uint32_t CINSTRDAT1; /*!< Custom instruction data register 1. */
  1922. __IO uint32_t IFTIMING; /*!< SPI interface timing. */
  1923. } NRF_QSPI_Type;
  1924. /* ================================================================================ */
  1925. /* ================ GPIO ================ */
  1926. /* ================================================================================ */
  1927. /**
  1928. * @brief GPIO Port 1 (GPIO)
  1929. */
  1930. typedef struct { /*!< GPIO Structure */
  1931. __I uint32_t RESERVED0[321];
  1932. __IO uint32_t OUT; /*!< Write GPIO port */
  1933. __IO uint32_t OUTSET; /*!< Set individual bits in GPIO port */
  1934. __IO uint32_t OUTCLR; /*!< Clear individual bits in GPIO port */
  1935. __I uint32_t IN; /*!< Read GPIO port */
  1936. __IO uint32_t DIR; /*!< Direction of GPIO pins */
  1937. __IO uint32_t DIRSET; /*!< DIR set register */
  1938. __IO uint32_t DIRCLR; /*!< DIR clear register */
  1939. __IO uint32_t LATCH; /*!< Latch register indicating what GPIO pins that have met the criteria
  1940. set in the PIN_CNF[n].SENSE registers */
  1941. __IO uint32_t DETECTMODE; /*!< Select between default DETECT signal behaviour and LDETECT mode */
  1942. __I uint32_t RESERVED1[118];
  1943. __IO uint32_t PIN_CNF[32]; /*!< Description collection[0]: Configuration of GPIO pins */
  1944. } NRF_GPIO_Type;
  1945. /* ================================================================================ */
  1946. /* ================ CRYPTOCELL ================ */
  1947. /* ================================================================================ */
  1948. /**
  1949. * @brief ARM CryptoCell register interface (CRYPTOCELL)
  1950. */
  1951. typedef struct { /*!< CRYPTOCELL Structure */
  1952. __I uint32_t RESERVED0[320];
  1953. __IO uint32_t ENABLE; /*!< Control power and clock for ARM CryptoCell subsystem */
  1954. } NRF_CRYPTOCELL_Type;
  1955. /* -------------------- End of section using anonymous unions ------------------- */
  1956. #if defined(__CC_ARM)
  1957. #pragma pop
  1958. #elif defined(__ICCARM__)
  1959. /* leave anonymous unions enabled */
  1960. #elif defined(__GNUC__)
  1961. /* anonymous unions are enabled by default */
  1962. #elif defined(__TMS470__)
  1963. /* anonymous unions are enabled by default */
  1964. #elif defined(__TASKING__)
  1965. #pragma warning restore
  1966. #else
  1967. #warning Not supported compiler type
  1968. #endif
  1969. /* ================================================================================ */
  1970. /* ================ Peripheral memory map ================ */
  1971. /* ================================================================================ */
  1972. #define NRF_FICR_BASE 0x10000000UL
  1973. #define NRF_UICR_BASE 0x10001000UL
  1974. #define NRF_POWER_BASE 0x40000000UL
  1975. #define NRF_CLOCK_BASE 0x40000000UL
  1976. #define NRF_RADIO_BASE 0x40001000UL
  1977. #define NRF_UARTE0_BASE 0x40002000UL
  1978. #define NRF_UART0_BASE 0x40002000UL
  1979. #define NRF_SPIM0_BASE 0x40003000UL
  1980. #define NRF_SPIS0_BASE 0x40003000UL
  1981. #define NRF_TWIM0_BASE 0x40003000UL
  1982. #define NRF_TWIS0_BASE 0x40003000UL
  1983. #define NRF_SPI0_BASE 0x40003000UL
  1984. #define NRF_TWI0_BASE 0x40003000UL
  1985. #define NRF_SPIM1_BASE 0x40004000UL
  1986. #define NRF_SPIS1_BASE 0x40004000UL
  1987. #define NRF_TWIM1_BASE 0x40004000UL
  1988. #define NRF_TWIS1_BASE 0x40004000UL
  1989. #define NRF_SPI1_BASE 0x40004000UL
  1990. #define NRF_TWI1_BASE 0x40004000UL
  1991. #define NRF_NFCT_BASE 0x40005000UL
  1992. #define NRF_GPIOTE_BASE 0x40006000UL
  1993. #define NRF_SAADC_BASE 0x40007000UL
  1994. #define NRF_TIMER0_BASE 0x40008000UL
  1995. #define NRF_TIMER1_BASE 0x40009000UL
  1996. #define NRF_TIMER2_BASE 0x4000A000UL
  1997. #define NRF_RTC0_BASE 0x4000B000UL
  1998. #define NRF_TEMP_BASE 0x4000C000UL
  1999. #define NRF_RNG_BASE 0x4000D000UL
  2000. #define NRF_ECB_BASE 0x4000E000UL
  2001. #define NRF_CCM_BASE 0x4000F000UL
  2002. #define NRF_AAR_BASE 0x4000F000UL
  2003. #define NRF_WDT_BASE 0x40010000UL
  2004. #define NRF_RTC1_BASE 0x40011000UL
  2005. #define NRF_QDEC_BASE 0x40012000UL
  2006. #define NRF_COMP_BASE 0x40013000UL
  2007. #define NRF_LPCOMP_BASE 0x40013000UL
  2008. #define NRF_SWI0_BASE 0x40014000UL
  2009. #define NRF_EGU0_BASE 0x40014000UL
  2010. #define NRF_SWI1_BASE 0x40015000UL
  2011. #define NRF_EGU1_BASE 0x40015000UL
  2012. #define NRF_SWI2_BASE 0x40016000UL
  2013. #define NRF_EGU2_BASE 0x40016000UL
  2014. #define NRF_SWI3_BASE 0x40017000UL
  2015. #define NRF_EGU3_BASE 0x40017000UL
  2016. #define NRF_SWI4_BASE 0x40018000UL
  2017. #define NRF_EGU4_BASE 0x40018000UL
  2018. #define NRF_SWI5_BASE 0x40019000UL
  2019. #define NRF_EGU5_BASE 0x40019000UL
  2020. #define NRF_TIMER3_BASE 0x4001A000UL
  2021. #define NRF_TIMER4_BASE 0x4001B000UL
  2022. #define NRF_PWM0_BASE 0x4001C000UL
  2023. #define NRF_PDM_BASE 0x4001D000UL
  2024. #define NRF_NVMC_BASE 0x4001E000UL
  2025. #define NRF_ACL_BASE 0x4001E000UL
  2026. #define NRF_PPI_BASE 0x4001F000UL
  2027. #define NRF_MWU_BASE 0x40020000UL
  2028. #define NRF_PWM1_BASE 0x40021000UL
  2029. #define NRF_PWM2_BASE 0x40022000UL
  2030. #define NRF_SPIM2_BASE 0x40023000UL
  2031. #define NRF_SPIS2_BASE 0x40023000UL
  2032. #define NRF_SPI2_BASE 0x40023000UL
  2033. #define NRF_RTC2_BASE 0x40024000UL
  2034. #define NRF_I2S_BASE 0x40025000UL
  2035. #define NRF_FPU_BASE 0x40026000UL
  2036. #define NRF_USBD_BASE 0x40027000UL
  2037. #define NRF_UARTE1_BASE 0x40028000UL
  2038. #define NRF_QSPI_BASE 0x40029000UL
  2039. #define NRF_SPIM3_BASE 0x4002B000UL
  2040. #define NRF_PWM3_BASE 0x4002D000UL
  2041. #define NRF_P0_BASE 0x50000000UL
  2042. #define NRF_P1_BASE 0x50000300UL
  2043. #define NRF_CRYPTOCELL_BASE 0x5002A000UL
  2044. /* ================================================================================ */
  2045. /* ================ Peripheral declaration ================ */
  2046. /* ================================================================================ */
  2047. #define NRF_FICR ((NRF_FICR_Type *) NRF_FICR_BASE)
  2048. #define NRF_UICR ((NRF_UICR_Type *) NRF_UICR_BASE)
  2049. #define NRF_POWER ((NRF_POWER_Type *) NRF_POWER_BASE)
  2050. #define NRF_CLOCK ((NRF_CLOCK_Type *) NRF_CLOCK_BASE)
  2051. #define NRF_RADIO ((NRF_RADIO_Type *) NRF_RADIO_BASE)
  2052. #define NRF_UARTE0 ((NRF_UARTE_Type *) NRF_UARTE0_BASE)
  2053. #define NRF_UART0 ((NRF_UART_Type *) NRF_UART0_BASE)
  2054. #define NRF_SPIM0 ((NRF_SPIM_Type *) NRF_SPIM0_BASE)
  2055. #define NRF_SPIS0 ((NRF_SPIS_Type *) NRF_SPIS0_BASE)
  2056. #define NRF_TWIM0 ((NRF_TWIM_Type *) NRF_TWIM0_BASE)
  2057. #define NRF_TWIS0 ((NRF_TWIS_Type *) NRF_TWIS0_BASE)
  2058. #define NRF_SPI0 ((NRF_SPI_Type *) NRF_SPI0_BASE)
  2059. #define NRF_TWI0 ((NRF_TWI_Type *) NRF_TWI0_BASE)
  2060. #define NRF_SPIM1 ((NRF_SPIM_Type *) NRF_SPIM1_BASE)
  2061. #define NRF_SPIS1 ((NRF_SPIS_Type *) NRF_SPIS1_BASE)
  2062. #define NRF_TWIM1 ((NRF_TWIM_Type *) NRF_TWIM1_BASE)
  2063. #define NRF_TWIS1 ((NRF_TWIS_Type *) NRF_TWIS1_BASE)
  2064. #define NRF_SPI1 ((NRF_SPI_Type *) NRF_SPI1_BASE)
  2065. #define NRF_TWI1 ((NRF_TWI_Type *) NRF_TWI1_BASE)
  2066. #define NRF_NFCT ((NRF_NFCT_Type *) NRF_NFCT_BASE)
  2067. #define NRF_GPIOTE ((NRF_GPIOTE_Type *) NRF_GPIOTE_BASE)
  2068. #define NRF_SAADC ((NRF_SAADC_Type *) NRF_SAADC_BASE)
  2069. #define NRF_TIMER0 ((NRF_TIMER_Type *) NRF_TIMER0_BASE)
  2070. #define NRF_TIMER1 ((NRF_TIMER_Type *) NRF_TIMER1_BASE)
  2071. #define NRF_TIMER2 ((NRF_TIMER_Type *) NRF_TIMER2_BASE)
  2072. #define NRF_RTC0 ((NRF_RTC_Type *) NRF_RTC0_BASE)
  2073. #define NRF_TEMP ((NRF_TEMP_Type *) NRF_TEMP_BASE)
  2074. #define NRF_RNG ((NRF_RNG_Type *) NRF_RNG_BASE)
  2075. #define NRF_ECB ((NRF_ECB_Type *) NRF_ECB_BASE)
  2076. #define NRF_CCM ((NRF_CCM_Type *) NRF_CCM_BASE)
  2077. #define NRF_AAR ((NRF_AAR_Type *) NRF_AAR_BASE)
  2078. #define NRF_WDT ((NRF_WDT_Type *) NRF_WDT_BASE)
  2079. #define NRF_RTC1 ((NRF_RTC_Type *) NRF_RTC1_BASE)
  2080. #define NRF_QDEC ((NRF_QDEC_Type *) NRF_QDEC_BASE)
  2081. #define NRF_COMP ((NRF_COMP_Type *) NRF_COMP_BASE)
  2082. #define NRF_LPCOMP ((NRF_LPCOMP_Type *) NRF_LPCOMP_BASE)
  2083. #define NRF_SWI0 ((NRF_SWI_Type *) NRF_SWI0_BASE)
  2084. #define NRF_EGU0 ((NRF_EGU_Type *) NRF_EGU0_BASE)
  2085. #define NRF_SWI1 ((NRF_SWI_Type *) NRF_SWI1_BASE)
  2086. #define NRF_EGU1 ((NRF_EGU_Type *) NRF_EGU1_BASE)
  2087. #define NRF_SWI2 ((NRF_SWI_Type *) NRF_SWI2_BASE)
  2088. #define NRF_EGU2 ((NRF_EGU_Type *) NRF_EGU2_BASE)
  2089. #define NRF_SWI3 ((NRF_SWI_Type *) NRF_SWI3_BASE)
  2090. #define NRF_EGU3 ((NRF_EGU_Type *) NRF_EGU3_BASE)
  2091. #define NRF_SWI4 ((NRF_SWI_Type *) NRF_SWI4_BASE)
  2092. #define NRF_EGU4 ((NRF_EGU_Type *) NRF_EGU4_BASE)
  2093. #define NRF_SWI5 ((NRF_SWI_Type *) NRF_SWI5_BASE)
  2094. #define NRF_EGU5 ((NRF_EGU_Type *) NRF_EGU5_BASE)
  2095. #define NRF_TIMER3 ((NRF_TIMER_Type *) NRF_TIMER3_BASE)
  2096. #define NRF_TIMER4 ((NRF_TIMER_Type *) NRF_TIMER4_BASE)
  2097. #define NRF_PWM0 ((NRF_PWM_Type *) NRF_PWM0_BASE)
  2098. #define NRF_PDM ((NRF_PDM_Type *) NRF_PDM_BASE)
  2099. #define NRF_NVMC ((NRF_NVMC_Type *) NRF_NVMC_BASE)
  2100. #define NRF_ACL ((NRF_ACL_Type *) NRF_ACL_BASE)
  2101. #define NRF_PPI ((NRF_PPI_Type *) NRF_PPI_BASE)
  2102. #define NRF_MWU ((NRF_MWU_Type *) NRF_MWU_BASE)
  2103. #define NRF_PWM1 ((NRF_PWM_Type *) NRF_PWM1_BASE)
  2104. #define NRF_PWM2 ((NRF_PWM_Type *) NRF_PWM2_BASE)
  2105. #define NRF_SPIM2 ((NRF_SPIM_Type *) NRF_SPIM2_BASE)
  2106. #define NRF_SPIS2 ((NRF_SPIS_Type *) NRF_SPIS2_BASE)
  2107. #define NRF_SPI2 ((NRF_SPI_Type *) NRF_SPI2_BASE)
  2108. #define NRF_RTC2 ((NRF_RTC_Type *) NRF_RTC2_BASE)
  2109. #define NRF_I2S ((NRF_I2S_Type *) NRF_I2S_BASE)
  2110. #define NRF_FPU ((NRF_FPU_Type *) NRF_FPU_BASE)
  2111. #define NRF_USBD ((NRF_USBD_Type *) NRF_USBD_BASE)
  2112. #define NRF_UARTE1 ((NRF_UARTE_Type *) NRF_UARTE1_BASE)
  2113. #define NRF_QSPI ((NRF_QSPI_Type *) NRF_QSPI_BASE)
  2114. #define NRF_SPIM3 ((NRF_SPIM_Type *) NRF_SPIM3_BASE)
  2115. #define NRF_PWM3 ((NRF_PWM_Type *) NRF_PWM3_BASE)
  2116. #define NRF_P0 ((NRF_GPIO_Type *) NRF_P0_BASE)
  2117. #define NRF_P1 ((NRF_GPIO_Type *) NRF_P1_BASE)
  2118. #define NRF_CRYPTOCELL ((NRF_CRYPTOCELL_Type *) NRF_CRYPTOCELL_BASE)
  2119. /** @} */ /* End of group Device_Peripheral_Registers */
  2120. /** @} */ /* End of group nrf52840 */
  2121. /** @} */ /* End of group Nordic Semiconductor */
  2122. #ifdef __cplusplus
  2123. }
  2124. #endif
  2125. #endif /* nrf52840_H */