nrf52810.h 149 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014
  1. /*
  2. * Copyright (c) 2010 - 2020, Nordic Semiconductor ASA
  3. *
  4. * All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without modification,
  7. * are permitted provided that the following conditions are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright notice, this
  10. * list of conditions and the following disclaimer.
  11. *
  12. * 2. Redistributions in binary form, except as embedded into a Nordic
  13. * Semiconductor ASA integrated circuit in a product or a software update for
  14. * such product, must reproduce the above copyright notice, this list of
  15. * conditions and the following disclaimer in the documentation and/or other
  16. * materials provided with the distribution.
  17. *
  18. * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
  19. * contributors may be used to endorse or promote products derived from this
  20. * software without specific prior written permission.
  21. *
  22. * 4. This software, with or without modification, must only be used with a
  23. * Nordic Semiconductor ASA integrated circuit.
  24. *
  25. * 5. Any software provided in binary form under this license must not be reverse
  26. * engineered, decompiled, modified and/or disassembled.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
  29. * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  30. * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
  31. * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
  32. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  33. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  34. * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  37. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  38. *
  39. * @file nrf52810.h
  40. * @brief CMSIS HeaderFile
  41. * @version 1
  42. * @date 04. March 2020
  43. * @note Generated by SVDConv V3.3.25 on Wednesday, 04.03.2020 14:59:24
  44. * from File 'nrf52810.svd',
  45. * last modified on Wednesday, 04.03.2020 13:59:16
  46. */
  47. /** @addtogroup Nordic Semiconductor
  48. * @{
  49. */
  50. /** @addtogroup nrf52810
  51. * @{
  52. */
  53. #ifndef NRF52810_H
  54. #define NRF52810_H
  55. #ifdef __cplusplus
  56. extern "C" {
  57. #endif
  58. /** @addtogroup Configuration_of_CMSIS
  59. * @{
  60. */
  61. /* =========================================================================================================================== */
  62. /* ================ Interrupt Number Definition ================ */
  63. /* =========================================================================================================================== */
  64. typedef enum {
  65. /* ======================================= ARM Cortex-M4 Specific Interrupt Numbers ======================================== */
  66. Reset_IRQn = -15, /*!< -15 Reset Vector, invoked on Power up and warm reset */
  67. NonMaskableInt_IRQn = -14, /*!< -14 Non maskable Interrupt, cannot be stopped or preempted */
  68. HardFault_IRQn = -13, /*!< -13 Hard Fault, all classes of Fault */
  69. MemoryManagement_IRQn = -12, /*!< -12 Memory Management, MPU mismatch, including Access Violation
  70. and No Match */
  71. BusFault_IRQn = -11, /*!< -11 Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory
  72. related Fault */
  73. UsageFault_IRQn = -10, /*!< -10 Usage Fault, i.e. Undef Instruction, Illegal State Transition */
  74. SVCall_IRQn = -5, /*!< -5 System Service Call via SVC instruction */
  75. DebugMonitor_IRQn = -4, /*!< -4 Debug Monitor */
  76. PendSV_IRQn = -2, /*!< -2 Pendable request for system service */
  77. SysTick_IRQn = -1, /*!< -1 System Tick Timer */
  78. /* ========================================== nrf52810 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. TWIM0_TWIS0_TWI0_IRQn = 3, /*!< 3 TWIM0_TWIS0_TWI0 */
  83. SPIM0_SPIS0_SPI0_IRQn = 4, /*!< 4 SPIM0_SPIS0_SPI0 */
  84. GPIOTE_IRQn = 6, /*!< 6 GPIOTE */
  85. SAADC_IRQn = 7, /*!< 7 SAADC */
  86. TIMER0_IRQn = 8, /*!< 8 TIMER0 */
  87. TIMER1_IRQn = 9, /*!< 9 TIMER1 */
  88. TIMER2_IRQn = 10, /*!< 10 TIMER2 */
  89. RTC0_IRQn = 11, /*!< 11 RTC0 */
  90. TEMP_IRQn = 12, /*!< 12 TEMP */
  91. RNG_IRQn = 13, /*!< 13 RNG */
  92. ECB_IRQn = 14, /*!< 14 ECB */
  93. CCM_AAR_IRQn = 15, /*!< 15 CCM_AAR */
  94. WDT_IRQn = 16, /*!< 16 WDT */
  95. RTC1_IRQn = 17, /*!< 17 RTC1 */
  96. QDEC_IRQn = 18, /*!< 18 QDEC */
  97. COMP_IRQn = 19, /*!< 19 COMP */
  98. SWI0_EGU0_IRQn = 20, /*!< 20 SWI0_EGU0 */
  99. SWI1_EGU1_IRQn = 21, /*!< 21 SWI1_EGU1 */
  100. SWI2_IRQn = 22, /*!< 22 SWI2 */
  101. SWI3_IRQn = 23, /*!< 23 SWI3 */
  102. SWI4_IRQn = 24, /*!< 24 SWI4 */
  103. SWI5_IRQn = 25, /*!< 25 SWI5 */
  104. PWM0_IRQn = 28, /*!< 28 PWM0 */
  105. PDM_IRQn = 29 /*!< 29 PDM */
  106. } IRQn_Type;
  107. /* =========================================================================================================================== */
  108. /* ================ Processor and Core Peripheral Section ================ */
  109. /* =========================================================================================================================== */
  110. /* =========================== Configuration of the ARM Cortex-M4 Processor and Core Peripherals =========================== */
  111. #define __CM4_REV 0x0001U /*!< CM4 Core Revision */
  112. #define __DSP_PRESENT 1 /*!< DSP present or not */
  113. #define __VTOR_PRESENT 1 /*!< Set to 1 if CPU supports Vector Table Offset Register */
  114. #define __NVIC_PRIO_BITS 3 /*!< Number of Bits used for Priority Levels */
  115. #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
  116. #define __MPU_PRESENT 1 /*!< MPU present */
  117. #define __FPU_PRESENT 0 /*!< FPU present */
  118. /** @} */ /* End of group Configuration_of_CMSIS */
  119. #include "core_cm4.h" /*!< ARM Cortex-M4 processor and core peripherals */
  120. #include "system_nrf52810.h" /*!< nrf52810 System */
  121. #ifndef __IM /*!< Fallback for older CMSIS versions */
  122. #define __IM __I
  123. #endif
  124. #ifndef __OM /*!< Fallback for older CMSIS versions */
  125. #define __OM __O
  126. #endif
  127. #ifndef __IOM /*!< Fallback for older CMSIS versions */
  128. #define __IOM __IO
  129. #endif
  130. /* ======================================== Start of section using anonymous unions ======================================== */
  131. #if defined (__CC_ARM)
  132. #pragma push
  133. #pragma anon_unions
  134. #elif defined (__ICCARM__)
  135. #pragma language=extended
  136. #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
  137. #pragma clang diagnostic push
  138. #pragma clang diagnostic ignored "-Wc11-extensions"
  139. #pragma clang diagnostic ignored "-Wreserved-id-macro"
  140. #pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
  141. #pragma clang diagnostic ignored "-Wnested-anon-types"
  142. #elif defined (__GNUC__)
  143. /* anonymous unions are enabled by default */
  144. #elif defined (__TMS470__)
  145. /* anonymous unions are enabled by default */
  146. #elif defined (__TASKING__)
  147. #pragma warning 586
  148. #elif defined (__CSMC__)
  149. /* anonymous unions are enabled by default */
  150. #else
  151. #warning Not supported compiler type
  152. #endif
  153. /* =========================================================================================================================== */
  154. /* ================ Device Specific Cluster Section ================ */
  155. /* =========================================================================================================================== */
  156. /** @addtogroup Device_Peripheral_clusters
  157. * @{
  158. */
  159. /**
  160. * @brief FICR_INFO [INFO] (Device info)
  161. */
  162. typedef struct {
  163. __IM uint32_t PART; /*!< (@ 0x00000000) Part code */
  164. __IM uint32_t VARIANT; /*!< (@ 0x00000004) Part variant, hardware version and production
  165. configuration */
  166. __IM uint32_t PACKAGE; /*!< (@ 0x00000008) Package option */
  167. __IM uint32_t RAM; /*!< (@ 0x0000000C) RAM variant */
  168. __IM uint32_t FLASH; /*!< (@ 0x00000010) Flash variant */
  169. } FICR_INFO_Type; /*!< Size = 20 (0x14) */
  170. /**
  171. * @brief FICR_TEMP [TEMP] (Registers storing factory TEMP module linearization coefficients)
  172. */
  173. typedef struct {
  174. __IM uint32_t A0; /*!< (@ 0x00000000) Slope definition A0 */
  175. __IM uint32_t A1; /*!< (@ 0x00000004) Slope definition A1 */
  176. __IM uint32_t A2; /*!< (@ 0x00000008) Slope definition A2 */
  177. __IM uint32_t A3; /*!< (@ 0x0000000C) Slope definition A3 */
  178. __IM uint32_t A4; /*!< (@ 0x00000010) Slope definition A4 */
  179. __IM uint32_t A5; /*!< (@ 0x00000014) Slope definition A5 */
  180. __IM uint32_t B0; /*!< (@ 0x00000018) Y-intercept B0 */
  181. __IM uint32_t B1; /*!< (@ 0x0000001C) Y-intercept B1 */
  182. __IM uint32_t B2; /*!< (@ 0x00000020) Y-intercept B2 */
  183. __IM uint32_t B3; /*!< (@ 0x00000024) Y-intercept B3 */
  184. __IM uint32_t B4; /*!< (@ 0x00000028) Y-intercept B4 */
  185. __IM uint32_t B5; /*!< (@ 0x0000002C) Y-intercept B5 */
  186. __IM uint32_t T0; /*!< (@ 0x00000030) Segment end T0 */
  187. __IM uint32_t T1; /*!< (@ 0x00000034) Segment end T1 */
  188. __IM uint32_t T2; /*!< (@ 0x00000038) Segment end T2 */
  189. __IM uint32_t T3; /*!< (@ 0x0000003C) Segment end T3 */
  190. __IM uint32_t T4; /*!< (@ 0x00000040) Segment end T4 */
  191. } FICR_TEMP_Type; /*!< Size = 68 (0x44) */
  192. /**
  193. * @brief POWER_RAM [RAM] (Unspecified)
  194. */
  195. typedef struct {
  196. __IOM uint32_t POWER; /*!< (@ 0x00000000) Description cluster: RAMn power control register.
  197. The RAM size will vary depending on product
  198. variant, and the RAMn register will only
  199. be present if the corresponding RAM AHB
  200. slave is present on the device. */
  201. __OM uint32_t POWERSET; /*!< (@ 0x00000004) Description cluster: RAMn power control set register */
  202. __OM uint32_t POWERCLR; /*!< (@ 0x00000008) Description cluster: RAMn power control clear
  203. register */
  204. __IM uint32_t RESERVED;
  205. } POWER_RAM_Type; /*!< Size = 16 (0x10) */
  206. /**
  207. * @brief UART_PSEL [PSEL] (Unspecified)
  208. */
  209. typedef struct {
  210. __IOM uint32_t RTS; /*!< (@ 0x00000000) Pin select for RTS */
  211. __IOM uint32_t TXD; /*!< (@ 0x00000004) Pin select for TXD */
  212. __IOM uint32_t CTS; /*!< (@ 0x00000008) Pin select for CTS */
  213. __IOM uint32_t RXD; /*!< (@ 0x0000000C) Pin select for RXD */
  214. } UART_PSEL_Type; /*!< Size = 16 (0x10) */
  215. /**
  216. * @brief UARTE_PSEL [PSEL] (Unspecified)
  217. */
  218. typedef struct {
  219. __IOM uint32_t RTS; /*!< (@ 0x00000000) Pin select for RTS signal */
  220. __IOM uint32_t TXD; /*!< (@ 0x00000004) Pin select for TXD signal */
  221. __IOM uint32_t CTS; /*!< (@ 0x00000008) Pin select for CTS signal */
  222. __IOM uint32_t RXD; /*!< (@ 0x0000000C) Pin select for RXD signal */
  223. } UARTE_PSEL_Type; /*!< Size = 16 (0x10) */
  224. /**
  225. * @brief UARTE_RXD [RXD] (RXD EasyDMA channel)
  226. */
  227. typedef struct {
  228. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  229. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in receive buffer */
  230. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  231. } UARTE_RXD_Type; /*!< Size = 12 (0xc) */
  232. /**
  233. * @brief UARTE_TXD [TXD] (TXD EasyDMA channel)
  234. */
  235. typedef struct {
  236. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  237. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in transmit buffer */
  238. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  239. } UARTE_TXD_Type; /*!< Size = 12 (0xc) */
  240. /**
  241. * @brief TWI_PSEL [PSEL] (Unspecified)
  242. */
  243. typedef struct {
  244. __IOM uint32_t SCL; /*!< (@ 0x00000000) Pin select for SCL */
  245. __IOM uint32_t SDA; /*!< (@ 0x00000004) Pin select for SDA */
  246. } TWI_PSEL_Type; /*!< Size = 8 (0x8) */
  247. /**
  248. * @brief TWIM_PSEL [PSEL] (Unspecified)
  249. */
  250. typedef struct {
  251. __IOM uint32_t SCL; /*!< (@ 0x00000000) Pin select for SCL signal */
  252. __IOM uint32_t SDA; /*!< (@ 0x00000004) Pin select for SDA signal */
  253. } TWIM_PSEL_Type; /*!< Size = 8 (0x8) */
  254. /**
  255. * @brief TWIM_RXD [RXD] (RXD EasyDMA channel)
  256. */
  257. typedef struct {
  258. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  259. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in receive buffer */
  260. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  261. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  262. } TWIM_RXD_Type; /*!< Size = 16 (0x10) */
  263. /**
  264. * @brief TWIM_TXD [TXD] (TXD EasyDMA channel)
  265. */
  266. typedef struct {
  267. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  268. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in transmit buffer */
  269. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  270. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  271. } TWIM_TXD_Type; /*!< Size = 16 (0x10) */
  272. /**
  273. * @brief TWIS_PSEL [PSEL] (Unspecified)
  274. */
  275. typedef struct {
  276. __IOM uint32_t SCL; /*!< (@ 0x00000000) Pin select for SCL signal */
  277. __IOM uint32_t SDA; /*!< (@ 0x00000004) Pin select for SDA signal */
  278. } TWIS_PSEL_Type; /*!< Size = 8 (0x8) */
  279. /**
  280. * @brief TWIS_RXD [RXD] (RXD EasyDMA channel)
  281. */
  282. typedef struct {
  283. __IOM uint32_t PTR; /*!< (@ 0x00000000) RXD Data pointer */
  284. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in RXD buffer */
  285. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last RXD transaction */
  286. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  287. } TWIS_RXD_Type; /*!< Size = 16 (0x10) */
  288. /**
  289. * @brief TWIS_TXD [TXD] (TXD EasyDMA channel)
  290. */
  291. typedef struct {
  292. __IOM uint32_t PTR; /*!< (@ 0x00000000) TXD Data pointer */
  293. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in TXD buffer */
  294. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last TXD transaction */
  295. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  296. } TWIS_TXD_Type; /*!< Size = 16 (0x10) */
  297. /**
  298. * @brief SPI_PSEL [PSEL] (Unspecified)
  299. */
  300. typedef struct {
  301. __IOM uint32_t SCK; /*!< (@ 0x00000000) Pin select for SCK */
  302. __IOM uint32_t MOSI; /*!< (@ 0x00000004) Pin select for MOSI signal */
  303. __IOM uint32_t MISO; /*!< (@ 0x00000008) Pin select for MISO signal */
  304. } SPI_PSEL_Type; /*!< Size = 12 (0xc) */
  305. /**
  306. * @brief SPIM_PSEL [PSEL] (Unspecified)
  307. */
  308. typedef struct {
  309. __IOM uint32_t SCK; /*!< (@ 0x00000000) Pin select for SCK */
  310. __IOM uint32_t MOSI; /*!< (@ 0x00000004) Pin select for MOSI signal */
  311. __IOM uint32_t MISO; /*!< (@ 0x00000008) Pin select for MISO signal */
  312. } SPIM_PSEL_Type; /*!< Size = 12 (0xc) */
  313. /**
  314. * @brief SPIM_RXD [RXD] (RXD EasyDMA channel)
  315. */
  316. typedef struct {
  317. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  318. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in receive buffer */
  319. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  320. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  321. } SPIM_RXD_Type; /*!< Size = 16 (0x10) */
  322. /**
  323. * @brief SPIM_TXD [TXD] (TXD EasyDMA channel)
  324. */
  325. typedef struct {
  326. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  327. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in transmit buffer */
  328. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  329. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  330. } SPIM_TXD_Type; /*!< Size = 16 (0x10) */
  331. /**
  332. * @brief SPIS_PSEL [PSEL] (Unspecified)
  333. */
  334. typedef struct {
  335. __IOM uint32_t SCK; /*!< (@ 0x00000000) Pin select for SCK */
  336. __IOM uint32_t MISO; /*!< (@ 0x00000004) Pin select for MISO signal */
  337. __IOM uint32_t MOSI; /*!< (@ 0x00000008) Pin select for MOSI signal */
  338. __IOM uint32_t CSN; /*!< (@ 0x0000000C) Pin select for CSN signal */
  339. } SPIS_PSEL_Type; /*!< Size = 16 (0x10) */
  340. /**
  341. * @brief SPIS_RXD [RXD] (Unspecified)
  342. */
  343. typedef struct {
  344. __IOM uint32_t PTR; /*!< (@ 0x00000000) RXD data pointer */
  345. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in receive buffer */
  346. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes received in last granted transaction */
  347. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  348. } SPIS_RXD_Type; /*!< Size = 16 (0x10) */
  349. /**
  350. * @brief SPIS_TXD [TXD] (Unspecified)
  351. */
  352. typedef struct {
  353. __IOM uint32_t PTR; /*!< (@ 0x00000000) TXD data pointer */
  354. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in transmit buffer */
  355. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transmitted in last granted transaction */
  356. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  357. } SPIS_TXD_Type; /*!< Size = 16 (0x10) */
  358. /**
  359. * @brief SAADC_EVENTS_CH [EVENTS_CH] (Peripheral events.)
  360. */
  361. typedef struct {
  362. __IOM uint32_t LIMITH; /*!< (@ 0x00000000) Description cluster: Last results is equal or
  363. above CH[n].LIMIT.HIGH */
  364. __IOM uint32_t LIMITL; /*!< (@ 0x00000004) Description cluster: Last results is equal or
  365. below CH[n].LIMIT.LOW */
  366. } SAADC_EVENTS_CH_Type; /*!< Size = 8 (0x8) */
  367. /**
  368. * @brief SAADC_CH [CH] (Unspecified)
  369. */
  370. typedef struct {
  371. __IOM uint32_t PSELP; /*!< (@ 0x00000000) Description cluster: Input positive pin selection
  372. for CH[n] */
  373. __IOM uint32_t PSELN; /*!< (@ 0x00000004) Description cluster: Input negative pin selection
  374. for CH[n] */
  375. __IOM uint32_t CONFIG; /*!< (@ 0x00000008) Description cluster: Input configuration for
  376. CH[n] */
  377. __IOM uint32_t LIMIT; /*!< (@ 0x0000000C) Description cluster: High/low limits for event
  378. monitoring a channel */
  379. } SAADC_CH_Type; /*!< Size = 16 (0x10) */
  380. /**
  381. * @brief SAADC_RESULT [RESULT] (RESULT EasyDMA channel)
  382. */
  383. typedef struct {
  384. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  385. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of buffer words to transfer */
  386. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of buffer words transferred since last
  387. START */
  388. } SAADC_RESULT_Type; /*!< Size = 12 (0xc) */
  389. /**
  390. * @brief QDEC_PSEL [PSEL] (Unspecified)
  391. */
  392. typedef struct {
  393. __IOM uint32_t LED; /*!< (@ 0x00000000) Pin select for LED signal */
  394. __IOM uint32_t A; /*!< (@ 0x00000004) Pin select for A signal */
  395. __IOM uint32_t B; /*!< (@ 0x00000008) Pin select for B signal */
  396. } QDEC_PSEL_Type; /*!< Size = 12 (0xc) */
  397. /**
  398. * @brief PWM_SEQ [SEQ] (Unspecified)
  399. */
  400. typedef struct {
  401. __IOM uint32_t PTR; /*!< (@ 0x00000000) Description cluster: Beginning address in RAM
  402. of this sequence */
  403. __IOM uint32_t CNT; /*!< (@ 0x00000004) Description cluster: Number of values (duty cycles)
  404. in this sequence */
  405. __IOM uint32_t REFRESH; /*!< (@ 0x00000008) Description cluster: Number of additional PWM
  406. periods between samples loaded into compare
  407. register */
  408. __IOM uint32_t ENDDELAY; /*!< (@ 0x0000000C) Description cluster: Time added after the sequence */
  409. __IM uint32_t RESERVED[4];
  410. } PWM_SEQ_Type; /*!< Size = 32 (0x20) */
  411. /**
  412. * @brief PWM_PSEL [PSEL] (Unspecified)
  413. */
  414. typedef struct {
  415. __IOM uint32_t OUT[4]; /*!< (@ 0x00000000) Description collection: Output pin select for
  416. PWM channel n */
  417. } PWM_PSEL_Type; /*!< Size = 16 (0x10) */
  418. /**
  419. * @brief PDM_PSEL [PSEL] (Unspecified)
  420. */
  421. typedef struct {
  422. __IOM uint32_t CLK; /*!< (@ 0x00000000) Pin number configuration for PDM CLK signal */
  423. __IOM uint32_t DIN; /*!< (@ 0x00000004) Pin number configuration for PDM DIN signal */
  424. } PDM_PSEL_Type; /*!< Size = 8 (0x8) */
  425. /**
  426. * @brief PDM_SAMPLE [SAMPLE] (Unspecified)
  427. */
  428. typedef struct {
  429. __IOM uint32_t PTR; /*!< (@ 0x00000000) RAM address pointer to write samples to with
  430. EasyDMA */
  431. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Number of samples to allocate memory for in EasyDMA
  432. mode */
  433. } PDM_SAMPLE_Type; /*!< Size = 8 (0x8) */
  434. /**
  435. * @brief PPI_TASKS_CHG [TASKS_CHG] (Channel group tasks)
  436. */
  437. typedef struct {
  438. __OM uint32_t EN; /*!< (@ 0x00000000) Description cluster: Enable channel group n */
  439. __OM uint32_t DIS; /*!< (@ 0x00000004) Description cluster: Disable channel group n */
  440. } PPI_TASKS_CHG_Type; /*!< Size = 8 (0x8) */
  441. /**
  442. * @brief PPI_CH [CH] (PPI Channel)
  443. */
  444. typedef struct {
  445. __IOM uint32_t EEP; /*!< (@ 0x00000000) Description cluster: Channel n event end-point */
  446. __IOM uint32_t TEP; /*!< (@ 0x00000004) Description cluster: Channel n task end-point */
  447. } PPI_CH_Type; /*!< Size = 8 (0x8) */
  448. /**
  449. * @brief PPI_FORK [FORK] (Fork)
  450. */
  451. typedef struct {
  452. __IOM uint32_t TEP; /*!< (@ 0x00000000) Description cluster: Channel n task end-point */
  453. } PPI_FORK_Type; /*!< Size = 4 (0x4) */
  454. /** @} */ /* End of group Device_Peripheral_clusters */
  455. /* =========================================================================================================================== */
  456. /* ================ Device Specific Peripheral Section ================ */
  457. /* =========================================================================================================================== */
  458. /** @addtogroup Device_Peripheral_peripherals
  459. * @{
  460. */
  461. /* =========================================================================================================================== */
  462. /* ================ FICR ================ */
  463. /* =========================================================================================================================== */
  464. /**
  465. * @brief Factory information configuration registers (FICR)
  466. */
  467. typedef struct { /*!< (@ 0x10000000) FICR Structure */
  468. __IM uint32_t RESERVED[4];
  469. __IM uint32_t CODEPAGESIZE; /*!< (@ 0x00000010) Code memory page size */
  470. __IM uint32_t CODESIZE; /*!< (@ 0x00000014) Code memory size */
  471. __IM uint32_t RESERVED1[18];
  472. __IM uint32_t DEVICEID[2]; /*!< (@ 0x00000060) Description collection: Device identifier */
  473. __IM uint32_t RESERVED2[6];
  474. __IM uint32_t ER[4]; /*!< (@ 0x00000080) Description collection: Encryption root, word
  475. n */
  476. __IM uint32_t IR[4]; /*!< (@ 0x00000090) Description collection: Identity root, word n */
  477. __IM uint32_t DEVICEADDRTYPE; /*!< (@ 0x000000A0) Device address type */
  478. __IM uint32_t DEVICEADDR[2]; /*!< (@ 0x000000A4) Description collection: Device address n */
  479. __IM uint32_t RESERVED3[21];
  480. __IM FICR_INFO_Type INFO; /*!< (@ 0x00000100) Device info */
  481. __IM uint32_t RESERVED4[188];
  482. __IM FICR_TEMP_Type TEMP; /*!< (@ 0x00000404) Registers storing factory TEMP module linearization
  483. coefficients */
  484. } NRF_FICR_Type; /*!< Size = 1096 (0x448) */
  485. /* =========================================================================================================================== */
  486. /* ================ UICR ================ */
  487. /* =========================================================================================================================== */
  488. /**
  489. * @brief User information configuration registers (UICR)
  490. */
  491. typedef struct { /*!< (@ 0x10001000) UICR Structure */
  492. __IM uint32_t RESERVED[5];
  493. __IOM uint32_t NRFFW[13]; /*!< (@ 0x00000014) Description collection: Reserved for Nordic firmware
  494. design */
  495. __IM uint32_t RESERVED1[2];
  496. __IOM uint32_t NRFHW[12]; /*!< (@ 0x00000050) Description collection: Reserved for Nordic hardware
  497. design */
  498. __IOM uint32_t CUSTOMER[32]; /*!< (@ 0x00000080) Description collection: Reserved for customer */
  499. __IM uint32_t RESERVED2[64];
  500. __IOM uint32_t PSELRESET[2]; /*!< (@ 0x00000200) Description collection: Mapping of the nRESET
  501. function (see POWER chapter for details) */
  502. __IOM uint32_t APPROTECT; /*!< (@ 0x00000208) Access port protection */
  503. } NRF_UICR_Type; /*!< Size = 524 (0x20c) */
  504. /* =========================================================================================================================== */
  505. /* ================ BPROT ================ */
  506. /* =========================================================================================================================== */
  507. /**
  508. * @brief Block Protect (BPROT)
  509. */
  510. typedef struct { /*!< (@ 0x40000000) BPROT Structure */
  511. __IM uint32_t RESERVED[384];
  512. __IOM uint32_t CONFIG0; /*!< (@ 0x00000600) Block protect configuration register 0 */
  513. __IOM uint32_t CONFIG1; /*!< (@ 0x00000604) Block protect configuration register 1 */
  514. __IOM uint32_t DISABLEINDEBUG; /*!< (@ 0x00000608) Disable protection mechanism in debug mode */
  515. } NRF_BPROT_Type; /*!< Size = 1548 (0x60c) */
  516. /* =========================================================================================================================== */
  517. /* ================ CLOCK ================ */
  518. /* =========================================================================================================================== */
  519. /**
  520. * @brief Clock control (CLOCK)
  521. */
  522. typedef struct { /*!< (@ 0x40000000) CLOCK Structure */
  523. __OM uint32_t TASKS_HFCLKSTART; /*!< (@ 0x00000000) Start HFCLK crystal oscillator */
  524. __OM uint32_t TASKS_HFCLKSTOP; /*!< (@ 0x00000004) Stop HFCLK crystal oscillator */
  525. __OM uint32_t TASKS_LFCLKSTART; /*!< (@ 0x00000008) Start LFCLK source */
  526. __OM uint32_t TASKS_LFCLKSTOP; /*!< (@ 0x0000000C) Stop LFCLK source */
  527. __OM uint32_t TASKS_CAL; /*!< (@ 0x00000010) Start calibration of LFRC oscillator */
  528. __OM uint32_t TASKS_CTSTART; /*!< (@ 0x00000014) Start calibration timer */
  529. __OM uint32_t TASKS_CTSTOP; /*!< (@ 0x00000018) Stop calibration timer */
  530. __IM uint32_t RESERVED[57];
  531. __IOM uint32_t EVENTS_HFCLKSTARTED; /*!< (@ 0x00000100) HFCLK oscillator started */
  532. __IOM uint32_t EVENTS_LFCLKSTARTED; /*!< (@ 0x00000104) LFCLK started */
  533. __IM uint32_t RESERVED1;
  534. __IOM uint32_t EVENTS_DONE; /*!< (@ 0x0000010C) Calibration of LFCLK RC oscillator complete event */
  535. __IOM uint32_t EVENTS_CTTO; /*!< (@ 0x00000110) Calibration timer timeout */
  536. __IM uint32_t RESERVED2[124];
  537. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  538. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  539. __IM uint32_t RESERVED3[63];
  540. __IM uint32_t HFCLKRUN; /*!< (@ 0x00000408) Status indicating that HFCLKSTART task has been
  541. triggered */
  542. __IM uint32_t HFCLKSTAT; /*!< (@ 0x0000040C) HFCLK status */
  543. __IM uint32_t RESERVED4;
  544. __IM uint32_t LFCLKRUN; /*!< (@ 0x00000414) Status indicating that LFCLKSTART task has been
  545. triggered */
  546. __IM uint32_t LFCLKSTAT; /*!< (@ 0x00000418) LFCLK status */
  547. __IM uint32_t LFCLKSRCCOPY; /*!< (@ 0x0000041C) Copy of LFCLKSRC register, set when LFCLKSTART
  548. task was triggered */
  549. __IM uint32_t RESERVED5[62];
  550. __IOM uint32_t LFCLKSRC; /*!< (@ 0x00000518) Clock source for the LFCLK */
  551. __IM uint32_t RESERVED6[7];
  552. __IOM uint32_t CTIV; /*!< (@ 0x00000538) Calibration timer interval */
  553. } NRF_CLOCK_Type; /*!< Size = 1340 (0x53c) */
  554. /* =========================================================================================================================== */
  555. /* ================ POWER ================ */
  556. /* =========================================================================================================================== */
  557. /**
  558. * @brief Power control (POWER)
  559. */
  560. typedef struct { /*!< (@ 0x40000000) POWER Structure */
  561. __IM uint32_t RESERVED[30];
  562. __OM uint32_t TASKS_CONSTLAT; /*!< (@ 0x00000078) Enable Constant Latency mode */
  563. __OM uint32_t TASKS_LOWPWR; /*!< (@ 0x0000007C) Enable Low-power mode (variable latency) */
  564. __IM uint32_t RESERVED1[34];
  565. __IOM uint32_t EVENTS_POFWARN; /*!< (@ 0x00000108) Power failure warning */
  566. __IM uint32_t RESERVED2[2];
  567. __IOM uint32_t EVENTS_SLEEPENTER; /*!< (@ 0x00000114) CPU entered WFI/WFE sleep */
  568. __IOM uint32_t EVENTS_SLEEPEXIT; /*!< (@ 0x00000118) CPU exited WFI/WFE sleep */
  569. __IM uint32_t RESERVED3[122];
  570. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  571. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  572. __IM uint32_t RESERVED4[61];
  573. __IOM uint32_t RESETREAS; /*!< (@ 0x00000400) Reset reason */
  574. __IM uint32_t RESERVED5[63];
  575. __OM uint32_t SYSTEMOFF; /*!< (@ 0x00000500) System OFF register */
  576. __IM uint32_t RESERVED6[3];
  577. __IOM uint32_t POFCON; /*!< (@ 0x00000510) Power failure comparator configuration */
  578. __IM uint32_t RESERVED7[2];
  579. __IOM uint32_t GPREGRET; /*!< (@ 0x0000051C) General purpose retention register */
  580. __IOM uint32_t GPREGRET2; /*!< (@ 0x00000520) General purpose retention register */
  581. __IM uint32_t RESERVED8[21];
  582. __IOM uint32_t DCDCEN; /*!< (@ 0x00000578) DC/DC enable register */
  583. __IM uint32_t RESERVED9[225];
  584. __IOM POWER_RAM_Type RAM[8]; /*!< (@ 0x00000900) Unspecified */
  585. } NRF_POWER_Type; /*!< Size = 2432 (0x980) */
  586. /* =========================================================================================================================== */
  587. /* ================ P0 ================ */
  588. /* =========================================================================================================================== */
  589. /**
  590. * @brief GPIO Port (P0)
  591. */
  592. typedef struct { /*!< (@ 0x50000000) P0 Structure */
  593. __IM uint32_t RESERVED[321];
  594. __IOM uint32_t OUT; /*!< (@ 0x00000504) Write GPIO port */
  595. __IOM uint32_t OUTSET; /*!< (@ 0x00000508) Set individual bits in GPIO port */
  596. __IOM uint32_t OUTCLR; /*!< (@ 0x0000050C) Clear individual bits in GPIO port */
  597. __IM uint32_t IN; /*!< (@ 0x00000510) Read GPIO port */
  598. __IOM uint32_t DIR; /*!< (@ 0x00000514) Direction of GPIO pins */
  599. __IOM uint32_t DIRSET; /*!< (@ 0x00000518) DIR set register */
  600. __IOM uint32_t DIRCLR; /*!< (@ 0x0000051C) DIR clear register */
  601. __IOM uint32_t LATCH; /*!< (@ 0x00000520) Latch register indicating what GPIO pins that
  602. have met the criteria set in the PIN_CNF[n].SENSE
  603. registers */
  604. __IOM uint32_t DETECTMODE; /*!< (@ 0x00000524) Select between default DETECT signal behaviour
  605. and LDETECT mode */
  606. __IM uint32_t RESERVED1[118];
  607. __IOM uint32_t PIN_CNF[32]; /*!< (@ 0x00000700) Description collection: Configuration of GPIO
  608. pins */
  609. } NRF_GPIO_Type; /*!< Size = 1920 (0x780) */
  610. /* =========================================================================================================================== */
  611. /* ================ RADIO ================ */
  612. /* =========================================================================================================================== */
  613. /**
  614. * @brief 2.4 GHz Radio (RADIO)
  615. */
  616. typedef struct { /*!< (@ 0x40001000) RADIO Structure */
  617. __OM uint32_t TASKS_TXEN; /*!< (@ 0x00000000) Enable RADIO in TX mode */
  618. __OM uint32_t TASKS_RXEN; /*!< (@ 0x00000004) Enable RADIO in RX mode */
  619. __OM uint32_t TASKS_START; /*!< (@ 0x00000008) Start RADIO */
  620. __OM uint32_t TASKS_STOP; /*!< (@ 0x0000000C) Stop RADIO */
  621. __OM uint32_t TASKS_DISABLE; /*!< (@ 0x00000010) Disable RADIO */
  622. __OM uint32_t TASKS_RSSISTART; /*!< (@ 0x00000014) Start the RSSI and take one single sample of
  623. the receive signal strength. */
  624. __OM uint32_t TASKS_RSSISTOP; /*!< (@ 0x00000018) Stop the RSSI measurement */
  625. __OM uint32_t TASKS_BCSTART; /*!< (@ 0x0000001C) Start the bit counter */
  626. __OM uint32_t TASKS_BCSTOP; /*!< (@ 0x00000020) Stop the bit counter */
  627. __IM uint32_t RESERVED[55];
  628. __IOM uint32_t EVENTS_READY; /*!< (@ 0x00000100) RADIO has ramped up and is ready to be started */
  629. __IOM uint32_t EVENTS_ADDRESS; /*!< (@ 0x00000104) Address sent or received */
  630. __IOM uint32_t EVENTS_PAYLOAD; /*!< (@ 0x00000108) Packet payload sent or received */
  631. __IOM uint32_t EVENTS_END; /*!< (@ 0x0000010C) Packet sent or received */
  632. __IOM uint32_t EVENTS_DISABLED; /*!< (@ 0x00000110) RADIO has been disabled */
  633. __IOM uint32_t EVENTS_DEVMATCH; /*!< (@ 0x00000114) A device address match occurred on the last received
  634. packet */
  635. __IOM uint32_t EVENTS_DEVMISS; /*!< (@ 0x00000118) No device address match occurred on the last
  636. received packet */
  637. __IOM uint32_t EVENTS_RSSIEND; /*!< (@ 0x0000011C) Sampling of receive signal strength complete. */
  638. __IM uint32_t RESERVED1[2];
  639. __IOM uint32_t EVENTS_BCMATCH; /*!< (@ 0x00000128) Bit counter reached bit count value. */
  640. __IM uint32_t RESERVED2;
  641. __IOM uint32_t EVENTS_CRCOK; /*!< (@ 0x00000130) Packet received with CRC ok */
  642. __IOM uint32_t EVENTS_CRCERROR; /*!< (@ 0x00000134) Packet received with CRC error */
  643. __IM uint32_t RESERVED3[50];
  644. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  645. __IM uint32_t RESERVED4[64];
  646. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  647. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  648. __IM uint32_t RESERVED5[61];
  649. __IM uint32_t CRCSTATUS; /*!< (@ 0x00000400) CRC status */
  650. __IM uint32_t RESERVED6;
  651. __IM uint32_t RXMATCH; /*!< (@ 0x00000408) Received address */
  652. __IM uint32_t RXCRC; /*!< (@ 0x0000040C) CRC field of previously received packet */
  653. __IM uint32_t DAI; /*!< (@ 0x00000410) Device address match index */
  654. __IM uint32_t RESERVED7[60];
  655. __IOM uint32_t PACKETPTR; /*!< (@ 0x00000504) Packet pointer */
  656. __IOM uint32_t FREQUENCY; /*!< (@ 0x00000508) Frequency */
  657. __IOM uint32_t TXPOWER; /*!< (@ 0x0000050C) Output power */
  658. __IOM uint32_t MODE; /*!< (@ 0x00000510) Data rate and modulation */
  659. __IOM uint32_t PCNF0; /*!< (@ 0x00000514) Packet configuration register 0 */
  660. __IOM uint32_t PCNF1; /*!< (@ 0x00000518) Packet configuration register 1 */
  661. __IOM uint32_t BASE0; /*!< (@ 0x0000051C) Base address 0 */
  662. __IOM uint32_t BASE1; /*!< (@ 0x00000520) Base address 1 */
  663. __IOM uint32_t PREFIX0; /*!< (@ 0x00000524) Prefixes bytes for logical addresses 0-3 */
  664. __IOM uint32_t PREFIX1; /*!< (@ 0x00000528) Prefixes bytes for logical addresses 4-7 */
  665. __IOM uint32_t TXADDRESS; /*!< (@ 0x0000052C) Transmit address select */
  666. __IOM uint32_t RXADDRESSES; /*!< (@ 0x00000530) Receive address select */
  667. __IOM uint32_t CRCCNF; /*!< (@ 0x00000534) CRC configuration */
  668. __IOM uint32_t CRCPOLY; /*!< (@ 0x00000538) CRC polynomial */
  669. __IOM uint32_t CRCINIT; /*!< (@ 0x0000053C) CRC initial value */
  670. __IM uint32_t RESERVED8;
  671. __IOM uint32_t TIFS; /*!< (@ 0x00000544) Inter Frame Spacing in us */
  672. __IM uint32_t RSSISAMPLE; /*!< (@ 0x00000548) RSSI sample */
  673. __IM uint32_t RESERVED9;
  674. __IM uint32_t STATE; /*!< (@ 0x00000550) Current radio state */
  675. __IOM uint32_t DATAWHITEIV; /*!< (@ 0x00000554) Data whitening initial value */
  676. __IM uint32_t RESERVED10[2];
  677. __IOM uint32_t BCC; /*!< (@ 0x00000560) Bit counter compare */
  678. __IM uint32_t RESERVED11[39];
  679. __IOM uint32_t DAB[8]; /*!< (@ 0x00000600) Description collection: Device address base segment
  680. n */
  681. __IOM uint32_t DAP[8]; /*!< (@ 0x00000620) Description collection: Device address prefix
  682. n */
  683. __IOM uint32_t DACNF; /*!< (@ 0x00000640) Device address match configuration */
  684. __IM uint32_t RESERVED12[3];
  685. __IOM uint32_t MODECNF0; /*!< (@ 0x00000650) Radio mode configuration register 0 */
  686. __IM uint32_t RESERVED13[618];
  687. __IOM uint32_t POWER; /*!< (@ 0x00000FFC) Peripheral power control */
  688. } NRF_RADIO_Type; /*!< Size = 4096 (0x1000) */
  689. /* =========================================================================================================================== */
  690. /* ================ UART0 ================ */
  691. /* =========================================================================================================================== */
  692. /**
  693. * @brief Universal Asynchronous Receiver/Transmitter (UART0)
  694. */
  695. typedef struct { /*!< (@ 0x40002000) UART0 Structure */
  696. __OM uint32_t TASKS_STARTRX; /*!< (@ 0x00000000) Start UART receiver */
  697. __OM uint32_t TASKS_STOPRX; /*!< (@ 0x00000004) Stop UART receiver */
  698. __OM uint32_t TASKS_STARTTX; /*!< (@ 0x00000008) Start UART transmitter */
  699. __OM uint32_t TASKS_STOPTX; /*!< (@ 0x0000000C) Stop UART transmitter */
  700. __IM uint32_t RESERVED[3];
  701. __OM uint32_t TASKS_SUSPEND; /*!< (@ 0x0000001C) Suspend UART */
  702. __IM uint32_t RESERVED1[56];
  703. __IOM uint32_t EVENTS_CTS; /*!< (@ 0x00000100) CTS is activated (set low). Clear To Send. */
  704. __IOM uint32_t EVENTS_NCTS; /*!< (@ 0x00000104) CTS is deactivated (set high). Not Clear To Send. */
  705. __IOM uint32_t EVENTS_RXDRDY; /*!< (@ 0x00000108) Data received in RXD */
  706. __IM uint32_t RESERVED2[4];
  707. __IOM uint32_t EVENTS_TXDRDY; /*!< (@ 0x0000011C) Data sent from TXD */
  708. __IM uint32_t RESERVED3;
  709. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000124) Error detected */
  710. __IM uint32_t RESERVED4[7];
  711. __IOM uint32_t EVENTS_RXTO; /*!< (@ 0x00000144) Receiver timeout */
  712. __IM uint32_t RESERVED5[46];
  713. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  714. __IM uint32_t RESERVED6[64];
  715. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  716. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  717. __IM uint32_t RESERVED7[93];
  718. __IOM uint32_t ERRORSRC; /*!< (@ 0x00000480) Error source */
  719. __IM uint32_t RESERVED8[31];
  720. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable UART */
  721. __IM uint32_t RESERVED9;
  722. __IOM UART_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  723. __IM uint32_t RXD; /*!< (@ 0x00000518) RXD register */
  724. __OM uint32_t TXD; /*!< (@ 0x0000051C) TXD register */
  725. __IM uint32_t RESERVED10;
  726. __IOM uint32_t BAUDRATE; /*!< (@ 0x00000524) Baud rate. Accuracy depends on the HFCLK source
  727. selected. */
  728. __IM uint32_t RESERVED11[17];
  729. __IOM uint32_t CONFIG; /*!< (@ 0x0000056C) Configuration of parity and hardware flow control */
  730. } NRF_UART_Type; /*!< Size = 1392 (0x570) */
  731. /* =========================================================================================================================== */
  732. /* ================ UARTE0 ================ */
  733. /* =========================================================================================================================== */
  734. /**
  735. * @brief UART with EasyDMA (UARTE0)
  736. */
  737. typedef struct { /*!< (@ 0x40002000) UARTE0 Structure */
  738. __OM uint32_t TASKS_STARTRX; /*!< (@ 0x00000000) Start UART receiver */
  739. __OM uint32_t TASKS_STOPRX; /*!< (@ 0x00000004) Stop UART receiver */
  740. __OM uint32_t TASKS_STARTTX; /*!< (@ 0x00000008) Start UART transmitter */
  741. __OM uint32_t TASKS_STOPTX; /*!< (@ 0x0000000C) Stop UART transmitter */
  742. __IM uint32_t RESERVED[7];
  743. __OM uint32_t TASKS_FLUSHRX; /*!< (@ 0x0000002C) Flush RX FIFO into RX buffer */
  744. __IM uint32_t RESERVED1[52];
  745. __IOM uint32_t EVENTS_CTS; /*!< (@ 0x00000100) CTS is activated (set low). Clear To Send. */
  746. __IOM uint32_t EVENTS_NCTS; /*!< (@ 0x00000104) CTS is deactivated (set high). Not Clear To Send. */
  747. __IOM uint32_t EVENTS_RXDRDY; /*!< (@ 0x00000108) Data received in RXD (but potentially not yet
  748. transferred to Data RAM) */
  749. __IM uint32_t RESERVED2;
  750. __IOM uint32_t EVENTS_ENDRX; /*!< (@ 0x00000110) Receive buffer is filled up */
  751. __IM uint32_t RESERVED3[2];
  752. __IOM uint32_t EVENTS_TXDRDY; /*!< (@ 0x0000011C) Data sent from TXD */
  753. __IOM uint32_t EVENTS_ENDTX; /*!< (@ 0x00000120) Last TX byte transmitted */
  754. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000124) Error detected */
  755. __IM uint32_t RESERVED4[7];
  756. __IOM uint32_t EVENTS_RXTO; /*!< (@ 0x00000144) Receiver timeout */
  757. __IM uint32_t RESERVED5;
  758. __IOM uint32_t EVENTS_RXSTARTED; /*!< (@ 0x0000014C) UART receiver has started */
  759. __IOM uint32_t EVENTS_TXSTARTED; /*!< (@ 0x00000150) UART transmitter has started */
  760. __IM uint32_t RESERVED6;
  761. __IOM uint32_t EVENTS_TXSTOPPED; /*!< (@ 0x00000158) Transmitter stopped */
  762. __IM uint32_t RESERVED7[41];
  763. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  764. __IM uint32_t RESERVED8[63];
  765. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  766. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  767. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  768. __IM uint32_t RESERVED9[93];
  769. __IOM uint32_t ERRORSRC; /*!< (@ 0x00000480) Error source Note : this register is read / write
  770. one to clear. */
  771. __IM uint32_t RESERVED10[31];
  772. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable UART */
  773. __IM uint32_t RESERVED11;
  774. __IOM UARTE_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  775. __IM uint32_t RESERVED12[3];
  776. __IOM uint32_t BAUDRATE; /*!< (@ 0x00000524) Baud rate. Accuracy depends on the HFCLK source
  777. selected. */
  778. __IM uint32_t RESERVED13[3];
  779. __IOM UARTE_RXD_Type RXD; /*!< (@ 0x00000534) RXD EasyDMA channel */
  780. __IM uint32_t RESERVED14;
  781. __IOM UARTE_TXD_Type TXD; /*!< (@ 0x00000544) TXD EasyDMA channel */
  782. __IM uint32_t RESERVED15[7];
  783. __IOM uint32_t CONFIG; /*!< (@ 0x0000056C) Configuration of parity and hardware flow control */
  784. } NRF_UARTE_Type; /*!< Size = 1392 (0x570) */
  785. /* =========================================================================================================================== */
  786. /* ================ TWI0 ================ */
  787. /* =========================================================================================================================== */
  788. /**
  789. * @brief I2C compatible Two-Wire Interface (TWI0)
  790. */
  791. typedef struct { /*!< (@ 0x40003000) TWI0 Structure */
  792. __OM uint32_t TASKS_STARTRX; /*!< (@ 0x00000000) Start TWI receive sequence */
  793. __IM uint32_t RESERVED;
  794. __OM uint32_t TASKS_STARTTX; /*!< (@ 0x00000008) Start TWI transmit sequence */
  795. __IM uint32_t RESERVED1[2];
  796. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000014) Stop TWI transaction */
  797. __IM uint32_t RESERVED2;
  798. __OM uint32_t TASKS_SUSPEND; /*!< (@ 0x0000001C) Suspend TWI transaction */
  799. __OM uint32_t TASKS_RESUME; /*!< (@ 0x00000020) Resume TWI transaction */
  800. __IM uint32_t RESERVED3[56];
  801. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) TWI stopped */
  802. __IOM uint32_t EVENTS_RXDREADY; /*!< (@ 0x00000108) TWI RXD byte received */
  803. __IM uint32_t RESERVED4[4];
  804. __IOM uint32_t EVENTS_TXDSENT; /*!< (@ 0x0000011C) TWI TXD byte sent */
  805. __IM uint32_t RESERVED5;
  806. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000124) TWI error */
  807. __IM uint32_t RESERVED6[4];
  808. __IOM uint32_t EVENTS_BB; /*!< (@ 0x00000138) TWI byte boundary, generated before each byte
  809. that is sent or received */
  810. __IM uint32_t RESERVED7[3];
  811. __IOM uint32_t EVENTS_SUSPENDED; /*!< (@ 0x00000148) TWI entered the suspended state */
  812. __IM uint32_t RESERVED8[45];
  813. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  814. __IM uint32_t RESERVED9[64];
  815. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  816. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  817. __IM uint32_t RESERVED10[110];
  818. __IOM uint32_t ERRORSRC; /*!< (@ 0x000004C4) Error source */
  819. __IM uint32_t RESERVED11[14];
  820. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable TWI */
  821. __IM uint32_t RESERVED12;
  822. __IOM TWI_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  823. __IM uint32_t RESERVED13[2];
  824. __IM uint32_t RXD; /*!< (@ 0x00000518) RXD register */
  825. __IOM uint32_t TXD; /*!< (@ 0x0000051C) TXD register */
  826. __IM uint32_t RESERVED14;
  827. __IOM uint32_t FREQUENCY; /*!< (@ 0x00000524) TWI frequency. Accuracy depends on the HFCLK
  828. source selected. */
  829. __IM uint32_t RESERVED15[24];
  830. __IOM uint32_t ADDRESS; /*!< (@ 0x00000588) Address used in the TWI transfer */
  831. } NRF_TWI_Type; /*!< Size = 1420 (0x58c) */
  832. /* =========================================================================================================================== */
  833. /* ================ TWIM0 ================ */
  834. /* =========================================================================================================================== */
  835. /**
  836. * @brief I2C compatible Two-Wire Master Interface with EasyDMA (TWIM0)
  837. */
  838. typedef struct { /*!< (@ 0x40003000) TWIM0 Structure */
  839. __OM uint32_t TASKS_STARTRX; /*!< (@ 0x00000000) Start TWI receive sequence */
  840. __IM uint32_t RESERVED;
  841. __OM uint32_t TASKS_STARTTX; /*!< (@ 0x00000008) Start TWI transmit sequence */
  842. __IM uint32_t RESERVED1[2];
  843. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000014) Stop TWI transaction. Must be issued while the
  844. TWI master is not suspended. */
  845. __IM uint32_t RESERVED2;
  846. __OM uint32_t TASKS_SUSPEND; /*!< (@ 0x0000001C) Suspend TWI transaction */
  847. __OM uint32_t TASKS_RESUME; /*!< (@ 0x00000020) Resume TWI transaction */
  848. __IM uint32_t RESERVED3[56];
  849. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) TWI stopped */
  850. __IM uint32_t RESERVED4[7];
  851. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000124) TWI error */
  852. __IM uint32_t RESERVED5[8];
  853. __IOM uint32_t EVENTS_SUSPENDED; /*!< (@ 0x00000148) Last byte has been sent out after the SUSPEND
  854. task has been issued, TWI traffic is now
  855. suspended. */
  856. __IOM uint32_t EVENTS_RXSTARTED; /*!< (@ 0x0000014C) Receive sequence started */
  857. __IOM uint32_t EVENTS_TXSTARTED; /*!< (@ 0x00000150) Transmit sequence started */
  858. __IM uint32_t RESERVED6[2];
  859. __IOM uint32_t EVENTS_LASTRX; /*!< (@ 0x0000015C) Byte boundary, starting to receive the last byte */
  860. __IOM uint32_t EVENTS_LASTTX; /*!< (@ 0x00000160) Byte boundary, starting to transmit the last
  861. byte */
  862. __IM uint32_t RESERVED7[39];
  863. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  864. __IM uint32_t RESERVED8[63];
  865. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  866. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  867. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  868. __IM uint32_t RESERVED9[110];
  869. __IOM uint32_t ERRORSRC; /*!< (@ 0x000004C4) Error source */
  870. __IM uint32_t RESERVED10[14];
  871. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable TWIM */
  872. __IM uint32_t RESERVED11;
  873. __IOM TWIM_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  874. __IM uint32_t RESERVED12[5];
  875. __IOM uint32_t FREQUENCY; /*!< (@ 0x00000524) TWI frequency. Accuracy depends on the HFCLK
  876. source selected. */
  877. __IM uint32_t RESERVED13[3];
  878. __IOM TWIM_RXD_Type RXD; /*!< (@ 0x00000534) RXD EasyDMA channel */
  879. __IOM TWIM_TXD_Type TXD; /*!< (@ 0x00000544) TXD EasyDMA channel */
  880. __IM uint32_t RESERVED14[13];
  881. __IOM uint32_t ADDRESS; /*!< (@ 0x00000588) Address used in the TWI transfer */
  882. } NRF_TWIM_Type; /*!< Size = 1420 (0x58c) */
  883. /* =========================================================================================================================== */
  884. /* ================ TWIS0 ================ */
  885. /* =========================================================================================================================== */
  886. /**
  887. * @brief I2C compatible Two-Wire Slave Interface with EasyDMA (TWIS0)
  888. */
  889. typedef struct { /*!< (@ 0x40003000) TWIS0 Structure */
  890. __IM uint32_t RESERVED[5];
  891. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000014) Stop TWI transaction */
  892. __IM uint32_t RESERVED1;
  893. __OM uint32_t TASKS_SUSPEND; /*!< (@ 0x0000001C) Suspend TWI transaction */
  894. __OM uint32_t TASKS_RESUME; /*!< (@ 0x00000020) Resume TWI transaction */
  895. __IM uint32_t RESERVED2[3];
  896. __OM uint32_t TASKS_PREPARERX; /*!< (@ 0x00000030) Prepare the TWI slave to respond to a write command */
  897. __OM uint32_t TASKS_PREPARETX; /*!< (@ 0x00000034) Prepare the TWI slave to respond to a read command */
  898. __IM uint32_t RESERVED3[51];
  899. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) TWI stopped */
  900. __IM uint32_t RESERVED4[7];
  901. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000124) TWI error */
  902. __IM uint32_t RESERVED5[9];
  903. __IOM uint32_t EVENTS_RXSTARTED; /*!< (@ 0x0000014C) Receive sequence started */
  904. __IOM uint32_t EVENTS_TXSTARTED; /*!< (@ 0x00000150) Transmit sequence started */
  905. __IM uint32_t RESERVED6[4];
  906. __IOM uint32_t EVENTS_WRITE; /*!< (@ 0x00000164) Write command received */
  907. __IOM uint32_t EVENTS_READ; /*!< (@ 0x00000168) Read command received */
  908. __IM uint32_t RESERVED7[37];
  909. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  910. __IM uint32_t RESERVED8[63];
  911. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  912. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  913. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  914. __IM uint32_t RESERVED9[113];
  915. __IOM uint32_t ERRORSRC; /*!< (@ 0x000004D0) Error source */
  916. __IM uint32_t MATCH; /*!< (@ 0x000004D4) Status register indicating which address had
  917. a match */
  918. __IM uint32_t RESERVED10[10];
  919. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable TWIS */
  920. __IM uint32_t RESERVED11;
  921. __IOM TWIS_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  922. __IM uint32_t RESERVED12[9];
  923. __IOM TWIS_RXD_Type RXD; /*!< (@ 0x00000534) RXD EasyDMA channel */
  924. __IOM TWIS_TXD_Type TXD; /*!< (@ 0x00000544) TXD EasyDMA channel */
  925. __IM uint32_t RESERVED13[13];
  926. __IOM uint32_t ADDRESS[2]; /*!< (@ 0x00000588) Description collection: TWI slave address n */
  927. __IM uint32_t RESERVED14;
  928. __IOM uint32_t CONFIG; /*!< (@ 0x00000594) Configuration register for the address match
  929. mechanism */
  930. __IM uint32_t RESERVED15[10];
  931. __IOM uint32_t ORC; /*!< (@ 0x000005C0) Over-read character. Character sent out in case
  932. of an over-read of the transmit buffer. */
  933. } NRF_TWIS_Type; /*!< Size = 1476 (0x5c4) */
  934. /* =========================================================================================================================== */
  935. /* ================ SPI0 ================ */
  936. /* =========================================================================================================================== */
  937. /**
  938. * @brief Serial Peripheral Interface (SPI0)
  939. */
  940. typedef struct { /*!< (@ 0x40004000) SPI0 Structure */
  941. __IM uint32_t RESERVED[66];
  942. __IOM uint32_t EVENTS_READY; /*!< (@ 0x00000108) TXD byte sent and RXD byte received */
  943. __IM uint32_t RESERVED1[126];
  944. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  945. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  946. __IM uint32_t RESERVED2[125];
  947. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable SPI */
  948. __IM uint32_t RESERVED3;
  949. __IOM SPI_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  950. __IM uint32_t RESERVED4;
  951. __IM uint32_t RXD; /*!< (@ 0x00000518) RXD register */
  952. __IOM uint32_t TXD; /*!< (@ 0x0000051C) TXD register */
  953. __IM uint32_t RESERVED5;
  954. __IOM uint32_t FREQUENCY; /*!< (@ 0x00000524) SPI frequency. Accuracy depends on the HFCLK
  955. source selected. */
  956. __IM uint32_t RESERVED6[11];
  957. __IOM uint32_t CONFIG; /*!< (@ 0x00000554) Configuration register */
  958. } NRF_SPI_Type; /*!< Size = 1368 (0x558) */
  959. /* =========================================================================================================================== */
  960. /* ================ SPIM0 ================ */
  961. /* =========================================================================================================================== */
  962. /**
  963. * @brief Serial Peripheral Interface Master with EasyDMA (SPIM0)
  964. */
  965. typedef struct { /*!< (@ 0x40004000) SPIM0 Structure */
  966. __IM uint32_t RESERVED[4];
  967. __OM uint32_t TASKS_START; /*!< (@ 0x00000010) Start SPI transaction */
  968. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000014) Stop SPI transaction */
  969. __IM uint32_t RESERVED1;
  970. __OM uint32_t TASKS_SUSPEND; /*!< (@ 0x0000001C) Suspend SPI transaction */
  971. __OM uint32_t TASKS_RESUME; /*!< (@ 0x00000020) Resume SPI transaction */
  972. __IM uint32_t RESERVED2[56];
  973. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) SPI transaction has stopped */
  974. __IM uint32_t RESERVED3[2];
  975. __IOM uint32_t EVENTS_ENDRX; /*!< (@ 0x00000110) End of RXD buffer reached */
  976. __IM uint32_t RESERVED4;
  977. __IOM uint32_t EVENTS_END; /*!< (@ 0x00000118) End of RXD buffer and TXD buffer reached */
  978. __IM uint32_t RESERVED5;
  979. __IOM uint32_t EVENTS_ENDTX; /*!< (@ 0x00000120) End of TXD buffer reached */
  980. __IM uint32_t RESERVED6[10];
  981. __IOM uint32_t EVENTS_STARTED; /*!< (@ 0x0000014C) Transaction started */
  982. __IM uint32_t RESERVED7[44];
  983. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  984. __IM uint32_t RESERVED8[64];
  985. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  986. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  987. __IM uint32_t RESERVED9[125];
  988. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable SPIM */
  989. __IM uint32_t RESERVED10;
  990. __IOM SPIM_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  991. __IM uint32_t RESERVED11[4];
  992. __IOM uint32_t FREQUENCY; /*!< (@ 0x00000524) SPI frequency. Accuracy depends on the HFCLK
  993. source selected. */
  994. __IM uint32_t RESERVED12[3];
  995. __IOM SPIM_RXD_Type RXD; /*!< (@ 0x00000534) RXD EasyDMA channel */
  996. __IOM SPIM_TXD_Type TXD; /*!< (@ 0x00000544) TXD EasyDMA channel */
  997. __IOM uint32_t CONFIG; /*!< (@ 0x00000554) Configuration register */
  998. __IM uint32_t RESERVED13[26];
  999. __IOM uint32_t ORC; /*!< (@ 0x000005C0) Over-read character. Character clocked out in
  1000. case and over-read of the TXD buffer. */
  1001. } NRF_SPIM_Type; /*!< Size = 1476 (0x5c4) */
  1002. /* =========================================================================================================================== */
  1003. /* ================ SPIS0 ================ */
  1004. /* =========================================================================================================================== */
  1005. /**
  1006. * @brief SPI Slave (SPIS0)
  1007. */
  1008. typedef struct { /*!< (@ 0x40004000) SPIS0 Structure */
  1009. __IM uint32_t RESERVED[9];
  1010. __OM uint32_t TASKS_ACQUIRE; /*!< (@ 0x00000024) Acquire SPI semaphore */
  1011. __OM uint32_t TASKS_RELEASE; /*!< (@ 0x00000028) Release SPI semaphore, enabling the SPI slave
  1012. to acquire it */
  1013. __IM uint32_t RESERVED1[54];
  1014. __IOM uint32_t EVENTS_END; /*!< (@ 0x00000104) Granted transaction completed */
  1015. __IM uint32_t RESERVED2[2];
  1016. __IOM uint32_t EVENTS_ENDRX; /*!< (@ 0x00000110) End of RXD buffer reached */
  1017. __IM uint32_t RESERVED3[5];
  1018. __IOM uint32_t EVENTS_ACQUIRED; /*!< (@ 0x00000128) Semaphore acquired */
  1019. __IM uint32_t RESERVED4[53];
  1020. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1021. __IM uint32_t RESERVED5[64];
  1022. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1023. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1024. __IM uint32_t RESERVED6[61];
  1025. __IM uint32_t SEMSTAT; /*!< (@ 0x00000400) Semaphore status register */
  1026. __IM uint32_t RESERVED7[15];
  1027. __IOM uint32_t STATUS; /*!< (@ 0x00000440) Status from last transaction */
  1028. __IM uint32_t RESERVED8[47];
  1029. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable SPI slave */
  1030. __IM uint32_t RESERVED9;
  1031. __IOM SPIS_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  1032. __IM uint32_t RESERVED10[7];
  1033. __IOM SPIS_RXD_Type RXD; /*!< (@ 0x00000534) Unspecified */
  1034. __IOM SPIS_TXD_Type TXD; /*!< (@ 0x00000544) Unspecified */
  1035. __IOM uint32_t CONFIG; /*!< (@ 0x00000554) Configuration register */
  1036. __IM uint32_t RESERVED11;
  1037. __IOM uint32_t DEF; /*!< (@ 0x0000055C) Default character. Character clocked out in case
  1038. of an ignored transaction. */
  1039. __IM uint32_t RESERVED12[24];
  1040. __IOM uint32_t ORC; /*!< (@ 0x000005C0) Over-read character */
  1041. } NRF_SPIS_Type; /*!< Size = 1476 (0x5c4) */
  1042. /* =========================================================================================================================== */
  1043. /* ================ GPIOTE ================ */
  1044. /* =========================================================================================================================== */
  1045. /**
  1046. * @brief GPIO Tasks and Events (GPIOTE)
  1047. */
  1048. typedef struct { /*!< (@ 0x40006000) GPIOTE Structure */
  1049. __OM uint32_t TASKS_OUT[8]; /*!< (@ 0x00000000) Description collection: Task for writing to pin
  1050. specified in CONFIG[n].PSEL. Action on pin
  1051. is configured in CONFIG[n].POLARITY. */
  1052. __IM uint32_t RESERVED[4];
  1053. __OM uint32_t TASKS_SET[8]; /*!< (@ 0x00000030) Description collection: Task for writing to pin
  1054. specified in CONFIG[n].PSEL. Action on pin
  1055. is to set it high. */
  1056. __IM uint32_t RESERVED1[4];
  1057. __OM uint32_t TASKS_CLR[8]; /*!< (@ 0x00000060) Description collection: Task for writing to pin
  1058. specified in CONFIG[n].PSEL. Action on pin
  1059. is to set it low. */
  1060. __IM uint32_t RESERVED2[32];
  1061. __IOM uint32_t EVENTS_IN[8]; /*!< (@ 0x00000100) Description collection: Event generated from
  1062. pin specified in CONFIG[n].PSEL */
  1063. __IM uint32_t RESERVED3[23];
  1064. __IOM uint32_t EVENTS_PORT; /*!< (@ 0x0000017C) Event generated from multiple input GPIO pins
  1065. with SENSE mechanism enabled */
  1066. __IM uint32_t RESERVED4[97];
  1067. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1068. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1069. __IM uint32_t RESERVED5[129];
  1070. __IOM uint32_t CONFIG[8]; /*!< (@ 0x00000510) Description collection: Configuration for OUT[n],
  1071. SET[n] and CLR[n] tasks and IN[n] event */
  1072. } NRF_GPIOTE_Type; /*!< Size = 1328 (0x530) */
  1073. /* =========================================================================================================================== */
  1074. /* ================ SAADC ================ */
  1075. /* =========================================================================================================================== */
  1076. /**
  1077. * @brief Analog to Digital Converter (SAADC)
  1078. */
  1079. typedef struct { /*!< (@ 0x40007000) SAADC Structure */
  1080. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start the ADC and prepare the result buffer in
  1081. RAM */
  1082. __OM uint32_t TASKS_SAMPLE; /*!< (@ 0x00000004) Take one ADC sample, if scan is enabled all channels
  1083. are sampled */
  1084. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000008) Stop the ADC and terminate any on-going conversion */
  1085. __OM uint32_t TASKS_CALIBRATEOFFSET; /*!< (@ 0x0000000C) Starts offset auto-calibration */
  1086. __IM uint32_t RESERVED[60];
  1087. __IOM uint32_t EVENTS_STARTED; /*!< (@ 0x00000100) The ADC has started */
  1088. __IOM uint32_t EVENTS_END; /*!< (@ 0x00000104) The ADC has filled up the Result buffer */
  1089. __IOM uint32_t EVENTS_DONE; /*!< (@ 0x00000108) A conversion task has been completed. Depending
  1090. on the mode, multiple conversions might
  1091. be needed for a result to be transferred
  1092. to RAM. */
  1093. __IOM uint32_t EVENTS_RESULTDONE; /*!< (@ 0x0000010C) A result is ready to get transferred to RAM. */
  1094. __IOM uint32_t EVENTS_CALIBRATEDONE; /*!< (@ 0x00000110) Calibration is complete */
  1095. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000114) The ADC has stopped */
  1096. __IOM SAADC_EVENTS_CH_Type EVENTS_CH[8]; /*!< (@ 0x00000118) Peripheral events. */
  1097. __IM uint32_t RESERVED1[106];
  1098. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1099. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1100. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1101. __IM uint32_t RESERVED2[61];
  1102. __IM uint32_t STATUS; /*!< (@ 0x00000400) Status */
  1103. __IM uint32_t RESERVED3[63];
  1104. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable or disable ADC */
  1105. __IM uint32_t RESERVED4[3];
  1106. __IOM SAADC_CH_Type CH[8]; /*!< (@ 0x00000510) Unspecified */
  1107. __IM uint32_t RESERVED5[24];
  1108. __IOM uint32_t RESOLUTION; /*!< (@ 0x000005F0) Resolution configuration */
  1109. __IOM uint32_t OVERSAMPLE; /*!< (@ 0x000005F4) Oversampling configuration. OVERSAMPLE should
  1110. not be combined with SCAN. The RESOLUTION
  1111. is applied before averaging, thus for high
  1112. OVERSAMPLE a higher RESOLUTION should be
  1113. used. */
  1114. __IOM uint32_t SAMPLERATE; /*!< (@ 0x000005F8) Controls normal or continuous sample rate */
  1115. __IM uint32_t RESERVED6[12];
  1116. __IOM SAADC_RESULT_Type RESULT; /*!< (@ 0x0000062C) RESULT EasyDMA channel */
  1117. } NRF_SAADC_Type; /*!< Size = 1592 (0x638) */
  1118. /* =========================================================================================================================== */
  1119. /* ================ TIMER0 ================ */
  1120. /* =========================================================================================================================== */
  1121. /**
  1122. * @brief Timer/Counter 0 (TIMER0)
  1123. */
  1124. typedef struct { /*!< (@ 0x40008000) TIMER0 Structure */
  1125. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start Timer */
  1126. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stop Timer */
  1127. __OM uint32_t TASKS_COUNT; /*!< (@ 0x00000008) Increment Timer (Counter mode only) */
  1128. __OM uint32_t TASKS_CLEAR; /*!< (@ 0x0000000C) Clear time */
  1129. __OM uint32_t TASKS_SHUTDOWN; /*!< (@ 0x00000010) Deprecated register - Shut down timer */
  1130. __IM uint32_t RESERVED[11];
  1131. __OM uint32_t TASKS_CAPTURE[6]; /*!< (@ 0x00000040) Description collection: Capture Timer value to
  1132. CC[n] register */
  1133. __IM uint32_t RESERVED1[58];
  1134. __IOM uint32_t EVENTS_COMPARE[6]; /*!< (@ 0x00000140) Description collection: Compare event on CC[n]
  1135. match */
  1136. __IM uint32_t RESERVED2[42];
  1137. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1138. __IM uint32_t RESERVED3[64];
  1139. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1140. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1141. __IM uint32_t RESERVED4[126];
  1142. __IOM uint32_t MODE; /*!< (@ 0x00000504) Timer mode selection */
  1143. __IOM uint32_t BITMODE; /*!< (@ 0x00000508) Configure the number of bits used by the TIMER */
  1144. __IM uint32_t RESERVED5;
  1145. __IOM uint32_t PRESCALER; /*!< (@ 0x00000510) Timer prescaler register */
  1146. __IM uint32_t RESERVED6[11];
  1147. __IOM uint32_t CC[6]; /*!< (@ 0x00000540) Description collection: Capture/Compare register
  1148. n */
  1149. } NRF_TIMER_Type; /*!< Size = 1368 (0x558) */
  1150. /* =========================================================================================================================== */
  1151. /* ================ RTC0 ================ */
  1152. /* =========================================================================================================================== */
  1153. /**
  1154. * @brief Real time counter 0 (RTC0)
  1155. */
  1156. typedef struct { /*!< (@ 0x4000B000) RTC0 Structure */
  1157. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start RTC COUNTER */
  1158. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stop RTC COUNTER */
  1159. __OM uint32_t TASKS_CLEAR; /*!< (@ 0x00000008) Clear RTC COUNTER */
  1160. __OM uint32_t TASKS_TRIGOVRFLW; /*!< (@ 0x0000000C) Set COUNTER to 0xFFFFF0 */
  1161. __IM uint32_t RESERVED[60];
  1162. __IOM uint32_t EVENTS_TICK; /*!< (@ 0x00000100) Event on COUNTER increment */
  1163. __IOM uint32_t EVENTS_OVRFLW; /*!< (@ 0x00000104) Event on COUNTER overflow */
  1164. __IM uint32_t RESERVED1[14];
  1165. __IOM uint32_t EVENTS_COMPARE[4]; /*!< (@ 0x00000140) Description collection: Compare event on CC[n]
  1166. match */
  1167. __IM uint32_t RESERVED2[109];
  1168. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1169. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1170. __IM uint32_t RESERVED3[13];
  1171. __IOM uint32_t EVTEN; /*!< (@ 0x00000340) Enable or disable event routing */
  1172. __IOM uint32_t EVTENSET; /*!< (@ 0x00000344) Enable event routing */
  1173. __IOM uint32_t EVTENCLR; /*!< (@ 0x00000348) Disable event routing */
  1174. __IM uint32_t RESERVED4[110];
  1175. __IM uint32_t COUNTER; /*!< (@ 0x00000504) Current COUNTER value */
  1176. __IOM uint32_t PRESCALER; /*!< (@ 0x00000508) 12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Mu
  1177. t be written when RTC is stopped */
  1178. __IM uint32_t RESERVED5[13];
  1179. __IOM uint32_t CC[4]; /*!< (@ 0x00000540) Description collection: Compare register n */
  1180. } NRF_RTC_Type; /*!< Size = 1360 (0x550) */
  1181. /* =========================================================================================================================== */
  1182. /* ================ TEMP ================ */
  1183. /* =========================================================================================================================== */
  1184. /**
  1185. * @brief Temperature Sensor (TEMP)
  1186. */
  1187. typedef struct { /*!< (@ 0x4000C000) TEMP Structure */
  1188. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start temperature measurement */
  1189. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stop temperature measurement */
  1190. __IM uint32_t RESERVED[62];
  1191. __IOM uint32_t EVENTS_DATARDY; /*!< (@ 0x00000100) Temperature measurement complete, data ready */
  1192. __IM uint32_t RESERVED1[128];
  1193. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1194. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1195. __IM uint32_t RESERVED2[127];
  1196. __IM int32_t TEMP; /*!< (@ 0x00000508) Temperature in degC (0.25deg steps) */
  1197. __IM uint32_t RESERVED3[5];
  1198. __IOM uint32_t A0; /*!< (@ 0x00000520) Slope of 1st piece wise linear function */
  1199. __IOM uint32_t A1; /*!< (@ 0x00000524) Slope of 2nd piece wise linear function */
  1200. __IOM uint32_t A2; /*!< (@ 0x00000528) Slope of 3rd piece wise linear function */
  1201. __IOM uint32_t A3; /*!< (@ 0x0000052C) Slope of 4th piece wise linear function */
  1202. __IOM uint32_t A4; /*!< (@ 0x00000530) Slope of 5th piece wise linear function */
  1203. __IOM uint32_t A5; /*!< (@ 0x00000534) Slope of 6th piece wise linear function */
  1204. __IM uint32_t RESERVED4[2];
  1205. __IOM uint32_t B0; /*!< (@ 0x00000540) y-intercept of 1st piece wise linear function */
  1206. __IOM uint32_t B1; /*!< (@ 0x00000544) y-intercept of 2nd piece wise linear function */
  1207. __IOM uint32_t B2; /*!< (@ 0x00000548) y-intercept of 3rd piece wise linear function */
  1208. __IOM uint32_t B3; /*!< (@ 0x0000054C) y-intercept of 4th piece wise linear function */
  1209. __IOM uint32_t B4; /*!< (@ 0x00000550) y-intercept of 5th piece wise linear function */
  1210. __IOM uint32_t B5; /*!< (@ 0x00000554) y-intercept of 6th piece wise linear function */
  1211. __IM uint32_t RESERVED5[2];
  1212. __IOM uint32_t T0; /*!< (@ 0x00000560) End point of 1st piece wise linear function */
  1213. __IOM uint32_t T1; /*!< (@ 0x00000564) End point of 2nd piece wise linear function */
  1214. __IOM uint32_t T2; /*!< (@ 0x00000568) End point of 3rd piece wise linear function */
  1215. __IOM uint32_t T3; /*!< (@ 0x0000056C) End point of 4th piece wise linear function */
  1216. __IOM uint32_t T4; /*!< (@ 0x00000570) End point of 5th piece wise linear function */
  1217. } NRF_TEMP_Type; /*!< Size = 1396 (0x574) */
  1218. /* =========================================================================================================================== */
  1219. /* ================ RNG ================ */
  1220. /* =========================================================================================================================== */
  1221. /**
  1222. * @brief Random Number Generator (RNG)
  1223. */
  1224. typedef struct { /*!< (@ 0x4000D000) RNG Structure */
  1225. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Task starting the random number generator */
  1226. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Task stopping the random number generator */
  1227. __IM uint32_t RESERVED[62];
  1228. __IOM uint32_t EVENTS_VALRDY; /*!< (@ 0x00000100) Event being generated for every new random number
  1229. written to the VALUE register */
  1230. __IM uint32_t RESERVED1[63];
  1231. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1232. __IM uint32_t RESERVED2[64];
  1233. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1234. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1235. __IM uint32_t RESERVED3[126];
  1236. __IOM uint32_t CONFIG; /*!< (@ 0x00000504) Configuration register */
  1237. __IM uint32_t VALUE; /*!< (@ 0x00000508) Output random number */
  1238. } NRF_RNG_Type; /*!< Size = 1292 (0x50c) */
  1239. /* =========================================================================================================================== */
  1240. /* ================ ECB ================ */
  1241. /* =========================================================================================================================== */
  1242. /**
  1243. * @brief AES ECB Mode Encryption (ECB)
  1244. */
  1245. typedef struct { /*!< (@ 0x4000E000) ECB Structure */
  1246. __OM uint32_t TASKS_STARTECB; /*!< (@ 0x00000000) Start ECB block encrypt */
  1247. __OM uint32_t TASKS_STOPECB; /*!< (@ 0x00000004) Abort a possible executing ECB operation */
  1248. __IM uint32_t RESERVED[62];
  1249. __IOM uint32_t EVENTS_ENDECB; /*!< (@ 0x00000100) ECB block encrypt complete */
  1250. __IOM uint32_t EVENTS_ERRORECB; /*!< (@ 0x00000104) ECB block encrypt aborted because of a STOPECB
  1251. task or due to an error */
  1252. __IM uint32_t RESERVED1[127];
  1253. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1254. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1255. __IM uint32_t RESERVED2[126];
  1256. __IOM uint32_t ECBDATAPTR; /*!< (@ 0x00000504) ECB block encrypt memory pointers */
  1257. } NRF_ECB_Type; /*!< Size = 1288 (0x508) */
  1258. /* =========================================================================================================================== */
  1259. /* ================ AAR ================ */
  1260. /* =========================================================================================================================== */
  1261. /**
  1262. * @brief Accelerated Address Resolver (AAR)
  1263. */
  1264. typedef struct { /*!< (@ 0x4000F000) AAR Structure */
  1265. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start resolving addresses based on IRKs specified
  1266. in the IRK data structure */
  1267. __IM uint32_t RESERVED;
  1268. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000008) Stop resolving addresses */
  1269. __IM uint32_t RESERVED1[61];
  1270. __IOM uint32_t EVENTS_END; /*!< (@ 0x00000100) Address resolution procedure complete */
  1271. __IOM uint32_t EVENTS_RESOLVED; /*!< (@ 0x00000104) Address resolved */
  1272. __IOM uint32_t EVENTS_NOTRESOLVED; /*!< (@ 0x00000108) Address not resolved */
  1273. __IM uint32_t RESERVED2[126];
  1274. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1275. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1276. __IM uint32_t RESERVED3[61];
  1277. __IM uint32_t STATUS; /*!< (@ 0x00000400) Resolution status */
  1278. __IM uint32_t RESERVED4[63];
  1279. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable AAR */
  1280. __IOM uint32_t NIRK; /*!< (@ 0x00000504) Number of IRKs */
  1281. __IOM uint32_t IRKPTR; /*!< (@ 0x00000508) Pointer to IRK data structure */
  1282. __IM uint32_t RESERVED5;
  1283. __IOM uint32_t ADDRPTR; /*!< (@ 0x00000510) Pointer to the resolvable address */
  1284. __IOM uint32_t SCRATCHPTR; /*!< (@ 0x00000514) Pointer to data area used for temporary storage */
  1285. } NRF_AAR_Type; /*!< Size = 1304 (0x518) */
  1286. /* =========================================================================================================================== */
  1287. /* ================ CCM ================ */
  1288. /* =========================================================================================================================== */
  1289. /**
  1290. * @brief AES CCM Mode Encryption (CCM)
  1291. */
  1292. typedef struct { /*!< (@ 0x4000F000) CCM Structure */
  1293. __OM uint32_t TASKS_KSGEN; /*!< (@ 0x00000000) Start generation of key-stream. This operation
  1294. will stop by itself when completed. */
  1295. __OM uint32_t TASKS_CRYPT; /*!< (@ 0x00000004) Start encryption/decryption. This operation will
  1296. stop by itself when completed. */
  1297. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000008) Stop encryption/decryption */
  1298. __OM uint32_t TASKS_RATEOVERRIDE; /*!< (@ 0x0000000C) Override DATARATE setting in MODE register with
  1299. the contents of the RATEOVERRIDE register
  1300. for any ongoing encryption/decryption */
  1301. __IM uint32_t RESERVED[60];
  1302. __IOM uint32_t EVENTS_ENDKSGEN; /*!< (@ 0x00000100) Key-stream generation complete */
  1303. __IOM uint32_t EVENTS_ENDCRYPT; /*!< (@ 0x00000104) Encrypt/decrypt complete */
  1304. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000108) Deprecated register - CCM error event */
  1305. __IM uint32_t RESERVED1[61];
  1306. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1307. __IM uint32_t RESERVED2[64];
  1308. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1309. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1310. __IM uint32_t RESERVED3[61];
  1311. __IM uint32_t MICSTATUS; /*!< (@ 0x00000400) MIC check result */
  1312. __IM uint32_t RESERVED4[63];
  1313. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable */
  1314. __IOM uint32_t MODE; /*!< (@ 0x00000504) Operation mode */
  1315. __IOM uint32_t CNFPTR; /*!< (@ 0x00000508) Pointer to data structure holding AES key and
  1316. NONCE vector */
  1317. __IOM uint32_t INPTR; /*!< (@ 0x0000050C) Input pointer */
  1318. __IOM uint32_t OUTPTR; /*!< (@ 0x00000510) Output pointer */
  1319. __IOM uint32_t SCRATCHPTR; /*!< (@ 0x00000514) Pointer to data area used for temporary storage */
  1320. __IOM uint32_t MAXPACKETSIZE; /*!< (@ 0x00000518) Length of key-stream generated when MODE.LENGTH
  1321. = Extended. */
  1322. __IOM uint32_t RATEOVERRIDE; /*!< (@ 0x0000051C) Data rate override setting. */
  1323. } NRF_CCM_Type; /*!< Size = 1312 (0x520) */
  1324. /* =========================================================================================================================== */
  1325. /* ================ WDT ================ */
  1326. /* =========================================================================================================================== */
  1327. /**
  1328. * @brief Watchdog Timer (WDT)
  1329. */
  1330. typedef struct { /*!< (@ 0x40010000) WDT Structure */
  1331. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start the watchdog */
  1332. __IM uint32_t RESERVED[63];
  1333. __IOM uint32_t EVENTS_TIMEOUT; /*!< (@ 0x00000100) Watchdog timeout */
  1334. __IM uint32_t RESERVED1[128];
  1335. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1336. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1337. __IM uint32_t RESERVED2[61];
  1338. __IM uint32_t RUNSTATUS; /*!< (@ 0x00000400) Run status */
  1339. __IM uint32_t REQSTATUS; /*!< (@ 0x00000404) Request status */
  1340. __IM uint32_t RESERVED3[63];
  1341. __IOM uint32_t CRV; /*!< (@ 0x00000504) Counter reload value */
  1342. __IOM uint32_t RREN; /*!< (@ 0x00000508) Enable register for reload request registers */
  1343. __IOM uint32_t CONFIG; /*!< (@ 0x0000050C) Configuration register */
  1344. __IM uint32_t RESERVED4[60];
  1345. __OM uint32_t RR[8]; /*!< (@ 0x00000600) Description collection: Reload request n */
  1346. } NRF_WDT_Type; /*!< Size = 1568 (0x620) */
  1347. /* =========================================================================================================================== */
  1348. /* ================ QDEC ================ */
  1349. /* =========================================================================================================================== */
  1350. /**
  1351. * @brief Quadrature Decoder (QDEC)
  1352. */
  1353. typedef struct { /*!< (@ 0x40012000) QDEC Structure */
  1354. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Task starting the quadrature decoder */
  1355. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Task stopping the quadrature decoder */
  1356. __OM uint32_t TASKS_READCLRACC; /*!< (@ 0x00000008) Read and clear ACC and ACCDBL */
  1357. __OM uint32_t TASKS_RDCLRACC; /*!< (@ 0x0000000C) Read and clear ACC */
  1358. __OM uint32_t TASKS_RDCLRDBL; /*!< (@ 0x00000010) Read and clear ACCDBL */
  1359. __IM uint32_t RESERVED[59];
  1360. __IOM uint32_t EVENTS_SAMPLERDY; /*!< (@ 0x00000100) Event being generated for every new sample value
  1361. written to the SAMPLE register */
  1362. __IOM uint32_t EVENTS_REPORTRDY; /*!< (@ 0x00000104) Non-null report ready */
  1363. __IOM uint32_t EVENTS_ACCOF; /*!< (@ 0x00000108) ACC or ACCDBL register overflow */
  1364. __IOM uint32_t EVENTS_DBLRDY; /*!< (@ 0x0000010C) Double displacement(s) detected */
  1365. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000110) QDEC has been stopped */
  1366. __IM uint32_t RESERVED1[59];
  1367. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1368. __IM uint32_t RESERVED2[64];
  1369. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1370. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1371. __IM uint32_t RESERVED3[125];
  1372. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable the quadrature decoder */
  1373. __IOM uint32_t LEDPOL; /*!< (@ 0x00000504) LED output pin polarity */
  1374. __IOM uint32_t SAMPLEPER; /*!< (@ 0x00000508) Sample period */
  1375. __IM int32_t SAMPLE; /*!< (@ 0x0000050C) Motion sample value */
  1376. __IOM uint32_t REPORTPER; /*!< (@ 0x00000510) Number of samples to be taken before REPORTRDY
  1377. and DBLRDY events can be generated */
  1378. __IM int32_t ACC; /*!< (@ 0x00000514) Register accumulating the valid transitions */
  1379. __IM int32_t ACCREAD; /*!< (@ 0x00000518) Snapshot of the ACC register, updated by the
  1380. READCLRACC or RDCLRACC task */
  1381. __IOM QDEC_PSEL_Type PSEL; /*!< (@ 0x0000051C) Unspecified */
  1382. __IOM uint32_t DBFEN; /*!< (@ 0x00000528) Enable input debounce filters */
  1383. __IM uint32_t RESERVED4[5];
  1384. __IOM uint32_t LEDPRE; /*!< (@ 0x00000540) Time period the LED is switched ON prior to sampling */
  1385. __IM uint32_t ACCDBL; /*!< (@ 0x00000544) Register accumulating the number of detected
  1386. double transitions */
  1387. __IM uint32_t ACCDBLREAD; /*!< (@ 0x00000548) Snapshot of the ACCDBL, updated by the READCLRACC
  1388. or RDCLRDBL task */
  1389. } NRF_QDEC_Type; /*!< Size = 1356 (0x54c) */
  1390. /* =========================================================================================================================== */
  1391. /* ================ COMP ================ */
  1392. /* =========================================================================================================================== */
  1393. /**
  1394. * @brief Comparator (COMP)
  1395. */
  1396. typedef struct { /*!< (@ 0x40013000) COMP Structure */
  1397. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start comparator */
  1398. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stop comparator */
  1399. __OM uint32_t TASKS_SAMPLE; /*!< (@ 0x00000008) Sample comparator value */
  1400. __IM uint32_t RESERVED[61];
  1401. __IOM uint32_t EVENTS_READY; /*!< (@ 0x00000100) COMP is ready and output is valid */
  1402. __IOM uint32_t EVENTS_DOWN; /*!< (@ 0x00000104) Downward crossing */
  1403. __IOM uint32_t EVENTS_UP; /*!< (@ 0x00000108) Upward crossing */
  1404. __IOM uint32_t EVENTS_CROSS; /*!< (@ 0x0000010C) Downward or upward crossing */
  1405. __IM uint32_t RESERVED1[60];
  1406. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1407. __IM uint32_t RESERVED2[63];
  1408. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1409. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1410. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1411. __IM uint32_t RESERVED3[61];
  1412. __IM uint32_t RESULT; /*!< (@ 0x00000400) Compare result */
  1413. __IM uint32_t RESERVED4[63];
  1414. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) COMP enable */
  1415. __IOM uint32_t PSEL; /*!< (@ 0x00000504) Pin select */
  1416. __IOM uint32_t REFSEL; /*!< (@ 0x00000508) Reference source select for single-ended mode */
  1417. __IOM uint32_t EXTREFSEL; /*!< (@ 0x0000050C) External reference select */
  1418. __IM uint32_t RESERVED5[8];
  1419. __IOM uint32_t TH; /*!< (@ 0x00000530) Threshold configuration for hysteresis unit */
  1420. __IOM uint32_t MODE; /*!< (@ 0x00000534) Mode configuration */
  1421. __IOM uint32_t HYST; /*!< (@ 0x00000538) Comparator hysteresis enable */
  1422. } NRF_COMP_Type; /*!< Size = 1340 (0x53c) */
  1423. /* =========================================================================================================================== */
  1424. /* ================ EGU0 ================ */
  1425. /* =========================================================================================================================== */
  1426. /**
  1427. * @brief Event Generator Unit 0 (EGU0)
  1428. */
  1429. typedef struct { /*!< (@ 0x40014000) EGU0 Structure */
  1430. __OM uint32_t TASKS_TRIGGER[16]; /*!< (@ 0x00000000) Description collection: Trigger n for triggering
  1431. the corresponding TRIGGERED[n] event */
  1432. __IM uint32_t RESERVED[48];
  1433. __IOM uint32_t EVENTS_TRIGGERED[16]; /*!< (@ 0x00000100) Description collection: Event number n generated
  1434. by triggering the corresponding TRIGGER[n]
  1435. task */
  1436. __IM uint32_t RESERVED1[112];
  1437. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1438. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1439. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1440. } NRF_EGU_Type; /*!< Size = 780 (0x30c) */
  1441. /* =========================================================================================================================== */
  1442. /* ================ SWI0 ================ */
  1443. /* =========================================================================================================================== */
  1444. /**
  1445. * @brief Software interrupt 0 (SWI0)
  1446. */
  1447. typedef struct { /*!< (@ 0x40014000) SWI0 Structure */
  1448. __IM uint32_t UNUSED; /*!< (@ 0x00000000) Unused. */
  1449. } NRF_SWI_Type; /*!< Size = 4 (0x4) */
  1450. /* =========================================================================================================================== */
  1451. /* ================ PWM0 ================ */
  1452. /* =========================================================================================================================== */
  1453. /**
  1454. * @brief Pulse width modulation unit (PWM0)
  1455. */
  1456. typedef struct { /*!< (@ 0x4001C000) PWM0 Structure */
  1457. __IM uint32_t RESERVED;
  1458. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stops PWM pulse generation on all channels at
  1459. the end of current PWM period, and stops
  1460. sequence playback */
  1461. __OM uint32_t TASKS_SEQSTART[2]; /*!< (@ 0x00000008) Description collection: Loads the first PWM value
  1462. on all enabled channels from sequence n,
  1463. and starts playing that sequence at the
  1464. rate defined in SEQ[n]REFRESH and/or DECODER.MODE.
  1465. Causes PWM generation to start if not running. */
  1466. __OM uint32_t TASKS_NEXTSTEP; /*!< (@ 0x00000010) Steps by one value in the current sequence on
  1467. all enabled channels if DECODER.MODE=NextStep.
  1468. Does not cause PWM generation to start if
  1469. not running. */
  1470. __IM uint32_t RESERVED1[60];
  1471. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) Response to STOP task, emitted when PWM pulses
  1472. are no longer generated */
  1473. __IOM uint32_t EVENTS_SEQSTARTED[2]; /*!< (@ 0x00000108) Description collection: First PWM period started
  1474. on sequence n */
  1475. __IOM uint32_t EVENTS_SEQEND[2]; /*!< (@ 0x00000110) Description collection: Emitted at end of every
  1476. sequence n, when last value from RAM has
  1477. been applied to wave counter */
  1478. __IOM uint32_t EVENTS_PWMPERIODEND; /*!< (@ 0x00000118) Emitted at the end of each PWM period */
  1479. __IOM uint32_t EVENTS_LOOPSDONE; /*!< (@ 0x0000011C) Concatenated sequences have been played the amount
  1480. of times defined in LOOP.CNT */
  1481. __IM uint32_t RESERVED2[56];
  1482. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1483. __IM uint32_t RESERVED3[63];
  1484. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1485. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1486. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1487. __IM uint32_t RESERVED4[125];
  1488. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) PWM module enable register */
  1489. __IOM uint32_t MODE; /*!< (@ 0x00000504) Selects operating mode of the wave counter */
  1490. __IOM uint32_t COUNTERTOP; /*!< (@ 0x00000508) Value up to which the pulse generator counter
  1491. counts */
  1492. __IOM uint32_t PRESCALER; /*!< (@ 0x0000050C) Configuration for PWM_CLK */
  1493. __IOM uint32_t DECODER; /*!< (@ 0x00000510) Configuration of the decoder */
  1494. __IOM uint32_t LOOP; /*!< (@ 0x00000514) Number of playbacks of a loop */
  1495. __IM uint32_t RESERVED5[2];
  1496. __IOM PWM_SEQ_Type SEQ[2]; /*!< (@ 0x00000520) Unspecified */
  1497. __IOM PWM_PSEL_Type PSEL; /*!< (@ 0x00000560) Unspecified */
  1498. } NRF_PWM_Type; /*!< Size = 1392 (0x570) */
  1499. /* =========================================================================================================================== */
  1500. /* ================ PDM ================ */
  1501. /* =========================================================================================================================== */
  1502. /**
  1503. * @brief Pulse Density Modulation (Digital Microphone) Interface (PDM)
  1504. */
  1505. typedef struct { /*!< (@ 0x4001D000) PDM Structure */
  1506. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Starts continuous PDM transfer */
  1507. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stops PDM transfer */
  1508. __IM uint32_t RESERVED[62];
  1509. __IOM uint32_t EVENTS_STARTED; /*!< (@ 0x00000100) PDM transfer has started */
  1510. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) PDM transfer has finished */
  1511. __IOM uint32_t EVENTS_END; /*!< (@ 0x00000108) The PDM has written the last sample specified
  1512. by SAMPLE.MAXCNT (or the last sample after
  1513. a STOP task has been received) to Data RAM */
  1514. __IM uint32_t RESERVED1[125];
  1515. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1516. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1517. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1518. __IM uint32_t RESERVED2[125];
  1519. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) PDM module enable register */
  1520. __IOM uint32_t PDMCLKCTRL; /*!< (@ 0x00000504) PDM clock generator control */
  1521. __IOM uint32_t MODE; /*!< (@ 0x00000508) Defines the routing of the connected PDM microphones'
  1522. signals */
  1523. __IM uint32_t RESERVED3[3];
  1524. __IOM uint32_t GAINL; /*!< (@ 0x00000518) Left output gain adjustment */
  1525. __IOM uint32_t GAINR; /*!< (@ 0x0000051C) Right output gain adjustment */
  1526. __IM uint32_t RESERVED4[8];
  1527. __IOM PDM_PSEL_Type PSEL; /*!< (@ 0x00000540) Unspecified */
  1528. __IM uint32_t RESERVED5[6];
  1529. __IOM PDM_SAMPLE_Type SAMPLE; /*!< (@ 0x00000560) Unspecified */
  1530. } NRF_PDM_Type; /*!< Size = 1384 (0x568) */
  1531. /* =========================================================================================================================== */
  1532. /* ================ NVMC ================ */
  1533. /* =========================================================================================================================== */
  1534. /**
  1535. * @brief Non-volatile memory controller (NVMC)
  1536. */
  1537. typedef struct { /*!< (@ 0x4001E000) NVMC Structure */
  1538. __IM uint32_t RESERVED[256];
  1539. __IM uint32_t READY; /*!< (@ 0x00000400) Ready flag */
  1540. __IM uint32_t RESERVED1[64];
  1541. __IOM uint32_t CONFIG; /*!< (@ 0x00000504) Configuration register */
  1542. union {
  1543. __IOM uint32_t ERASEPAGE; /*!< (@ 0x00000508) Register for erasing a page in code area */
  1544. __IOM uint32_t ERASEPCR1; /*!< (@ 0x00000508) Deprecated register - Register for erasing a
  1545. page in code area. Equivalent to ERASEPAGE. */
  1546. };
  1547. __IOM uint32_t ERASEALL; /*!< (@ 0x0000050C) Register for erasing all non-volatile user memory */
  1548. __IOM uint32_t ERASEPCR0; /*!< (@ 0x00000510) Deprecated register - Register for erasing a
  1549. page in code area. Equivalent to ERASEPAGE. */
  1550. __IOM uint32_t ERASEUICR; /*!< (@ 0x00000514) Register for erasing user information configuration
  1551. registers */
  1552. __IOM uint32_t ERASEPAGEPARTIAL; /*!< (@ 0x00000518) Register for partial erase of a page in code
  1553. area */
  1554. __IOM uint32_t ERASEPAGEPARTIALCFG; /*!< (@ 0x0000051C) Register for partial erase configuration */
  1555. } NRF_NVMC_Type; /*!< Size = 1312 (0x520) */
  1556. /* =========================================================================================================================== */
  1557. /* ================ PPI ================ */
  1558. /* =========================================================================================================================== */
  1559. /**
  1560. * @brief Programmable Peripheral Interconnect (PPI)
  1561. */
  1562. typedef struct { /*!< (@ 0x4001F000) PPI Structure */
  1563. __OM PPI_TASKS_CHG_Type TASKS_CHG[6]; /*!< (@ 0x00000000) Channel group tasks */
  1564. __IM uint32_t RESERVED[308];
  1565. __IOM uint32_t CHEN; /*!< (@ 0x00000500) Channel enable register */
  1566. __IOM uint32_t CHENSET; /*!< (@ 0x00000504) Channel enable set register */
  1567. __IOM uint32_t CHENCLR; /*!< (@ 0x00000508) Channel enable clear register */
  1568. __IM uint32_t RESERVED1;
  1569. __IOM PPI_CH_Type CH[20]; /*!< (@ 0x00000510) PPI Channel */
  1570. __IM uint32_t RESERVED2[148];
  1571. __IOM uint32_t CHG[6]; /*!< (@ 0x00000800) Description collection: Channel group n */
  1572. __IM uint32_t RESERVED3[62];
  1573. __IOM PPI_FORK_Type FORK[32]; /*!< (@ 0x00000910) Fork */
  1574. } NRF_PPI_Type; /*!< Size = 2448 (0x990) */
  1575. /** @} */ /* End of group Device_Peripheral_peripherals */
  1576. /* =========================================================================================================================== */
  1577. /* ================ Device Specific Peripheral Address Map ================ */
  1578. /* =========================================================================================================================== */
  1579. /** @addtogroup Device_Peripheral_peripheralAddr
  1580. * @{
  1581. */
  1582. #define NRF_FICR_BASE 0x10000000UL
  1583. #define NRF_UICR_BASE 0x10001000UL
  1584. #define NRF_BPROT_BASE 0x40000000UL
  1585. #define NRF_CLOCK_BASE 0x40000000UL
  1586. #define NRF_POWER_BASE 0x40000000UL
  1587. #define NRF_P0_BASE 0x50000000UL
  1588. #define NRF_RADIO_BASE 0x40001000UL
  1589. #define NRF_UART0_BASE 0x40002000UL
  1590. #define NRF_UARTE0_BASE 0x40002000UL
  1591. #define NRF_TWI0_BASE 0x40003000UL
  1592. #define NRF_TWIM0_BASE 0x40003000UL
  1593. #define NRF_TWIS0_BASE 0x40003000UL
  1594. #define NRF_SPI0_BASE 0x40004000UL
  1595. #define NRF_SPIM0_BASE 0x40004000UL
  1596. #define NRF_SPIS0_BASE 0x40004000UL
  1597. #define NRF_GPIOTE_BASE 0x40006000UL
  1598. #define NRF_SAADC_BASE 0x40007000UL
  1599. #define NRF_TIMER0_BASE 0x40008000UL
  1600. #define NRF_TIMER1_BASE 0x40009000UL
  1601. #define NRF_TIMER2_BASE 0x4000A000UL
  1602. #define NRF_RTC0_BASE 0x4000B000UL
  1603. #define NRF_TEMP_BASE 0x4000C000UL
  1604. #define NRF_RNG_BASE 0x4000D000UL
  1605. #define NRF_ECB_BASE 0x4000E000UL
  1606. #define NRF_AAR_BASE 0x4000F000UL
  1607. #define NRF_CCM_BASE 0x4000F000UL
  1608. #define NRF_WDT_BASE 0x40010000UL
  1609. #define NRF_RTC1_BASE 0x40011000UL
  1610. #define NRF_QDEC_BASE 0x40012000UL
  1611. #define NRF_COMP_BASE 0x40013000UL
  1612. #define NRF_EGU0_BASE 0x40014000UL
  1613. #define NRF_SWI0_BASE 0x40014000UL
  1614. #define NRF_EGU1_BASE 0x40015000UL
  1615. #define NRF_SWI1_BASE 0x40015000UL
  1616. #define NRF_SWI2_BASE 0x40016000UL
  1617. #define NRF_SWI3_BASE 0x40017000UL
  1618. #define NRF_SWI4_BASE 0x40018000UL
  1619. #define NRF_SWI5_BASE 0x40019000UL
  1620. #define NRF_PWM0_BASE 0x4001C000UL
  1621. #define NRF_PDM_BASE 0x4001D000UL
  1622. #define NRF_NVMC_BASE 0x4001E000UL
  1623. #define NRF_PPI_BASE 0x4001F000UL
  1624. /** @} */ /* End of group Device_Peripheral_peripheralAddr */
  1625. /* =========================================================================================================================== */
  1626. /* ================ Peripheral declaration ================ */
  1627. /* =========================================================================================================================== */
  1628. /** @addtogroup Device_Peripheral_declaration
  1629. * @{
  1630. */
  1631. #define NRF_FICR ((NRF_FICR_Type*) NRF_FICR_BASE)
  1632. #define NRF_UICR ((NRF_UICR_Type*) NRF_UICR_BASE)
  1633. #define NRF_BPROT ((NRF_BPROT_Type*) NRF_BPROT_BASE)
  1634. #define NRF_CLOCK ((NRF_CLOCK_Type*) NRF_CLOCK_BASE)
  1635. #define NRF_POWER ((NRF_POWER_Type*) NRF_POWER_BASE)
  1636. #define NRF_P0 ((NRF_GPIO_Type*) NRF_P0_BASE)
  1637. #define NRF_RADIO ((NRF_RADIO_Type*) NRF_RADIO_BASE)
  1638. #define NRF_UART0 ((NRF_UART_Type*) NRF_UART0_BASE)
  1639. #define NRF_UARTE0 ((NRF_UARTE_Type*) NRF_UARTE0_BASE)
  1640. #define NRF_TWI0 ((NRF_TWI_Type*) NRF_TWI0_BASE)
  1641. #define NRF_TWIM0 ((NRF_TWIM_Type*) NRF_TWIM0_BASE)
  1642. #define NRF_TWIS0 ((NRF_TWIS_Type*) NRF_TWIS0_BASE)
  1643. #define NRF_SPI0 ((NRF_SPI_Type*) NRF_SPI0_BASE)
  1644. #define NRF_SPIM0 ((NRF_SPIM_Type*) NRF_SPIM0_BASE)
  1645. #define NRF_SPIS0 ((NRF_SPIS_Type*) NRF_SPIS0_BASE)
  1646. #define NRF_GPIOTE ((NRF_GPIOTE_Type*) NRF_GPIOTE_BASE)
  1647. #define NRF_SAADC ((NRF_SAADC_Type*) NRF_SAADC_BASE)
  1648. #define NRF_TIMER0 ((NRF_TIMER_Type*) NRF_TIMER0_BASE)
  1649. #define NRF_TIMER1 ((NRF_TIMER_Type*) NRF_TIMER1_BASE)
  1650. #define NRF_TIMER2 ((NRF_TIMER_Type*) NRF_TIMER2_BASE)
  1651. #define NRF_RTC0 ((NRF_RTC_Type*) NRF_RTC0_BASE)
  1652. #define NRF_TEMP ((NRF_TEMP_Type*) NRF_TEMP_BASE)
  1653. #define NRF_RNG ((NRF_RNG_Type*) NRF_RNG_BASE)
  1654. #define NRF_ECB ((NRF_ECB_Type*) NRF_ECB_BASE)
  1655. #define NRF_AAR ((NRF_AAR_Type*) NRF_AAR_BASE)
  1656. #define NRF_CCM ((NRF_CCM_Type*) NRF_CCM_BASE)
  1657. #define NRF_WDT ((NRF_WDT_Type*) NRF_WDT_BASE)
  1658. #define NRF_RTC1 ((NRF_RTC_Type*) NRF_RTC1_BASE)
  1659. #define NRF_QDEC ((NRF_QDEC_Type*) NRF_QDEC_BASE)
  1660. #define NRF_COMP ((NRF_COMP_Type*) NRF_COMP_BASE)
  1661. #define NRF_EGU0 ((NRF_EGU_Type*) NRF_EGU0_BASE)
  1662. #define NRF_SWI0 ((NRF_SWI_Type*) NRF_SWI0_BASE)
  1663. #define NRF_EGU1 ((NRF_EGU_Type*) NRF_EGU1_BASE)
  1664. #define NRF_SWI1 ((NRF_SWI_Type*) NRF_SWI1_BASE)
  1665. #define NRF_SWI2 ((NRF_SWI_Type*) NRF_SWI2_BASE)
  1666. #define NRF_SWI3 ((NRF_SWI_Type*) NRF_SWI3_BASE)
  1667. #define NRF_SWI4 ((NRF_SWI_Type*) NRF_SWI4_BASE)
  1668. #define NRF_SWI5 ((NRF_SWI_Type*) NRF_SWI5_BASE)
  1669. #define NRF_PWM0 ((NRF_PWM_Type*) NRF_PWM0_BASE)
  1670. #define NRF_PDM ((NRF_PDM_Type*) NRF_PDM_BASE)
  1671. #define NRF_NVMC ((NRF_NVMC_Type*) NRF_NVMC_BASE)
  1672. #define NRF_PPI ((NRF_PPI_Type*) NRF_PPI_BASE)
  1673. /** @} */ /* End of group Device_Peripheral_declaration */
  1674. /* ========================================= End of section using anonymous unions ========================================= */
  1675. #if defined (__CC_ARM)
  1676. #pragma pop
  1677. #elif defined (__ICCARM__)
  1678. /* leave anonymous unions enabled */
  1679. #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
  1680. #pragma clang diagnostic pop
  1681. #elif defined (__GNUC__)
  1682. /* anonymous unions are enabled by default */
  1683. #elif defined (__TMS470__)
  1684. /* anonymous unions are enabled by default */
  1685. #elif defined (__TASKING__)
  1686. #pragma warning restore
  1687. #elif defined (__CSMC__)
  1688. /* anonymous unions are enabled by default */
  1689. #endif
  1690. #ifdef __cplusplus
  1691. }
  1692. #endif
  1693. #endif /* NRF52810_H */
  1694. /** @} */ /* End of group nrf52810 */
  1695. /** @} */ /* End of group Nordic Semiconductor */