pdma_reg.h 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  1. /**************************************************************************//**
  2. * @file pdma_reg.h
  3. * @version V1.00
  4. * @brief PDMA register definition header file
  5. *
  6. * SPDX-License-Identifier: Apache-2.0
  7. * @copyright (C) 2018 Nuvoton Technology Corp. All rights reserved.
  8. *****************************************************************************/
  9. #ifndef __PDMA_REG_H__
  10. #define __PDMA_REG_H__
  11. #if defined ( __CC_ARM )
  12. #pragma anon_unions
  13. #endif
  14. /**
  15. @addtogroup REGISTER Control Register
  16. @{
  17. */
  18. /**
  19. @addtogroup PDMA Peripheral Direct Memory Access Controller (PDMA)
  20. Memory Mapped Structure for PDMA Controller
  21. @{ */
  22. typedef struct
  23. {
  24. /**
  25. * @var DSCT_T::CTL
  26. * Offset: 0x00 Descriptor Table Control Register of PDMA Channel n
  27. * ---------------------------------------------------------------------------------------------------
  28. * |Bits |Field |Descriptions
  29. * | :----: | :----: | :---- |
  30. * |[1:0] |OPMODE |PDMA Operation Mode Selection
  31. * | | |00 = Idle state: Channel is stopped or this table is complete, when PDMA finish channel table task, OPMODE will be cleared to idle state automatically.
  32. * | | |01 = Basic mode: The descriptor table only has one task. When this task is finished, the PDMA_INTSTS[1] will be asserted.
  33. * | | |10 = Scatter-Gather mode: When operating in this mode, user must give the next descriptor table address in PDMA_DSCT_NEXT register; PDMA controller will ignore this task, then load the next task to execute.
  34. * | | |11 = Reserved.
  35. * | | |Note: Before filling new transfer task in the Descriptor Table, user must check the PDMA_INTSTS[1] to make sure the curren task is complete.
  36. * |[2] |TXTYPE |Transfer Type
  37. * | | |0 = Burst transfer type.
  38. * | | |1 = Single transfer type.
  39. * |[6:4] |BURSIZE |Burst Size
  40. * | | |000 = 128 Transfers.
  41. * | | |001 = 64 Transfers.
  42. * | | |010 = 32 Transfers.
  43. * | | |011 = 16 Transfers.
  44. * | | |100 = 8 Transfers.
  45. * | | |101 = 4 Transfers.
  46. * | | |110 = 2 Transfers.
  47. * | | |111 = 1 Transfers.
  48. * | | |Note: This field is only useful in burst transfer type.
  49. * |[7] |TBINTDIS |Table Interrupt Disable Bit
  50. * | | |This field can be used to decide whether to enable table interrupt or not.
  51. * | | |If the TBINTDIS bit is enabled it will not generates TDIFn(PDMA_TDSTS[8:0]) when PDMA controller finishes transfer task.
  52. * | | |0 = Table interrupt Enabled.
  53. * | | |1 = Table interrupt Disabled.
  54. * | | |Note: This function only for scatter-gather mode.
  55. * |[9:8] |SAINC |Source Address Increment
  56. * | | |This field is used to set the source address increment size.
  57. * | | |11 = No increment (fixed address).
  58. * | | |Others = Increment and size is depended on TXWIDTH selection.
  59. * | | |Note: This function do not support in memory to memory transfer type.
  60. * |[11:10] |DAINC |Destination Address Increment
  61. * | | |This field is used to set the destination address increment size.
  62. * | | |11 = No increment (fixed address).
  63. * | | |Others = Increment and size is depended on TXWIDTH selection.
  64. * | | |Note: This function do not support in memory to memory transfer type.
  65. * |[13:12] |TXWIDTH |Transfer Width Selection
  66. * | | |This field is used for transfer width.
  67. * | | |00 = One byte (8 bit) is transferred for every operation.
  68. * | | |01= One half-word (16 bit) is transferred for every operation.
  69. * | | |10 = One word (32-bit) is transferred for every operation.
  70. * | | |11 = Reserved.
  71. * | | |Note: The PDMA transfer source address (PDMA_DSCT_SA) and PDMA transfer destination address (PDMA_DSCT_DA) should be alignment under the TXWIDTH selection
  72. * |[31:16] |TXCNT |Transfer Count
  73. * | | |The TXCNT represents the required number of PDMA transfer, the real transfer count is (TXCNT + 1); The maximum transfer count is 65536, every transfer may be byte, half-word or word that is dependent on TXWIDTH field.
  74. * | | |Note: When PDMA finish each transfer data, this field will be decrease immediately.
  75. * @var DSCT_T::SA
  76. * Offset: 0x04 Source Address Register of PDMA Channel n
  77. * ---------------------------------------------------------------------------------------------------
  78. * |Bits |Field |Descriptions
  79. * | :----: | :----: | :---- |
  80. * |[31:0] |SA |PDMA Transfer Source Address
  81. * | | |This field indicates a 32-bit source address of PDMA controller.
  82. * @var DSCT_T::DA
  83. * Offset: 0x08 Destination Address Register of PDMA Channel n
  84. * ---------------------------------------------------------------------------------------------------
  85. * |Bits |Field |Descriptions
  86. * | :----: | :----: | :---- |
  87. * |[31:0] |DA |PDMA Transfer Destination Address
  88. * | | |This field indicates a 32-bit destination address of PDMA controller.
  89. * @var DSCT_T::NEXT
  90. * Offset: 0x0C Next Scatter-gather Descriptor Table Offset Address of PDMA Channel n
  91. * ---------------------------------------------------------------------------------------------------
  92. * |Bits |Field |Descriptions
  93. * | :----: | :----: | :---- |
  94. * |[15:0] |NEXT |PDMA Next Descriptor Table Offset
  95. * | | |This field indicates the offset of the next descriptor table address in system memory.
  96. * | | |Write Operation:
  97. * | | |If the system memory based address is 0x2000_0000 (PDMA_SCATBA), and the next descriptor table is start from 0x2000_0100, then this field must fill in 0x0100.
  98. * | | |Read Operation:
  99. * | | |When operating in scatter-gather mode, the last two bits NEXT[1:0] will become reserved, and indicate the first next address of system memory.
  100. * | | |Note1: The descriptor table address must be word boundary.
  101. * | | |Note2: Before filled transfer task in the descriptor table, user must check if the descriptor table is complete.
  102. * |[31:16] |EXENEXT |PDMA Execution Next Descriptor Table Offset
  103. * | | |This field indicates the offset of next descriptor table address of current execution descriptor table in system memory.
  104. * | | |Note: write operation is useless in this field.
  105. */
  106. __IO uint32_t CTL; /*!< [0x0000] Descriptor Table Control Register of PDMA Channel n. */
  107. __IO uint32_t SA; /*!< [0x0004] Source Address Register of PDMA Channel n */
  108. __IO uint32_t DA; /*!< [0x0008] Destination Address Register of PDMA Channel n */
  109. __IO uint32_t NEXT; /*!< [0x000c] Next Scatter-Gather Descriptor Table Offset Address of PDMA Channel n */
  110. } DSCT_T;
  111. typedef struct
  112. {
  113. /**
  114. * @var PDMA_T::CURSCAT
  115. * Offset: 0x100 Current Scatter-gather Descriptor Table Address of PDMA Channel n
  116. * ---------------------------------------------------------------------------------------------------
  117. * |Bits |Field |Descriptions
  118. * | :----: | :----: | :---- |
  119. * |[31:0] |CURADDR |PDMA Current Description Address (Read Only)
  120. * | | |This field indicates a 32-bit current external description address of PDMA controller.
  121. * | | |Note: This field is read only and used for Scatter-Gather mode only to indicate the current external description address.
  122. * @var PDMA_T::CHCTL
  123. * Offset: 0x400 PDMA Channel Control Register
  124. * ---------------------------------------------------------------------------------------------------
  125. * |Bits |Field |Descriptions
  126. * | :----: | :----: | :---- |
  127. * |[8:0] |CHENn |PDMA Channel Enable Bits
  128. * | | |Set this bit to 1 to enable PDMAn operation. Channel cannot be active if it is not set as enabled.
  129. * | | |0 = PDMA channel [n] Disabled.
  130. * | | |1 = PDMA channel [n] Enabled.
  131. * | | |Note: Setting the corresponding bit of PDMA_PAUSE or PDMA_CHRST register will also clear this bit.
  132. * @var PDMA_T::PAUSE
  133. * Offset: 0x404 PDMA Transfer Pause Control Register
  134. * ---------------------------------------------------------------------------------------------------
  135. * |Bits |Field |Descriptions
  136. * | :----: | :----: | :---- |
  137. * |[8:0] |PAUSEn |PDMA Channel N Transfer Pause Control (Write Only)
  138. * | | |User can set PAUSEn bit field to pause the PDMA transfer.
  139. * | | |When user sets PAUSEn bit, the PDMA controller will pause the on-going transfer, then clear the channel enable bit CHEN(PDMA_CHCTL [n], n=0,1..8) and clear request active flag(PDMA_TRGSTS[n:0], n=0,1..8).
  140. * | | |If the paused channel is re-enabled again, the remaining transfers will be processed.
  141. * | | |0 = No effect.
  142. * | | |1 = Pause PDMA channel n transfer.
  143. * @var PDMA_T::SWREQ
  144. * Offset: 0x408 PDMA Software Request Register
  145. * ---------------------------------------------------------------------------------------------------
  146. * |Bits |Field |Descriptions
  147. * | :----: | :----: | :---- |
  148. * |[8:0] |SWREQn |PDMA Software Request (Write Only)
  149. * | | |Set this bit to 1 to generate a software request to PDMA [n].
  150. * | | |0 = No effect.
  151. * | | |1 = Generate a software request.
  152. * | | |Note1: User can read PDMA_TRGSTS register to know which channel is on active.
  153. * | | |Active flag may be triggered by software request or peripheral request.
  154. * | | |Note2: If user does not enable corresponding PDMA channel, the software request will be ignored.
  155. * @var PDMA_T::TRGSTS
  156. * Offset: 0x40C PDMA Channel Request Status Register
  157. * ---------------------------------------------------------------------------------------------------
  158. * |Bits |Field |Descriptions
  159. * | :----: | :----: | :---- |
  160. * |[8:0] |REQSTSn |PDMA Channel Request Status (Read Only)
  161. * | | |This flag indicates whether channel[n] have a request or not, no matter request from software or peripheral.
  162. * | | |When PDMA controller finishes channel transfer, this bit will be cleared automatically.
  163. * | | |0 = PDMA Channel n has no request.
  164. * | | |1 = PDMA Channel n has a request.
  165. * | | |Note: If user pauses or resets each PDMA transfer by setting PDMA_PAUSE or PDMA_CHRST register respectively, this bit will be cleared automatically after finishing the current transfer.
  166. * @var PDMA_T::PRISET
  167. * Offset: 0x410 PDMA Fixed Priority Setting Register
  168. * ---------------------------------------------------------------------------------------------------
  169. * |Bits |Field |Descriptions
  170. * | :----: | :----: | :---- |
  171. * |[8:0] |FPRISETn |PDMA Fixed Priority Setting
  172. * | | |Set this bit to 1 to enable fixed priority level.
  173. * | | |Write Operation:
  174. * | | |0 = No effect.
  175. * | | |1 = Set PDMA channel [n] to fixed priority channel.
  176. * | | |Read Operation:
  177. * | | |0 = Corresponding PDMA channel is round-robin priority.
  178. * | | |1 = Corresponding PDMA channel is fixed priority.
  179. * | | |Note: This field only set to fixed priority, clear fixed priority use PDMA_PRICLR register.
  180. * @var PDMA_T::PRICLR
  181. * Offset: 0x414 PDMA Fixed Priority Clear Register
  182. * ---------------------------------------------------------------------------------------------------
  183. * |Bits |Field |Descriptions
  184. * | :----: | :----: | :---- |
  185. * |[8:0] |FPRICLRn |PDMA Fixed Priority Clear Bits (Write Only)
  186. * | | |Set this bit to 1 to clear fixed priority level.
  187. * | | |0 = No effect.
  188. * | | |1 = Clear PDMA channel [n] fixed priority setting.
  189. * | | |Note: User can read PDMA_PRISET register to know the channel priority.
  190. * @var PDMA_T::INTEN
  191. * Offset: 0x418 PDMA Interrupt Enable Register
  192. * ---------------------------------------------------------------------------------------------------
  193. * |Bits |Field |Descriptions
  194. * | :----: | :----: | :---- |
  195. * |[8:0] |INTENn |PDMA Interrupt Enable Bits
  196. * | | |This field is used to enable PDMA channel[n] interrupt.
  197. * | | |0 = PDMA channel n interrupt Disabled.
  198. * | | |1 = PDMA channel n interrupt Enabled.
  199. * @var PDMA_T::INTSTS
  200. * Offset: 0x41C PDMA Interrupt Status Register
  201. * ---------------------------------------------------------------------------------------------------
  202. * |Bits |Field |Descriptions
  203. * | :----: | :----: | :---- |
  204. * |[0] |ABTIF |PDMA Read/Write Target Abort Interrupt Flag (Read Only)
  205. * | | |This bit indicates that PDMA has target abort error; Software can read PDMA_ABTSTS register to find which channel has target abort error.
  206. * | | |0 = No AHB bus ERROR response received.
  207. * | | |1 = AHB bus ERROR response received.
  208. * |[1] |TDIF |Transfer Done Interrupt Flag (Read Only)
  209. * | | |This bit indicates that PDMA controller has finished transmission; User can read PDMA_TDSTS register to indicate which channel finished transfer.
  210. * | | |0 = Not finished yet.
  211. * | | |1 = PDMA channel has finished transmission.
  212. * |[2] |ALIGNF |Transfer Alignment Interrupt Flag (Read Only)
  213. * | | |0 = PDMA channel source address and destination address both follow transfer width setting.
  214. * | | |1 = PDMA channel source address or destination address is not follow transfer width setting.
  215. * |[8] |REQTOF0 |Request Time-out Flag for Channel 0
  216. * | | |This flag indicates that PDMA controller has waited peripheral request for a period defined by PDMA_TOC0, user can write 1 to clear these bits.
  217. * | | |0 = No request time-out.
  218. * | | |1 = Peripheral request time-out.
  219. * |[9] |REQTOF1 |Request Time-out Flag for Channel 1
  220. * | | |This flag indicates that PDMA controller has waited peripheral request for a period defined by PDMA_TOC1, user can write 1 to clear these bits.
  221. * | | |0 = No request time-out.
  222. * | | |1 = Peripheral request time-out.
  223. * @var PDMA_T::ABTSTS
  224. * Offset: 0x420 PDMA Channel Read/Write Target Abort Flag Register
  225. * ---------------------------------------------------------------------------------------------------
  226. * |Bits |Field |Descriptions
  227. * | :----: | :----: | :---- |
  228. * |[8:0] |ABTIFn |PDMA Read/Write Target Abort Interrupt Status Flag
  229. * | | |This bit indicates which PDMA controller has target abort error; User can write 1 to clear these bits.
  230. * | | |0 = No AHB bus ERROR response received when channel n transfer.
  231. * | | |1 = AHB bus ERROR response received when channel n transfer.
  232. * @var PDMA_T::TDSTS
  233. * Offset: 0x424 PDMA Channel Transfer Done Flag Register
  234. * ---------------------------------------------------------------------------------------------------
  235. * |Bits |Field |Descriptions
  236. * | :----: | :----: | :---- |
  237. * |[8:0] |TDIFn |Transfer Done Flag
  238. * | | |This bit indicates whether PDMA controller channel transfer has been finished or not, user can write 1 to clear these bits.
  239. * | | |0 = PDMA channel transfer has not finished.
  240. * | | |1 = PDMA channel has finished transmission.
  241. * @var PDMA_T::ALIGN
  242. * Offset: 0x428 PDMA Transfer Alignment Status Register
  243. * ---------------------------------------------------------------------------------------------------
  244. * |Bits |Field |Descriptions
  245. * | :----: | :----: | :---- |
  246. * |[8:0] |ALIGNn |Transfer Alignment Flag
  247. * | | |0 = PDMA channel source address and destination address both follow transfer width setting.
  248. * | | |1 = PDMA channel source address or destination address is not follow transfer width setting.
  249. * @var PDMA_T::TACTSTS
  250. * Offset: 0x42C PDMA Transfer Active Flag Register
  251. * ---------------------------------------------------------------------------------------------------
  252. * |Bits |Field |Descriptions
  253. * | :----: | :----: | :---- |
  254. * |[8:0] |TXACTFn |Transfer on Active Flag (Read Only)
  255. * | | |This bit indicates which PDMA channel is in active.
  256. * | | |0 = PDMA channel is not finished.
  257. * | | |1 = PDMA channel is active.
  258. * @var PDMA_T::TOUTPSC
  259. * Offset: 0x430 PDMA Time-out Prescaler Register
  260. * ---------------------------------------------------------------------------------------------------
  261. * |Bits |Field |Descriptions
  262. * | :----: | :----: | :---- |
  263. * |[2:0] |TOUTPSC0 |PDMA Channel 0 Time-out Clock Source Prescaler Bits
  264. * | | |000 = PDMA channel 0 time-out clock source is HCLK/2^8.
  265. * | | |001 = PDMA channel 0 time-out clock source is HCLK/2^9.
  266. * | | |010 = PDMA channel 0 time-out clock source is HCLK/2^10.
  267. * | | |011 = PDMA channel 0 time-out clock source is HCLK/2^11.
  268. * | | |100 = PDMA channel 0 time-out clock source is HCLK/2^12.
  269. * | | |101 = PDMA channel 0 time-out clock source is HCLK/2^13.
  270. * | | |110 = PDMA channel 0 time-out clock source is HCLK/2^14.
  271. * | | |111 = PDMA channel 0 time-out clock source is HCLK/2^15.
  272. * |[6:4] |TOUTPSC1 |PDMA Channel 1 Time-out Clock Source Prescaler Bits
  273. * | | |000 = PDMA channel 1 time-out clock source is HCLK/2^8.
  274. * | | |001 = PDMA channel 1 time-out clock source is HCLK/2^9.
  275. * | | |010 = PDMA channel 1 time-out clock source is HCLK/2^10.
  276. * | | |011 = PDMA channel 1 time-out clock source is HCLK/2^11.
  277. * | | |100 = PDMA channel 1 time-out clock source is HCLK/2^12.
  278. * | | |101 = PDMA channel 1 time-out clock source is HCLK/2^13.
  279. * | | |110 = PDMA channel 1 time-out clock source is HCLK/2^14.
  280. * | | |111 = PDMA channel 1 time-out clock source is HCLK/2^15.
  281. * @var PDMA_T::TOUTEN
  282. * Offset: 0x434 PDMA Time-out Enable Register
  283. * ---------------------------------------------------------------------------------------------------
  284. * |Bits |Field |Descriptions
  285. * | :----: | :----: | :---- |
  286. * |[1:0] |TOUTENn |PDMA Time-out Enable Bits
  287. * | | |0 = PDMA Channel n time-out function Disabled.
  288. * | | |1 = PDMA Channel n time-out function Enabled.
  289. * @var PDMA_T::TOUTIEN
  290. * Offset: 0x438 PDMA Time-out Interrupt Enable Register
  291. * ---------------------------------------------------------------------------------------------------
  292. * |Bits |Field |Descriptions
  293. * | :----: | :----: | :---- |
  294. * |[1:0] |TOUTIENn |PDMA Time-out Interrupt Enable Bits
  295. * | | |0 = PDMA Channel n time-out interrupt Disabled.
  296. * | | |1 = PDMA Channel n time-out interrupt Enabled.
  297. * @var PDMA_T::SCATBA
  298. * Offset: 0x43C PDMA Scatter-gather Descriptor Table Base Address Register
  299. * ---------------------------------------------------------------------------------------------------
  300. * |Bits |Field |Descriptions
  301. * | :----: | :----: | :---- |
  302. * |[31:16] |SCATBA |PDMA Scatter-gather Descriptor Table Address
  303. * | | |In Scatter-Gather mode, this is the base address for calculating the next link - list address.
  304. * | | |The next link address equation is
  305. * | | |Next Link Address = PDMA_SCATBA + PDMA_DSCT_NEXT.
  306. * | | |Note: Only useful in Scatter-Gather mode.
  307. * @var PDMA_T::TOC0_1
  308. * Offset: 0x440 PDMA Time-out Counter Ch1 and Ch0 Register
  309. * ---------------------------------------------------------------------------------------------------
  310. * |Bits |Field |Descriptions
  311. * | :----: | :----: | :---- |
  312. * |[15:0] |TOC0 |Time-out Counter for Channel 0
  313. * | | |This controls the period of time-out function for channel 0.
  314. * | | |The calculation unit is based on TOUTPSC0 (PDMA_TOUTPSC[2:0]) clock.
  315. * | | |Time-out period = (Period of time-out clock) * (16-bit TOCn), n = 0,1.
  316. * |[31:16] |TOC1 |Time-out Counter for Channel 1
  317. * | | |This controls the period of time-out function for channel 1.
  318. * | | |The calculation unit is based on TOUTPSC1 (PDMA_TOUTPSC[6:4]) clock.
  319. * | | |The example of time-out period can refer TOC0 bit description.
  320. * @var PDMA_T::CHRST
  321. * Offset: 0x460 PDMA Channel Reset Register
  322. * ---------------------------------------------------------------------------------------------------
  323. * |Bits |Field |Descriptions
  324. * | :----: | :----: | :---- |
  325. * |[8:0] |CHnRST |Channel N Reset
  326. * | | |0 = corresponding channel n is not reset.
  327. * | | |1 = corresponding channel n is reset.
  328. * @var PDMA_T::REQSEL0_3
  329. * Offset: 0x480 PDMA Request Source Select Register 0
  330. * ---------------------------------------------------------------------------------------------------
  331. * |Bits |Field |Descriptions
  332. * | :----: | :----: | :---- |
  333. * |[5:0] |REQSRC0 |Channel 0 Request Source Selection
  334. * | | |This filed defines which peripheral is connected to PDMA channel 0.
  335. * | | |User can configure the peripheral by setting REQSRC0.
  336. * | | |0 = Disable PDMA peripheral request.
  337. * | | |1 = reserved.
  338. * | | |2 = reserved.
  339. * | | |3 = reserved.
  340. * | | |4 = Channel connects to UART0_TX.
  341. * | | |5 = Channel connects to UART0_RX.
  342. * | | |6 = Channel connects to UART1_TX.
  343. * | | |7 = Channel connects to UART1_RX.
  344. * | | |8 = Channel connects to UART2_TX.
  345. * | | |9 = Channel connects to UART2_RX.
  346. * | | |10 = Channel connects to USCI0_TX.
  347. * | | |11 = Channel connects to USCI0_RX.
  348. * | | |12 = Channel connects to USCI1_TX.
  349. * | | |13 = Channel connects to USCI1_RX.
  350. * | | |14 = Reserved.
  351. * | | |15 = Reserved.
  352. * | | |16 = Channel connects to QSPI0_TX.
  353. * | | |17 = Channel connects to QSPI0_RX.
  354. * | | |18 = Channel connects to SPI0_TX.
  355. * | | |19 = Channel connects to SPI0_RX.
  356. * | | |20 = Channel connects to ADC_RX.
  357. * | | |21 = Channel connects to PWM0_P1_RX.
  358. * | | |22 = Channel connects to PWM0_P2_RX.
  359. * | | |23 = Channel connects to PWM0_P3_RX.
  360. * | | |24 = Channel connects to PWM1_P1_RX.
  361. * | | |25 = Channel connects to PWM1_P2_RX.
  362. * | | |26 = Channel connects to PWM1_P3_RX.
  363. * | | |27 = Reserved.
  364. * | | |28 = Channel connects to I2C0_TX.
  365. * | | |29 = Channel connects to I2C0_RX.
  366. * | | |30 = Channel connects to I2C1_TX.
  367. * | | |31 = Channel connects to I2C1_RX.
  368. * | | |32 = Channel connects to TMR0.
  369. * | | |33 = Channel connects to TMR1.
  370. * | | |34 = Channel connects to TMR2.
  371. * | | |35 = Channel connects to TMR3.
  372. * | | |36 = Channel connects to UART3_TX.
  373. * | | |37 = Channel connects to UART3_RX.
  374. * | | |38 = Channel connects to UART4_TX.
  375. * | | |39 = Channel connects to UART4_RX.
  376. * | | |40 = Channel connects to UART5_TX.
  377. * | | |41 = Channel connects to UART5_RX.
  378. * | | |42 = Channel connects to UART6_TX.
  379. * | | |43 = Channel connects to UART6_RX.
  380. * | | |44 = Channel connects to UART7_TX.
  381. * | | |45 = Channel connects to UART7_RX.
  382. * | | |Others = Reserved.
  383. * | | |Note 1: A peripheral cannot be assigned to two channels at the same time.
  384. * | | |Note 2: This field is useless when transfer between memory and memory.
  385. * |[13:8] |REQSRC1 |Channel 1 Request Source Selection
  386. * | | |This filed defines which peripheral is connected to PDMA channel 1.
  387. * | | |User can configure the peripheral setting by REQSRC1.
  388. * | | |Note: The channel configuration is the same as REQSRC0 field.
  389. * | | |Please refer to the explanation of REQSRC0.
  390. * |[21:16] |REQSRC2 |Channel 2 Request Source Selection
  391. * | | |This filed defines which peripheral is connected to PDMA channel 2.
  392. * | | |User can configure the peripheral setting by REQSRC2.
  393. * | | |Note: The channel configuration is the same as REQSRC0 field.
  394. * | | |Please refer to the explanation of REQSRC0.
  395. * |[29:24] |REQSRC3 |Channel 3 Request Source Selection
  396. * | | |This filed defines which peripheral is connected to PDMA channel 3.
  397. * | | |User can configure the peripheral setting by REQSRC3.
  398. * | | |Note: The channel configuration is the same as REQSRC0 field.
  399. * | | |Please refer to the explanation of REQSRC0.
  400. * @var PDMA_T::REQSEL4_7
  401. * Offset: 0x484 PDMA Request Source Select Register 1
  402. * ---------------------------------------------------------------------------------------------------
  403. * |Bits |Field |Descriptions
  404. * | :----: | :----: | :---- |
  405. * |[5:0] |REQSRC4 |Channel 4 Request Source Selection
  406. * | | |This filed defines which peripheral is connected to PDMA channel 4.
  407. * | | |User can configure the peripheral setting by REQSRC4.
  408. * | | |Note: The channel configuration is the same as REQSRC0 field.
  409. * | | |Please refer to the explanation of REQSRC0.
  410. * |[13:8] |REQSRC5 |Channel 5 Request Source Selection
  411. * | | |This filed defines which peripheral is connected to PDMA channel 5.
  412. * | | |User can configure the peripheral setting by REQSRC5.
  413. * | | |Note: The channel configuration is the same as REQSRC0 field.
  414. * | | |Please refer to the explanation of REQSRC0.
  415. * |[21:16] |REQSRC6 |Channel 6 Request Source Selection
  416. * | | |This filed defines which peripheral is connected to PDMA channel 6.
  417. * | | |User can configure the peripheral setting by REQSRC6.
  418. * | | |Note: The channel configuration is the same as REQSRC0 field.
  419. * | | |Please refer to the explanation of REQSRC0.
  420. * |[29:24] |REQSRC7 |Channel 7 Request Source Selection
  421. * | | |This filed defines which peripheral is connected to PDMA channel 7.
  422. * | | |User can configure the peripheral setting by REQSRC7.
  423. * | | |Note: The channel configuration is the same as REQSRC0 field.
  424. * | | |Please refer to the explanation of REQSRC0.
  425. * @var PDMA_T::REQSEL8
  426. * Offset: 0x488 PDMA Request Source Select Register 2
  427. * ---------------------------------------------------------------------------------------------------
  428. * |Bits |Field |Descriptions
  429. * | :----: | :----: | :---- |
  430. * |[5:0] |REQSRC8 |Channel 8 Request Source Selection
  431. * | | |This filed defines which peripheral is connected to PDMA channel 8.
  432. * | | |User can configure the peripheral setting by REQSRC8.
  433. * | | |Note: The channel configuration is the same as REQSRC0 field.
  434. * | | |Please refer to the explanation of REQSRC0.
  435. */
  436. DSCT_T DSCT[9]; /*!< [0x0000 ~ 0x008C] Control Register of PDMA Channel 0 ~ 8 */
  437. __I uint32_t RESERVE0[28];
  438. __I uint32_t CURSCAT[9]; /*!< [0x0100 ~ 0x110] Current Scatter-gather Descriptor Table Address of PDMA Channel n */
  439. __I uint32_t RESERVE1[183];
  440. __IO uint32_t CHCTL; /*!< [0x0400] PDMA Channel Control Register */
  441. __O uint32_t PAUSE; /*!< [0x0404] PDMA Transfer Pause Control Register */
  442. __O uint32_t SWREQ; /*!< [0x0408] PDMA Software Request Register */
  443. __I uint32_t TRGSTS; /*!< [0x040c] PDMA Channel Request Status Register */
  444. __IO uint32_t PRISET; /*!< [0x0410] PDMA Fixed Priority Setting Register */
  445. __O uint32_t PRICLR; /*!< [0x0414] PDMA Fixed Priority Clear Register */
  446. __IO uint32_t INTEN; /*!< [0x0418] PDMA Interrupt Enable Register */
  447. __IO uint32_t INTSTS; /*!< [0x041c] PDMA Interrupt Status Register */
  448. __IO uint32_t ABTSTS; /*!< [0x0420] PDMA Channel Read/Write Target Abort Flag Register */
  449. __IO uint32_t TDSTS; /*!< [0x0424] PDMA Channel Transfer Done Flag Register */
  450. __IO uint32_t ALIGN; /*!< [0x0428] PDMA Transfer Alignment Status Register */
  451. __I uint32_t TACTSTS; /*!< [0x042c] PDMA Transfer Active Flag Register */
  452. __IO uint32_t TOUTPSC; /*!< [0x0430] PDMA Time-out Prescaler Register */
  453. __IO uint32_t TOUTEN; /*!< [0x0434] PDMA Time-out Enable Register */
  454. __IO uint32_t TOUTIEN; /*!< [0x0438] PDMA Time-out Interrupt Enable Register */
  455. __IO uint32_t SCATBA; /*!< [0x043c] PDMA Scatter-gather Descriptor Table Base Address Register */
  456. __IO uint32_t TOC0_1; /*!< [0x0440] PDMA Time-out Counter Ch1 and Ch0 Register */
  457. __I uint32_t RESERVE2[7];
  458. __IO uint32_t CHRST; /*!< [0x0460] PDMA Channel Reset Register */
  459. __I uint32_t RESERVE3[7];
  460. __IO uint32_t REQSEL0_3; /*!< [0x0480] PDMA Request Source Select Register 0 */
  461. __IO uint32_t REQSEL4_7; /*!< [0x0484] PDMA Request Source Select Register 1 */
  462. __IO uint32_t REQSEL8; /*!< [0x0488] PDMA Request Source Select Register 2 */
  463. } PDMA_T;
  464. /**
  465. @addtogroup PDMA_CONST PDMA Bit Field Definition
  466. Constant Definitions for PDMA Controller
  467. @{ */
  468. #define PDMA_DSCT_CTL_OPMODE_Pos (0) /*!< DSCT_T::CTL: OPMODE Position */
  469. #define PDMA_DSCT_CTL_OPMODE_Msk (0x3ul << PDMA_DSCT_CTL_OPMODE_Pos) /*!< DSCT_T::CTL: OPMODE Mask */
  470. #define PDMA_DSCT_CTL_TXTYPE_Pos (2) /*!< DSCT_T::CTL: TXTYPE Position */
  471. #define PDMA_DSCT_CTL_TXTYPE_Msk (0x1ul << PDMA_DSCT_CTL_TXTYPE_Pos) /*!< DSCT_T::CTL: TXTYPE Mask */
  472. #define PDMA_DSCT_CTL_BURSIZE_Pos (4) /*!< DSCT_T::CTL: BURSIZE Position */
  473. #define PDMA_DSCT_CTL_BURSIZE_Msk (0x7ul << PDMA_DSCT_CTL_BURSIZE_Pos) /*!< DSCT_T::CTL: BURSIZE Mask */
  474. #define PDMA_DSCT_CTL_TBINTDIS_Pos (7) /*!< DSCT_T::CTL: TBINTDIS Position */
  475. #define PDMA_DSCT_CTL_TBINTDIS_Msk (0x1ul << PDMA_DSCT_CTL_TBINTDIS_Pos) /*!< DSCT_T::CTL: TBINTDIS Mask */
  476. #define PDMA_DSCT_CTL_SAINC_Pos (8) /*!< DSCT_T::CTL: SAINC Position */
  477. #define PDMA_DSCT_CTL_SAINC_Msk (0x3ul << PDMA_DSCT_CTL_SAINC_Pos) /*!< DSCT_T::CTL: SAINC Mask */
  478. #define PDMA_DSCT_CTL_DAINC_Pos (10) /*!< DSCT_T::CTL: DAINC Position */
  479. #define PDMA_DSCT_CTL_DAINC_Msk (0x3ul << PDMA_DSCT_CTL_DAINC_Pos) /*!< DSCT_T::CTL: DAINC Mask */
  480. #define PDMA_DSCT_CTL_TXWIDTH_Pos (12) /*!< DSCT_T::CTL: TXWIDTH Position */
  481. #define PDMA_DSCT_CTL_TXWIDTH_Msk (0x3ul << PDMA_DSCT_CTL_TXWIDTH_Pos) /*!< DSCT_T::CTL: TXWIDTH Mask */
  482. #define PDMA_DSCT_CTL_TXCNT_Pos (16) /*!< DSCT_T::CTL: TXCNT Position */
  483. #define PDMA_DSCT_CTL_TXCNT_Msk (0xfffful << PDMA_DSCT_CTL_TXCNT_Pos) /*!< DSCT_T::CTL: TXCNT Mask */
  484. #define PDMA_DSCT_SA_SA_Pos (0) /*!< DSCT_T::SA: SA Position */
  485. #define PDMA_DSCT_SA_SA_Msk (0xfffffffful << PDMA_DSCT_SA_SA_Pos) /*!< DSCT_T::SA: SA Mask */
  486. #define PDMA_DSCT_DA_DA_Pos (0) /*!< DSCT_T::DA: DA Position */
  487. #define PDMA_DSCT_DA_DA_Msk (0xfffffffful << PDMA_DSCT_DA_DA_Pos) /*!< DSCT_T::DA: DA Mask */
  488. #define PDMA_DSCT_NEXT_NEXT_Pos (0) /*!< DSCT_T::NEXT: NEXT Position */
  489. #define PDMA_DSCT_NEXT_NEXT_Msk (0xfffful << PDMA_DSCT_NEXT_NEXT_Pos) /*!< DSCT_T::NEXT: NEXT Mask */
  490. #define PDMA_DSCT_NEXT_EXENEXT_Pos (16) /*!< DSCT_T::NEXT: EXENEXT Position */
  491. #define PDMA_DSCT_NEXT_EXENEXT_Msk (0xfffful << PDMA_DSCT_NEXT_EXENEXT_Pos) /*!< DSCT_T::NEXT: EXENEXT Mask */
  492. #define PDMA_CURSCAT_CURADDR_Pos (0) /*!< PDMA_T::CURSCAT: CURADDR Position */
  493. #define PDMA_CURSCAT_CURADDR_Msk (0xfffffffful << PDMA_CURSCAT_CURADDR_Pos) /*!< PDMA_T::CURSCAT: CURADDR Mask */
  494. #define PDMA_CHCTL_CHENn_Pos (0) /*!< PDMA_T::CHCTL: CHENn Position */
  495. #define PDMA_CHCTL_CHENn_Msk (0x1fful << PDMA_CHCTL_CHENn_Pos) /*!< PDMA_T::CHCTL: CHENn Mask */
  496. #define PDMA_PAUSE_PAUSEn_Pos (0) /*!< PDMA_T::PAUSE: PAUSEn Position */
  497. #define PDMA_PAUSE_PAUSEn_Msk (0x1fful << PDMA_PAUSE_PAUSEn_Pos) /*!< PDMA_T::PAUSE: PAUSEn Mask */
  498. #define PDMA_SWREQ_SWREQn_Pos (0) /*!< PDMA_T::SWREQ: SWREQn Position */
  499. #define PDMA_SWREQ_SWREQn_Msk (0x1fful << PDMA_SWREQ_SWREQn_Pos) /*!< PDMA_T::SWREQ: SWREQn Mask */
  500. #define PDMA_TRGSTS_REQSTSn_Pos (0) /*!< PDMA_T::TRGSTS: REQSTSn Position */
  501. #define PDMA_TRGSTS_REQSTSn_Msk (0x1fful << PDMA_TRGSTS_REQSTSn_Pos) /*!< PDMA_T::TRGSTS: REQSTSn Mask */
  502. #define PDMA_PRISET_FPRISETn_Pos (0) /*!< PDMA_T::PRISET: FPRISETn Position */
  503. #define PDMA_PRISET_FPRISETn_Msk (0x1fful << PDMA_PRISET_FPRISETn_Pos) /*!< PDMA_T::PRISET: FPRISETn Mask */
  504. #define PDMA_PRICLR_FPRICLRn_Pos (0) /*!< PDMA_T::PRICLR: FPRICLRn Position */
  505. #define PDMA_PRICLR_FPRICLRn_Msk (0x1fful << PDMA_PRICLR_FPRICLRn_Pos) /*!< PDMA_T::PRICLR: FPRICLRn Mask */
  506. #define PDMA_INTEN_INTENn_Pos (0) /*!< PDMA_T::INTEN: INTENn Position */
  507. #define PDMA_INTEN_INTENn_Msk (0x1fful << PDMA_INTEN_INTENn_Pos) /*!< PDMA_T::INTEN: INTENn Mask */
  508. #define PDMA_INTSTS_ABTIF_Pos (0) /*!< PDMA_T::INTSTS: ABTIF Position */
  509. #define PDMA_INTSTS_ABTIF_Msk (0x1ul << PDMA_INTSTS_ABTIF_Pos) /*!< PDMA_T::INTSTS: ABTIF Mask */
  510. #define PDMA_INTSTS_TDIF_Pos (1) /*!< PDMA_T::INTSTS: TDIF Position */
  511. #define PDMA_INTSTS_TDIF_Msk (0x1ul << PDMA_INTSTS_TDIF_Pos) /*!< PDMA_T::INTSTS: TDIF Mask */
  512. #define PDMA_INTSTS_ALIGNF_Pos (2) /*!< PDMA_T::INTSTS: ALIGNF Position */
  513. #define PDMA_INTSTS_ALIGNF_Msk (0x1ul << PDMA_INTSTS_ALIGNF_Pos) /*!< PDMA_T::INTSTS: ALIGNF Mask */
  514. #define PDMA_INTSTS_REQTOF0_Pos (8) /*!< PDMA_T::INTSTS: REQTOF0 Position */
  515. #define PDMA_INTSTS_REQTOF0_Msk (0x1ul << PDMA_INTSTS_REQTOF0_Pos) /*!< PDMA_T::INTSTS: REQTOF0 Mask */
  516. #define PDMA_INTSTS_REQTOF1_Pos (9) /*!< PDMA_T::INTSTS: REQTOF1 Position */
  517. #define PDMA_INTSTS_REQTOF1_Msk (0x1ul << PDMA_INTSTS_REQTOF1_Pos) /*!< PDMA_T::INTSTS: REQTOF1 Mask */
  518. #define PDMA_ABTSTS_ABTIF0_Pos (0) /*!< PDMA_T::ABTSTS: ABTIF0 Position */
  519. #define PDMA_ABTSTS_ABTIF0_Msk (0x1ul << PDMA_ABTSTS_ABTIF0_Pos) /*!< PDMA_T::ABTSTS: ABTIF0 Mask */
  520. #define PDMA_ABTSTS_ABTIF1_Pos (1) /*!< PDMA_T::ABTSTS: ABTIF1 Position */
  521. #define PDMA_ABTSTS_ABTIF1_Msk (0x1ul << PDMA_ABTSTS_ABTIF1_Pos) /*!< PDMA_T::ABTSTS: ABTIF1 Mask */
  522. #define PDMA_ABTSTS_ABTIF2_Pos (2) /*!< PDMA_T::ABTSTS: ABTIF2 Position */
  523. #define PDMA_ABTSTS_ABTIF2_Msk (0x1ul << PDMA_ABTSTS_ABTIF2_Pos) /*!< PDMA_T::ABTSTS: ABTIF2 Mask */
  524. #define PDMA_ABTSTS_ABTIF3_Pos (3) /*!< PDMA_T::ABTSTS: ABTIF3 Position */
  525. #define PDMA_ABTSTS_ABTIF3_Msk (0x1ul << PDMA_ABTSTS_ABTIF3_Pos) /*!< PDMA_T::ABTSTS: ABTIF3 Mask */
  526. #define PDMA_ABTSTS_ABTIF4_Pos (4) /*!< PDMA_T::ABTSTS: ABTIF4 Position */
  527. #define PDMA_ABTSTS_ABTIF4_Msk (0x1ul << PDMA_ABTSTS_ABTIF4_Pos) /*!< PDMA_T::ABTSTS: ABTIF4 Mask */
  528. #define PDMA_ABTSTS_ABTIF5_Pos (5) /*!< PDMA_T::ABTSTS: ABTIF5 Position */
  529. #define PDMA_ABTSTS_ABTIF5_Msk (0x1ul << PDMA_ABTSTS_ABTIF5_Pos) /*!< PDMA_T::ABTSTS: ABTIF5 Mask */
  530. #define PDMA_ABTSTS_ABTIF6_Pos (6) /*!< PDMA_T::ABTSTS: ABTIF6 Position */
  531. #define PDMA_ABTSTS_ABTIF6_Msk (0x1ul << PDMA_ABTSTS_ABTIF6_Pos) /*!< PDMA_T::ABTSTS: ABTIF6 Mask */
  532. #define PDMA_ABTSTS_ABTIF7_Pos (7) /*!< PDMA_T::ABTSTS: ABTIF7 Position */
  533. #define PDMA_ABTSTS_ABTIF7_Msk (0x1ul << PDMA_ABTSTS_ABTIF7_Pos) /*!< PDMA_T::ABTSTS: ABTIF7 Mask */
  534. #define PDMA_ABTSTS_ABTIF8_Pos (8) /*!< PDMA_T::ABTSTS: ABTIF8 Position */
  535. #define PDMA_ABTSTS_ABTIF8_Msk (0x1ul << PDMA_ABTSTS_ABTIF8_Pos) /*!< PDMA_T::ABTSTS: ABTIF8 Mask */
  536. #define PDMA_TDSTS_TDIF0_Pos (0) /*!< PDMA_T::TDSTS: TDIF0 Position */
  537. #define PDMA_TDSTS_TDIF0_Msk (0x1ul << PDMA_TDSTS_TDIF0_Pos) /*!< PDMA_T::TDSTS: TDIF0 Mask */
  538. #define PDMA_TDSTS_TDIF1_Pos (1) /*!< PDMA_T::TDSTS: TDIF1 Position */
  539. #define PDMA_TDSTS_TDIF1_Msk (0x1ul << PDMA_TDSTS_TDIF1_Pos) /*!< PDMA_T::TDSTS: TDIF1 Mask */
  540. #define PDMA_TDSTS_TDIF2_Pos (2) /*!< PDMA_T::TDSTS: TDIF2 Position */
  541. #define PDMA_TDSTS_TDIF2_Msk (0x1ul << PDMA_TDSTS_TDIF2_Pos) /*!< PDMA_T::TDSTS: TDIF2 Mask */
  542. #define PDMA_TDSTS_TDIF3_Pos (3) /*!< PDMA_T::TDSTS: TDIF3 Position */
  543. #define PDMA_TDSTS_TDIF3_Msk (0x1ul << PDMA_TDSTS_TDIF3_Pos) /*!< PDMA_T::TDSTS: TDIF3 Mask */
  544. #define PDMA_TDSTS_TDIF4_Pos (4) /*!< PDMA_T::TDSTS: TDIF4 Position */
  545. #define PDMA_TDSTS_TDIF4_Msk (0x1ul << PDMA_TDSTS_TDIF4_Pos) /*!< PDMA_T::TDSTS: TDIF4 Mask */
  546. #define PDMA_TDSTS_TDIF5_Pos (5) /*!< PDMA_T::TDSTS: TDIF5 Position */
  547. #define PDMA_TDSTS_TDIF5_Msk (0x1ul << PDMA_TDSTS_TDIF5_Pos) /*!< PDMA_T::TDSTS: TDIF5 Mask */
  548. #define PDMA_TDSTS_TDIF6_Pos (6) /*!< PDMA_T::TDSTS: TDIF6 Position */
  549. #define PDMA_TDSTS_TDIF6_Msk (0x1ul << PDMA_TDSTS_TDIF6_Pos) /*!< PDMA_T::TDSTS: TDIF6 Mask */
  550. #define PDMA_TDSTS_TDIF7_Pos (7) /*!< PDMA_T::TDSTS: TDIF7 Position */
  551. #define PDMA_TDSTS_TDIF7_Msk (0x1ul << PDMA_TDSTS_TDIF7_Pos) /*!< PDMA_T::TDSTS: TDIF7 Mask */
  552. #define PDMA_TDSTS_TDIF8_Pos (8) /*!< PDMA_T::TDSTS: TDIF8 Position */
  553. #define PDMA_TDSTS_TDIF8_Msk (0x1ul << PDMA_TDSTS_TDIF8_Pos) /*!< PDMA_T::TDSTS: TDIF8 Mask */
  554. #define PDMA_ALIGN_ALIGNn_Pos (0) /*!< PDMA_T::ALIGN: ALIGNn Position */
  555. #define PDMA_ALIGN_ALIGNn_Msk (0x1fful << PDMA_ALIGN_ALIGNn_Pos) /*!< PDMA_T::ALIGN: ALIGNn Mask */
  556. #define PDMA_TACTSTS_TXACTFn_Pos (0) /*!< PDMA_T::TACTSTS: TXACTFn Position */
  557. #define PDMA_TACTSTS_TXACTFn_Msk (0x1fful << PDMA_TACTSTS_TXACTFn_Pos) /*!< PDMA_T::TACTSTS: TXACTFn Mask */
  558. #define PDMA_TOUTPSC_TOUTPSC0_Pos (0) /*!< PDMA_T::TOUTPSC: TOUTPSC0 Position */
  559. #define PDMA_TOUTPSC_TOUTPSC0_Msk (0x7ul << PDMA_TOUTPSC_TOUTPSC0_Pos) /*!< PDMA_T::TOUTPSC: TOUTPSC0 Mask */
  560. #define PDMA_TOUTPSC_TOUTPSC1_Pos (4) /*!< PDMA_T::TOUTPSC: TOUTPSC1 Position */
  561. #define PDMA_TOUTPSC_TOUTPSC1_Msk (0x7ul << PDMA_TOUTPSC_TOUTPSC1_Pos) /*!< PDMA_T::TOUTPSC: TOUTPSC1 Mask */
  562. #define PDMA_TOUTEN_TOUTENn_Pos (0) /*!< PDMA_T::TOUTEN: TOUTENn Position */
  563. #define PDMA_TOUTEN_TOUTENn_Msk (0x3ul << PDMA_TOUTEN_TOUTENn_Pos) /*!< PDMA_T::TOUTEN: TOUTENn Mask */
  564. #define PDMA_TOUTIEN_TOUTIENn_Pos (0) /*!< PDMA_T::TOUTIEN: TOUTIENn Position */
  565. #define PDMA_TOUTIEN_TOUTIENn_Msk (0x3ul << PDMA_TOUTIEN_TOUTIENn_Pos) /*!< PDMA_T::TOUTIEN: TOUTIENn Mask */
  566. #define PDMA_SCATBA_SCATBA_Pos (16) /*!< PDMA_T::SCATBA: SCATBA Position */
  567. #define PDMA_SCATBA_SCATBA_Msk (0xfffful << PDMA_SCATBA_SCATBA_Pos) /*!< PDMA_T::SCATBA: SCATBA Mask */
  568. #define PDMA_TOC0_1_TOC0_Pos (0) /*!< PDMA_T::TOC0_1: TOC0 Position */
  569. #define PDMA_TOC0_1_TOC0_Msk (0xfffful << PDMA_TOC0_1_TOC0_Pos) /*!< PDMA_T::TOC0_1: TOC0 Mask */
  570. #define PDMA_TOC0_1_TOC1_Pos (16) /*!< PDMA_T::TOC0_1: TOC1 Position */
  571. #define PDMA_TOC0_1_TOC1_Msk (0xfffful << PDMA_TOC0_1_TOC1_Pos) /*!< PDMA_T::TOC0_1: TOC1 Mask */
  572. #define PDMA_CHRST_CHnRST_Pos (0) /*!< PDMA_T::CHRST: CHnRST Position */
  573. #define PDMA_CHRST_CHnRST_Msk (0x1fful << PDMA_CHRST_CHnRST_Pos) /*!< PDMA_T::CHRST: CHnRST Mask */
  574. #define PDMA_REQSEL0_3_REQSRC0_Pos (0) /*!< PDMA_T::REQSEL0_3: REQSRC0 Position */
  575. #define PDMA_REQSEL0_3_REQSRC0_Msk (0x3ful << PDMA_REQSEL0_3_REQSRC0_Pos) /*!< PDMA_T::REQSEL0_3: REQSRC0 Mask */
  576. #define PDMA_REQSEL0_3_REQSRC1_Pos (8) /*!< PDMA_T::REQSEL0_3: REQSRC1 Position */
  577. #define PDMA_REQSEL0_3_REQSRC1_Msk (0x3ful << PDMA_REQSEL0_3_REQSRC1_Pos) /*!< PDMA_T::REQSEL0_3: REQSRC1 Mask */
  578. #define PDMA_REQSEL0_3_REQSRC2_Pos (16) /*!< PDMA_T::REQSEL0_3: REQSRC2 Position */
  579. #define PDMA_REQSEL0_3_REQSRC2_Msk (0x3ful << PDMA_REQSEL0_3_REQSRC2_Pos) /*!< PDMA_T::REQSEL0_3: REQSRC2 Mask */
  580. #define PDMA_REQSEL0_3_REQSRC3_Pos (24) /*!< PDMA_T::REQSEL0_3: REQSRC3 Position */
  581. #define PDMA_REQSEL0_3_REQSRC3_Msk (0x3ful << PDMA_REQSEL0_3_REQSRC3_Pos) /*!< PDMA_T::REQSEL0_3: REQSRC3 Mask */
  582. #define PDMA_REQSEL4_7_REQSRC4_Pos (0) /*!< PDMA_T::REQSEL4_7: REQSRC4 Position */
  583. #define PDMA_REQSEL4_7_REQSRC4_Msk (0x3ful << PDMA_REQSEL4_7_REQSRC4_Pos) /*!< PDMA_T::REQSEL4_7: REQSRC4 Mask */
  584. #define PDMA_REQSEL4_7_REQSRC5_Pos (8) /*!< PDMA_T::REQSEL4_7: REQSRC5 Position */
  585. #define PDMA_REQSEL4_7_REQSRC5_Msk (0x3ful << PDMA_REQSEL4_7_REQSRC5_Pos) /*!< PDMA_T::REQSEL4_7: REQSRC5 Mask */
  586. #define PDMA_REQSEL4_7_REQSRC6_Pos (16) /*!< PDMA_T::REQSEL4_7: REQSRC6 Position */
  587. #define PDMA_REQSEL4_7_REQSRC6_Msk (0x3ful << PDMA_REQSEL4_7_REQSRC6_Pos) /*!< PDMA_T::REQSEL4_7: REQSRC6 Mask */
  588. #define PDMA_REQSEL4_7_REQSRC7_Pos (24) /*!< PDMA_T::REQSEL4_7: REQSRC7 Position */
  589. #define PDMA_REQSEL4_7_REQSRC7_Msk (0x3ful << PDMA_REQSEL4_7_REQSRC7_Pos) /*!< PDMA_T::REQSEL4_7: REQSRC7 Mask */
  590. #define PDMA_REQSEL8_REQSRC8_Pos (0) /*!< PDMA_T::REQSEL8: REQSRC8 Position */
  591. #define PDMA_REQSEL8_REQSRC8_Msk (0x3ful << PDMA_REQSEL8_REQSRC8_Pos) /*!< PDMA_T::REQSEL8: REQSRC8 Mask */
  592. /**@}*/ /* PDMA_CONST */
  593. /**@}*/ /* end of PDMA register group */
  594. /**@}*/ /* end of REGISTER group */
  595. #if defined ( __CC_ARM )
  596. #pragma no_anon_unions
  597. #endif
  598. #endif /* __PDMA_REG_H__ */