uuart_reg.h 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. /**************************************************************************//**
  2. * @file uuart_reg.h
  3. * @version V1.00
  4. * @brief UUART register definition header file
  5. *
  6. * SPDX-License-Identifier: Apache-2.0
  7. * @copyright (C) 2017-2020 Nuvoton Technology Corp. All rights reserved.
  8. *****************************************************************************/
  9. #ifndef __UUART_REG_H__
  10. #define __UUART_REG_H__
  11. #if defined ( __CC_ARM )
  12. #pragma anon_unions
  13. #endif
  14. /**
  15. @addtogroup REGISTER Control Register
  16. @{
  17. */
  18. /**
  19. @addtogroup UUART UART Mode of USCI Controller(UUART)
  20. Memory Mapped Structure for UUART Controller
  21. @{ */
  22. typedef struct
  23. {
  24. /**
  25. * @var UUART_T::CTL
  26. * Offset: 0x00 USCI Control Register
  27. * ---------------------------------------------------------------------------------------------------
  28. * |Bits |Field |Descriptions
  29. * | :----: | :----: | :---- |
  30. * |[2:0] |FUNMODE |Function Mode
  31. * | | |This bit field selects the protocol for this USCI controller
  32. * | | |Selecting a protocol that is not available or a reserved combination disables the USCI
  33. * | | |When switching between two protocols, the USCI has to be disabled before selecting a new protocol
  34. * | | |Simultaneously, the USCI will be reset when user write 000 to FUNMODE.
  35. * | | |000 = The USCI is disabled. All protocol related state machines are set to idle state.
  36. * | | |001 = The SPI protocol is selected.
  37. * | | |010 = The UART protocol is selected.
  38. * | | |100 = The I2C protocol is selected.
  39. * | | |Note: Other bit combinations are reserved.
  40. * @var UUART_T::INTEN
  41. * Offset: 0x04 USCI Interrupt Enable Register
  42. * ---------------------------------------------------------------------------------------------------
  43. * |Bits |Field |Descriptions
  44. * | :----: | :----: | :---- |
  45. * |[1] |TXSTIEN |Transmit Start Interrupt Enable Bit
  46. * | | |This bit enables the interrupt generation in case of a transmit start event.
  47. * | | |0 = The transmit start interrupt is disabled.
  48. * | | |1 = The transmit start interrupt is enabled.
  49. * |[2] |TXENDIEN |Transmit End Interrupt Enable Bit
  50. * | | |This bit enables the interrupt generation in case of a transmit finish event.
  51. * | | |0 = The transmit finish interrupt is disabled.
  52. * | | |1 = The transmit finish interrupt is enabled.
  53. * |[3] |RXSTIEN |Receive Start Interrupt Enable BIt
  54. * | | |This bit enables the interrupt generation in case of a receive start event.
  55. * | | |0 = The receive start interrupt is disabled.
  56. * | | |1 = The receive start interrupt is enabled.
  57. * |[4] |RXENDIEN |Receive End Interrupt Enable Bit
  58. * | | |This bit enables the interrupt generation in case of a receive finish event.
  59. * | | |0 = The receive end interrupt is disabled.
  60. * | | |1 = The receive end interrupt is enabled.
  61. * @var UUART_T::BRGEN
  62. * Offset: 0x08 USCI Baud Rate Generator Register
  63. * ---------------------------------------------------------------------------------------------------
  64. * |Bits |Field |Descriptions
  65. * | :----: | :----: | :---- |
  66. * |[0] |RCLKSEL |Reference Clock Source Selection
  67. * | | |This bit selects the source signal of reference clock (fREF_CLK).
  68. * | | |0 = Peripheral device clock fPCLK.
  69. * | | |1 = Reserved.
  70. * |[1] |PTCLKSEL |Protocol Clock Source Selection
  71. * | | |This bit selects the source signal of protocol clock (fPROT_CLK).
  72. * | | |0 = Reference clock fREF_CLK.
  73. * | | |1 = fREF_CLK2 (its frequency is half of fREF_CLK).
  74. * |[3:2] |SPCLKSEL |Sample Clock Source Selection
  75. * | | |This bit field used for the clock source selection of a sample clock (fSAMP_CLK) for the protocol processor.
  76. * | | |00 = fSAMP_CLK = fDIV_CLK.
  77. * | | |01 = fSAMP_CLK = fPROT_CLK.
  78. * | | |10 = fSAMP_CLK = fSCLK.
  79. * | | |11 = fSAMP_CLK = fREF_CLK.
  80. * |[4] |TMCNTEN |Timing Measurement Counter Enable Bit
  81. * | | |This bit enables the 10-bit timing measurement counter.
  82. * | | |0 = Timing measurement counter is Disabled.
  83. * | | |1 = Timing measurement counter is Enabled.
  84. * |[5] |TMCNTSRC |Timing Measurement Counter Clock Source Selection
  85. * | | |0 = Timing measurement counter with fPROT_CLK.
  86. * | | |1 = Timing measurement counter with fDIV_CLK.
  87. * |[9:8] |PDSCNT |Pre-divider for Sample Counter
  88. * | | |This bit field defines the divide ratio of the clock division from sample clock fSAMP_CLK
  89. * | | |The divided frequency fPDS_CNT = fSAMP_CLK / (PDSCNT+1).
  90. * |[14:10] |DSCNT |Denominator for Sample Counter
  91. * | | |This bit field defines the divide ratio of the sample clock fSAMP_CLK.
  92. * | | |The divided frequency fDS_CNT = fPDS_CNT / (DSCNT+1).
  93. * | | |Note: The maximum value of DSCNT is 0xF on UART mode and suggest to set over 4 to confirm the receiver data is sampled in right value
  94. * |[25:16] |CLKDIV |Clock Divider
  95. * | | |This bit field defines the ratio between the protocol clock frequency fPROT_CLK and
  96. * | | |the clock divider frequency fDIV_CLK (fDIV_CLK = fPROT_CLK / (CLKDIV+1) ).
  97. * | | |Note: In UART function, it can be updated by hardware in the 4th falling edge of the input data 0x55
  98. * | | |when the auto baud rate function (ABREN(USCI_PROTCTL[6])) is enabled
  99. * | | |The revised value is the average bit time between bit 5 and bit 6
  100. * | | |The user can use revised CLKDIV and new BRDETITV (USCI_PROTCTL[24:16]) to calculate the precise baud rate.
  101. * @var UUART_T::DATIN0
  102. * Offset: 0x10 USCI Input Data Signal Configuration Register 0
  103. * ---------------------------------------------------------------------------------------------------
  104. * |Bits |Field |Descriptions
  105. * | :----: | :----: | :---- |
  106. * |[0] |SYNCSEL |Input Signal Synchronization Selection
  107. * | | |This bit selects if the un-synchronized input signal (with optionally inverted) or
  108. * | | |the synchronized (and optionally filtered) signal can be used as input for the data shift unit.
  109. * | | |0 = The un-synchronized signal can be taken as input for the data shift unit.
  110. * | | |1 = The synchronized signal can be taken as input for the data shift unit.
  111. * |[2] |ININV |Input Signal Inverse Selection
  112. * | | |This bit defines the inverter enable of the input asynchronous signal.
  113. * | | |0 = The un-synchronized input signal will not be inverted.
  114. * | | |1 = The un-synchronized input signal will be inverted.
  115. * |[4:3] |EDGEDET |Input Signal Edge Detection Mode
  116. * | | |This bit field selects which edge actives the trigger event of input data signal.
  117. * | | |00 = The trigger event activation is disabled.
  118. * | | |01 = A rising edge activates the trigger event of input data signal.
  119. * | | |10 = A falling edge activates the trigger event of input data signal.
  120. * | | |11 = Both edges activate the trigger event of input data signal.
  121. * | | |Note: In UART function mode, it is suggested to set this bit field as 10.
  122. * @var UUART_T::CTLIN0
  123. * Offset: 0x20 USCI Input Control Signal Configuration Register 0
  124. * ---------------------------------------------------------------------------------------------------
  125. * |Bits |Field |Descriptions
  126. * | :----: | :----: | :---- |
  127. * |[0] |SYNCSEL |Input Synchronization Signal Selection
  128. * | | |This bit selects if the un-synchronized input signal (with optionally inverted) or
  129. * | | |the synchronized (and optionally filtered) signal can be used as input for the data shift unit.
  130. * | | |0 = The un-synchronized signal can be taken as input for the data shift unit.
  131. * | | |1 = The synchronized signal can be taken as input for the data shift unit.
  132. * |[2] |ININV |Input Signal Inverse Selection
  133. * | | |This bit defines the inverter enable of the input asynchronous signal.
  134. * | | |0 = The un-synchronized input signal will not be inverted.
  135. * | | |1 = The un-synchronized input signal will be inverted.
  136. * @var UUART_T::CLKIN
  137. * Offset: 0x28 USCI Input Clock Signal Configuration Register
  138. * ---------------------------------------------------------------------------------------------------
  139. * |Bits |Field |Descriptions
  140. * | :----: | :----: | :---- |
  141. * |[0] |SYNCSEL |Input Synchronization Signal Selection
  142. * | | |This bit selects if the un-synchronized input signal or
  143. * | | |the synchronized (and optionally filtered) signal can be used as input for the data shift unit.
  144. * | | |0 = The un-synchronized signal can be taken as input for the data shift unit.
  145. * | | |1 = The synchronized signal can be taken as input for the data shift unit.
  146. * @var UUART_T::LINECTL
  147. * Offset: 0x2C USCI Line Control Register
  148. * ---------------------------------------------------------------------------------------------------
  149. * |Bits |Field |Descriptions
  150. * | :----: | :----: | :---- |
  151. * |[0] |LSB |LSB First Transmission Selection
  152. * | | |0 = The MSB, which bit of transmit/receive data buffer depends on the setting of DWIDTH, is transmitted/received first.
  153. * | | |1 = The LSB, the bit 0 of data buffer, will be transmitted/received first.
  154. * |[5] |DATOINV |Data Output Inverse Selection
  155. * | | |This bit defines the relation between the internal shift data value and the output data signal of USCIx_DAT1 pin.
  156. * | | |0 = The value of USCIx_DAT1 is equal to the data shift register.
  157. * | | |1 = The value of USCIx_DAT1 is the inversion of data shift register.
  158. * |[7] |CTLOINV |Control Signal Output Inverse Selection
  159. * | | |This bit defines the relation between the internal control signal and the output control signal.
  160. * | | |0 = No effect.
  161. * | | |1 = The control signal will be inverted before its output.
  162. * | | |Note: In UART protocol, the control signal means nRTS signal.
  163. * |[11:8] |DWIDTH |Word Length of Transmission
  164. * | | |This bit field defines the data word length (amount of bits) for reception and transmission
  165. * | | |The data word is always right-aligned in the data buffer
  166. * | | |USCI support word length from 4 to 16 bits.
  167. * | | |0x0: The data word contains 16 bits located at bit positions [15:0].
  168. * | | |0x1: Reserved.
  169. * | | |0x2: Reserved.
  170. * | | |0x3: Reserved.
  171. * | | |0x4: The data word contains 4 bits located at bit positions [3:0].
  172. * | | |0x5: The data word contains 5 bits located at bit positions [4:0].
  173. * | | |..
  174. * | | |0xF: The data word contains 15 bits located at bit positions [14:0].
  175. * | | |Note: In UART protocol, the length can be configured as 6~13 bits.
  176. * @var UUART_T::TXDAT
  177. * Offset: 0x30 USCI Transmit Data Register
  178. * ---------------------------------------------------------------------------------------------------
  179. * |Bits |Field |Descriptions
  180. * | :----: | :----: | :---- |
  181. * |[15:0] |TXDAT |Transmit Data
  182. * | | |Software can use this bit field to write 16-bit transmit data for transmission.
  183. * @var UUART_T::RXDAT
  184. * Offset: 0x34 USCI Receive Data Register
  185. * ---------------------------------------------------------------------------------------------------
  186. * |Bits |Field |Descriptions
  187. * | :----: | :----: | :---- |
  188. * |[15:0] |RXDAT |Received Data
  189. * | | |This bit field monitors the received data which stored in receive data buffer.
  190. * | | |Note: RXDAT[15:13] indicate the same frame status of BREAK, FRMERR and PARITYERR (USCI_PROTSTS[7:5]).
  191. * @var UUART_T::BUFCTL
  192. * Offset: 0x38 USCI Transmit/Receive Buffer Control Register
  193. * ---------------------------------------------------------------------------------------------------
  194. * |Bits |Field |Descriptions
  195. * | :----: | :----: | :---- |
  196. * |[7] |TXCLR |Clear Transmit Buffer
  197. * | | |0 = No effect.
  198. * | | |1 = The transmit buffer is cleared (filling level is cleared and output pointer is set to input pointer value)
  199. * | | |Should only be used while the buffer is not taking part in data traffic.
  200. * | | |Note: It is cleared automatically after one PCLK cycle.
  201. * |[14] |RXOVIEN |Receive Buffer Overrun Error Interrupt Enable Control
  202. * | | |0 = Receive overrun interrupt Disabled.
  203. * | | |1 = Receive overrun interrupt Enabled.
  204. * |[15] |RXCLR |Clear Receive Buffer
  205. * | | |0 = No effect.
  206. * | | |1 = The receive buffer is cleared (filling level is cleared and output pointer is set to input pointer value)
  207. * | | |Should only be used while the buffer is not taking part in data traffic.
  208. * | | |Note: It is cleared automatically after one PCLK cycle.
  209. * |[16] |TXRST |Transmit Reset
  210. * | | |0 = No effect.
  211. * | | |1 = Reset the transmit-related counters, state machine, and the content of transmit shift register and data buffer.
  212. * | | |Note: It is cleared automatically after one PCLK cycle.
  213. * |[17] |RXRST |Receive Reset
  214. * | | |0 = No effect.
  215. * | | |1 = Reset the receive-related counters, state machine, and the content of receive shift register and data buffer.
  216. * | | |Note 1: It is cleared automatically after one PCLK cycle.
  217. * | | |Note 2: It is suggest to check the RXBUSY (USCI_PROTSTS[10]) before this bit will be set to 1.
  218. * @var UUART_T::BUFSTS
  219. * Offset: 0x3C USCI Transmit/Receive Buffer Status Register
  220. * ---------------------------------------------------------------------------------------------------
  221. * |Bits |Field |Descriptions
  222. * | :----: | :----: | :---- |
  223. * |[0] |RXEMPTY |Receive Buffer Empty Indicator
  224. * | | |0 = Receive buffer is not empty.
  225. * | | |1 = Receive buffer is empty.
  226. * |[1] |RXFULL |Receive Buffer Full Indicator
  227. * | | |0 = Receive buffer is not full.
  228. * | | |1 = Receive buffer is full.
  229. * |[3] |RXOVIF |Receive Buffer Over-run Error Interrupt Status
  230. * | | |This bit indicates that a receive buffer overrun error event has been detected
  231. * | | |If RXOVIEN (USCI_BUFCTL[14]) is enabled, the corresponding interrupt request is activated
  232. * | | |It is cleared by software writes 1 to this bit.
  233. * | | |0 = A receive buffer overrun error event has not been detected.
  234. * | | |1 = A receive buffer overrun error event has been detected.
  235. * |[8] |TXEMPTY |Transmit Buffer Empty Indicator
  236. * | | |0 = Transmit buffer is not empty.
  237. * | | |1 = Transmit buffer is empty.
  238. * |[9] |TXFULL |Transmit Buffer Full Indicator
  239. * | | |0 = Transmit buffer is not full.
  240. * | | |1 = Transmit buffer is full.
  241. * @var UUART_T::PDMACTL
  242. * Offset: 0x40 USCI PDMA Control Register
  243. * ---------------------------------------------------------------------------------------------------
  244. * |Bits |Field |Descriptions
  245. * | :----: | :----: | :---- |
  246. * |[0] |PDMARST |PDMA Reset
  247. * | | |0 = No effect.
  248. * | | |1 = Reset the USCI's PDMA control logic. This bit will be cleared to 0 automatically.
  249. * |[1] |TXPDMAEN |PDMA Transmit Channel Available
  250. * | | |0 = Transmit PDMA function Disabled.
  251. * | | |1 = Transmit PDMA function Enabled.
  252. * |[2] |RXPDMAEN |PDMA Receive Channel Available
  253. * | | |0 = Receive PDMA function Disabled.
  254. * | | |1 = Receive PDMA function Enabled.
  255. * |[3] |PDMAEN |PDMA Mode Enable Bit
  256. * | | |0 = PDMA function Disabled.
  257. * | | |1 = PDMA function Enabled.
  258. * @var UUART_T::WKCTL
  259. * Offset: 0x54 USCI Wake-up Control Register
  260. * ---------------------------------------------------------------------------------------------------
  261. * |Bits |Field |Descriptions
  262. * | :----: | :----: | :---- |
  263. * |[0] |WKEN |Wake-up Enable Bit
  264. * | | |0 = Wake-up function Disabled.
  265. * | | |1 = Wake-up function Enabled.
  266. * |[2] |PDBOPT |Power Down Blocking Option
  267. * | | |0 = If user attempts to enter Power-down mode by executing WFI while the protocol is in transferring, MCU will stop the transfer and enter Power-down mode immediately.
  268. * | | |1 = If user attempts to enter Power-down mode by executing WFI while the protocol is in transferring, the on-going transfer will not be stopped and MCU will enter idle mode immediately.
  269. * @var UUART_T::WKSTS
  270. * Offset: 0x58 USCI Wake-up Status Register
  271. * ---------------------------------------------------------------------------------------------------
  272. * |Bits |Field |Descriptions
  273. * | :----: | :----: | :---- |
  274. * |[0] |WKF |Wake-up Flag
  275. * | | |When chip is woken up from Power-down mode, this bit is set to 1
  276. * | | |Software can write 1 to clear this bit.
  277. * @var UUART_T::PROTCTL
  278. * Offset: 0x5C USCI Protocol Control Register
  279. * ---------------------------------------------------------------------------------------------------
  280. * |Bits |Field |Descriptions
  281. * | :----: | :----: | :---- |
  282. * |[0] |STOPB |Stop Bits
  283. * | | |This bit defines the number of stop bits in an UART frame.
  284. * | | |0 = The number of stop bits is 1.
  285. * | | |1 = The number of stop bits is 2.
  286. * |[1] |PARITYEN |Parity Enable Bit
  287. * | | |This bit defines the parity bit is enabled in an UART frame.
  288. * | | |0 = The parity bit Disabled.
  289. * | | |1 = The parity bit Enabled.
  290. * |[2] |EVENPARITY|Even Parity Enable Bit
  291. * | | |0 = Odd number of logic 1's is transmitted and checked in each word.
  292. * | | |1 = Even number of logic 1's is transmitted and checked in each word.
  293. * | | |Note: This bit has effect only when PARITYEN is set.
  294. * |[3] |RTSAUTOEN |nRTS Auto-flow Control Enable Bit
  295. * | | |When nRTS auto-flow is enabled, if the receiver buffer is full (RXFULL (USCI_BUFSTS[1] = 1'b1)), the UART will de-assert nRTS signal.
  296. * | | |0 = nRTS auto-flow control Disabled.
  297. * | | |1 = nRTS auto-flow control Enabled.
  298. * | | |Note: This bit has effect only when the RTSAUDIREN is not set.
  299. * |[4] |CTSAUTOEN |nCTS Auto-flow Control Enable Bit
  300. * | | |When nCTS auto-flow is enabled, the UART will send data to external device when nCTS input assert (UART will not send data to device if nCTS input is dis-asserted).
  301. * | | |0 = nCTS auto-flow control Disabled.
  302. * | | |1 = nCTS auto-flow control Enabled.
  303. * |[5] |RTSAUDIREN|nRTS Auto Direction Enable Bit
  304. * | | |When nRTS auto direction is enabled, if the transmitted bytes in the TX buffer is empty, the UART asserted nRTS signal automatically.
  305. * | | |0 = nRTS auto direction control Disabled.
  306. * | | |1 = nRTS auto direction control Enabled.
  307. * | | |Note 1: This bit is used for nRTS auto direction control for RS485.
  308. * | | |Note 2: This bit has effect only when the RTSAUTOEN is not set.
  309. * |[6] |ABREN |Auto-baud Rate Detect Enable Bit
  310. * | | |0 = Auto-baud rate detect function Disabled.
  311. * | | |1 = Auto-baud rate detect function Enabled.
  312. * | | |Note: When the auto - baud rate detect operation finishes, hardware will clear this bit
  313. * | | |The associated interrupt ABRDETIF (USCI_PROTST[9]) will be generated (If ARBIEN (USCI_PROTIEN [1]) is enabled).
  314. * |[9] |DATWKEN |Data Wake-up Mode Enable Bit
  315. * | | |0 = Data wake-up mode Disabled.
  316. * | | |1 = Data wake-up mode Enabled.
  317. * |[10] |CTSWKEN |nCTS Wake-up Mode Enable Bit
  318. * | | |0 = nCTS wake-up mode Disabled.
  319. * | | |1 = nCTS wake-up mode Enabled.
  320. * |[14:11] |WAKECNT |Wake-up Counter
  321. * | | |These bits field indicate how many clock cycle selected by fPDS_CNT do the slave can get the 1st bit (start bit) when the device is wake-up from Power-down mode.
  322. * |[24:16] |BRDETITV |Baud Rate Detection Interval
  323. * | | |This bit fields indicate how many clock cycle selected by TMCNTSRC (USCI_BRGEN [5]) does the slave calculates the baud rate in one bits
  324. * | | |The order of the bus shall be 1 and 0 step by step (e.g. the input data pattern shall be 0x55)
  325. * | | |The user can read the value to know the current input baud rate of the bus whenever the ABRDETIF (USCI_PROTCTL[9]) is set.
  326. * | | |Note: This bit can be cleared to 0 by software writing '0' to the BRDETITV.
  327. * |[26] |STICKEN |Stick Parity Enable Bit
  328. * | | |0 = Stick parity Disabled.
  329. * | | |1 = Stick parity Enabled.
  330. * | | |Note: Refer to RS-485 Support section for detail information.
  331. * |[29] |BCEN |Transmit Break Control Enable Bit
  332. * | | |0 = Transmit Break Control Disabled.
  333. * | | |1 = Transmit Break Control Enabled.
  334. * | | |Note: When this bit is set to logic 1, the serial data output (TX) is forced to the Spacing State (logic 0)
  335. * | | |This bit acts only on TX line and has no effect on the transmitter logic.
  336. * |[31] |PROTEN |UART Protocol Enable Bit
  337. * | | |0 = UART Protocol Disabled.
  338. * | | |1 = UART Protocol Enabled.
  339. * @var UUART_T::PROTIEN
  340. * Offset: 0x60 USCI Protocol Interrupt Enable Register
  341. * ---------------------------------------------------------------------------------------------------
  342. * |Bits |Field |Descriptions
  343. * | :----: | :----: | :---- |
  344. * |[1] |ABRIEN |Auto-baud Rate Interrupt Enable Bit
  345. * | | |0 = Auto-baud rate interrupt Disabled.
  346. * | | |1 = Auto-baud rate interrupt Enabled.
  347. * |[2] |RLSIEN |Receive Line Status Interrupt Enable Bit
  348. * | | |0 = Receive line status interrupt Disabled.
  349. * | | |1 = Receive line status interrupt Enabled.
  350. * | | |Note: USCI_PROTSTS[7:5] indicates the current interrupt event for receive line status interrupt.
  351. * @var UUART_T::PROTSTS
  352. * Offset: 0x64 USCI Protocol Status Register
  353. * ---------------------------------------------------------------------------------------------------
  354. * |Bits |Field |Descriptions
  355. * | :----: | :----: | :---- |
  356. * |[1] |TXSTIF |Transmit Start Interrupt Flag
  357. * | | |0 = A transmit start interrupt status has not occurred.
  358. * | | |1 = A transmit start interrupt status has occurred.
  359. * | | |Note 1: It is cleared by software writing one into this bit.
  360. * | | |Note 2: Used for user to load next transmit data when there is no data in transmit buffer.
  361. * |[2] |TXENDIF |Transmit End Interrupt Flag
  362. * | | |0 = A transmit end interrupt status has not occurred.
  363. * | | |1 = A transmit end interrupt status has occurred.
  364. * | | |Note: It is cleared by software writing one into this bit.
  365. * |[3] |RXSTIF |Receive Start Interrupt Flag
  366. * | | |0 = A receive start interrupt status has not occurred.
  367. * | | |1 = A receive start interrupt status has occurred.
  368. * | | |Note: It is cleared by software writing one into this bit.
  369. * |[4] |RXENDIF |Receive End Interrupt Flag
  370. * | | |0 = A receive finish interrupt status has not occurred.
  371. * | | |1 = A receive finish interrupt status has occurred.
  372. * | | |Note: It is cleared by software writing one into this bit.
  373. * |[5] |PARITYERR |Parity Error Flag
  374. * | | |This bit is set to logic 1 whenever the received character does not have a valid 'parity bit'.
  375. * | | |0 = No parity error is generated.
  376. * | | |1 = Parity error is generated.
  377. * | | |Note: This bit can be cleared by write '1' among the BREAK, FRMERR and PARITYERR bits.
  378. * |[6] |FRMERR |Framing Error Flag
  379. * | | |This bit is set to logic 1 whenever the received character does not have a valid 'stop bit'
  380. * | | |(that is, the stop bit following the last data bit or parity bit is detected as logic 0).
  381. * | | |0 = No framing error is generated.
  382. * | | |1 = Framing error is generated.
  383. * | | |Note: This bit can be cleared by write '1' among the BREAK, FRMERR and PARITYERR bits.
  384. * |[7] |BREAK |Break Flag
  385. * | | |This bit is set to logic 1 whenever the received data input (RX) is held in the 'spacing state'
  386. * | | |(logic 0) for longer than a full word transmission time (that is, the total time of start bit + data bits + parity + stop bits).
  387. * | | |0 = No Break is generated.
  388. * | | |1 = Break is generated in the receiver bus.
  389. * | | |Note: This bit can be cleared by write '1' among the BREAK, FRMERR and PARITYERR bits.
  390. * |[9] |ABRDETIF |Auto-baud Rate Interrupt Flag
  391. * | | |This bit is set when auto-baud rate detection is done among the falling edge of the input data
  392. * | | |If the ABRIEN (USCI_PROTCTL[6]) is set, the auto-baud rate interrupt will be generated
  393. * | | |This bit can be set 4 times when the input data pattern is 0x55 and it is cleared before the next falling edge of the input bus.
  394. * | | |0 = Auto-baud rate detect function is not done.
  395. * | | |1 = One Bit auto-baud rate detect function is done.
  396. * | | |Note: This bit can be cleared by writing '1' to it.
  397. * |[10] |RXBUSY |RX Bus Status Flag (Read Only)
  398. * | | |This bit indicates the busy status of the receiver.
  399. * | | |0 = The receiver is Idle.
  400. * | | |1 = The receiver is BUSY.
  401. * |[11] |ABERRSTS |Auto-baud Rate Error Status
  402. * | | |This bit is set when auto-baud rate detection counter overrun
  403. * | | |When the auto-baud rate counter overrun, the user shall revise the CLKDIV (USCI_BRGEN[25:16]) value and
  404. * | | |enable ABREN (USCI_PROTCTL[6]) to detect the correct baud rate again.
  405. * | | |0 = Auto-baud rate detect counter is not overrun.
  406. * | | |1 = Auto-baud rate detect counter is overrun.
  407. * | | |Note 1: This bit is set at the same time of ABRDETIF.
  408. * | | |Note 2: This bit can be cleared by writing '1' to ABRDETIF or ABERRSTS.
  409. * |[16] |CTSSYNCLV |nCTS Synchronized Level Status (Read Only)
  410. * | | |This bit used to indicate the current status of the internal synchronized nCTS signal.
  411. * | | |0 = The internal synchronized nCTS is low.
  412. * | | |1 = The internal synchronized nCTS is high.
  413. * |[17] |CTSLV |nCTS Pin Status (Read Only)
  414. * | | |This bit used to monitor the current status of nCTS pin input.
  415. * | | |0 = nCTS pin input is low level voltage logic state.
  416. * | | |1 = nCTS pin input is high level voltage logic state.
  417. */
  418. __IO uint32_t CTL; /*!< [0x0000] USCI Control Register */
  419. __IO uint32_t INTEN; /*!< [0x0004] USCI Interrupt Enable Register */
  420. __IO uint32_t BRGEN; /*!< [0x0008] USCI Baud Rate Generator Register */
  421. /// @cond HIDDEN_SYMBOLS
  422. __I uint32_t RESERVE0[1];
  423. /// @endcond //HIDDEN_SYMBOLS
  424. __IO uint32_t DATIN0; /*!< [0x0010] USCI Input Data Signal Configuration Register 0 */
  425. /// @cond HIDDEN_SYMBOLS
  426. __I uint32_t RESERVE1[3];
  427. /// @endcond //HIDDEN_SYMBOLS
  428. __IO uint32_t CTLIN0; /*!< [0x0020] USCI Input Control Signal Configuration Register 0 */
  429. /// @cond HIDDEN_SYMBOLS
  430. __I uint32_t RESERVE2[1];
  431. /// @endcond //HIDDEN_SYMBOLS
  432. __IO uint32_t CLKIN; /*!< [0x0028] USCI Input Clock Signal Configuration Register */
  433. __IO uint32_t LINECTL; /*!< [0x002c] USCI Line Control Register */
  434. __IO uint32_t TXDAT; /*!< [0x0030] USCI Transmit Data Register */
  435. __IO uint32_t RXDAT; /*!< [0x0034] USCI Receive Data Register */
  436. __IO uint32_t BUFCTL; /*!< [0x0038] USCI Transmit/Receive Buffer Control Register */
  437. __IO uint32_t BUFSTS; /*!< [0x003c] USCI Transmit/Receive Buffer Status Register */
  438. __IO uint32_t PDMACTL; /*!< [0x0040] USCI PDMA Control Register */
  439. /// @cond HIDDEN_SYMBOLS
  440. __I uint32_t RESERVE3[4];
  441. /// @endcond //HIDDEN_SYMBOLS
  442. __IO uint32_t WKCTL; /*!< [0x0054] USCI Wake-up Control Register */
  443. __IO uint32_t WKSTS; /*!< [0x0058] USCI Wake-up Status Register */
  444. __IO uint32_t PROTCTL; /*!< [0x005c] USCI Protocol Control Register */
  445. __IO uint32_t PROTIEN; /*!< [0x0060] USCI Protocol Interrupt Enable Register */
  446. __IO uint32_t PROTSTS; /*!< [0x0064] USCI Protocol Status Register */
  447. } UUART_T;
  448. /**
  449. @addtogroup UUART_CONST UUART Bit Field Definition
  450. Constant Definitions for UUART Controller
  451. @{ */
  452. #define UUART_CTL_FUNMODE_Pos (0) /*!< UUART_T::CTL: FUNMODE Position */
  453. #define UUART_CTL_FUNMODE_Msk (0x7ul << UUART_CTL_FUNMODE_Pos) /*!< UUART_T::CTL: FUNMODE Mask */
  454. #define UUART_INTEN_TXSTIEN_Pos (1) /*!< UUART_T::INTEN: TXSTIEN Position */
  455. #define UUART_INTEN_TXSTIEN_Msk (0x1ul << UUART_INTEN_TXSTIEN_Pos) /*!< UUART_T::INTEN: TXSTIEN Mask */
  456. #define UUART_INTEN_TXENDIEN_Pos (2) /*!< UUART_T::INTEN: TXENDIEN Position */
  457. #define UUART_INTEN_TXENDIEN_Msk (0x1ul << UUART_INTEN_TXENDIEN_Pos) /*!< UUART_T::INTEN: TXENDIEN Mask */
  458. #define UUART_INTEN_RXSTIEN_Pos (3) /*!< UUART_T::INTEN: RXSTIEN Position */
  459. #define UUART_INTEN_RXSTIEN_Msk (0x1ul << UUART_INTEN_RXSTIEN_Pos) /*!< UUART_T::INTEN: RXSTIEN Mask */
  460. #define UUART_INTEN_RXENDIEN_Pos (4) /*!< UUART_T::INTEN: RXENDIEN Position */
  461. #define UUART_INTEN_RXENDIEN_Msk (0x1ul << UUART_INTEN_RXENDIEN_Pos) /*!< UUART_T::INTEN: RXENDIEN Mask */
  462. #define UUART_BRGEN_RCLKSEL_Pos (0) /*!< UUART_T::BRGEN: RCLKSEL Position */
  463. #define UUART_BRGEN_RCLKSEL_Msk (0x1ul << UUART_BRGEN_RCLKSEL_Pos) /*!< UUART_T::BRGEN: RCLKSEL Mask */
  464. #define UUART_BRGEN_PTCLKSEL_Pos (1) /*!< UUART_T::BRGEN: PTCLKSEL Position */
  465. #define UUART_BRGEN_PTCLKSEL_Msk (0x1ul << UUART_BRGEN_PTCLKSEL_Pos) /*!< UUART_T::BRGEN: PTCLKSEL Mask */
  466. #define UUART_BRGEN_SPCLKSEL_Pos (2) /*!< UUART_T::BRGEN: SPCLKSEL Position */
  467. #define UUART_BRGEN_SPCLKSEL_Msk (0x3ul << UUART_BRGEN_SPCLKSEL_Pos) /*!< UUART_T::BRGEN: SPCLKSEL Mask */
  468. #define UUART_BRGEN_TMCNTEN_Pos (4) /*!< UUART_T::BRGEN: TMCNTEN Position */
  469. #define UUART_BRGEN_TMCNTEN_Msk (0x1ul << UUART_BRGEN_TMCNTEN_Pos) /*!< UUART_T::BRGEN: TMCNTEN Mask */
  470. #define UUART_BRGEN_TMCNTSRC_Pos (5) /*!< UUART_T::BRGEN: TMCNTSRC Position */
  471. #define UUART_BRGEN_TMCNTSRC_Msk (0x1ul << UUART_BRGEN_TMCNTSRC_Pos) /*!< UUART_T::BRGEN: TMCNTSRC Mask */
  472. #define UUART_BRGEN_PDSCNT_Pos (8) /*!< UUART_T::BRGEN: PDSCNT Position */
  473. #define UUART_BRGEN_PDSCNT_Msk (0x3ul << UUART_BRGEN_PDSCNT_Pos) /*!< UUART_T::BRGEN: PDSCNT Mask */
  474. #define UUART_BRGEN_DSCNT_Pos (10) /*!< UUART_T::BRGEN: DSCNT Position */
  475. #define UUART_BRGEN_DSCNT_Msk (0x1ful << UUART_BRGEN_DSCNT_Pos) /*!< UUART_T::BRGEN: DSCNT Mask */
  476. #define UUART_BRGEN_CLKDIV_Pos (16) /*!< UUART_T::BRGEN: CLKDIV Position */
  477. #define UUART_BRGEN_CLKDIV_Msk (0x3fful << UUART_BRGEN_CLKDIV_Pos) /*!< UUART_T::BRGEN: CLKDIV Mask */
  478. #define UUART_DATIN0_SYNCSEL_Pos (0) /*!< UUART_T::DATIN0: SYNCSEL Position */
  479. #define UUART_DATIN0_SYNCSEL_Msk (0x1ul << UUART_DATIN0_SYNCSEL_Pos) /*!< UUART_T::DATIN0: SYNCSEL Mask */
  480. #define UUART_DATIN0_ININV_Pos (2) /*!< UUART_T::DATIN0: ININV Position */
  481. #define UUART_DATIN0_ININV_Msk (0x1ul << UUART_DATIN0_ININV_Pos) /*!< UUART_T::DATIN0: ININV Mask */
  482. #define UUART_DATIN0_EDGEDET_Pos (3) /*!< UUART_T::DATIN0: EDGEDET Position */
  483. #define UUART_DATIN0_EDGEDET_Msk (0x3ul << UUART_DATIN0_EDGEDET_Pos) /*!< UUART_T::DATIN0: EDGEDET Mask */
  484. #define UUART_CTLIN0_SYNCSEL_Pos (0) /*!< UUART_T::CTLIN0: SYNCSEL Position */
  485. #define UUART_CTLIN0_SYNCSEL_Msk (0x1ul << UUART_CTLIN0_SYNCSEL_Pos) /*!< UUART_T::CTLIN0: SYNCSEL Mask */
  486. #define UUART_CTLIN0_ININV_Pos (2) /*!< UUART_T::CTLIN0: ININV Position */
  487. #define UUART_CTLIN0_ININV_Msk (0x1ul << UUART_CTLIN0_ININV_Pos) /*!< UUART_T::CTLIN0: ININV Mask */
  488. #define UUART_CLKIN_SYNCSEL_Pos (0) /*!< UUART_T::CLKIN: SYNCSEL Position */
  489. #define UUART_CLKIN_SYNCSEL_Msk (0x1ul << UUART_CLKIN_SYNCSEL_Pos) /*!< UUART_T::CLKIN: SYNCSEL Mask */
  490. #define UUART_LINECTL_LSB_Pos (0) /*!< UUART_T::LINECTL: LSB Position */
  491. #define UUART_LINECTL_LSB_Msk (0x1ul << UUART_LINECTL_LSB_Pos) /*!< UUART_T::LINECTL: LSB Mask */
  492. #define UUART_LINECTL_DATOINV_Pos (5) /*!< UUART_T::LINECTL: DATOINV Position */
  493. #define UUART_LINECTL_DATOINV_Msk (0x1ul << UUART_LINECTL_DATOINV_Pos) /*!< UUART_T::LINECTL: DATOINV Mask */
  494. #define UUART_LINECTL_CTLOINV_Pos (7) /*!< UUART_T::LINECTL: CTLOINV Position */
  495. #define UUART_LINECTL_CTLOINV_Msk (0x1ul << UUART_LINECTL_CTLOINV_Pos) /*!< UUART_T::LINECTL: CTLOINV Mask */
  496. #define UUART_LINECTL_DWIDTH_Pos (8) /*!< UUART_T::LINECTL: DWIDTH Position */
  497. #define UUART_LINECTL_DWIDTH_Msk (0xful << UUART_LINECTL_DWIDTH_Pos) /*!< UUART_T::LINECTL: DWIDTH Mask */
  498. #define UUART_TXDAT_TXDAT_Pos (0) /*!< UUART_T::TXDAT: TXDAT Position */
  499. #define UUART_TXDAT_TXDAT_Msk (0xfffful << UUART_TXDAT_TXDAT_Pos) /*!< UUART_T::TXDAT: TXDAT Mask */
  500. #define UUART_RXDAT_RXDAT_Pos (0) /*!< UUART_T::RXDAT: RXDAT Position */
  501. #define UUART_RXDAT_RXDAT_Msk (0xfffful << UUART_RXDAT_RXDAT_Pos) /*!< UUART_T::RXDAT: RXDAT Mask */
  502. #define UUART_BUFCTL_TXCLR_Pos (7) /*!< UUART_T::BUFCTL: TXCLR Position */
  503. #define UUART_BUFCTL_TXCLR_Msk (0x1ul << UUART_BUFCTL_TXCLR_Pos) /*!< UUART_T::BUFCTL: TXCLR Mask */
  504. #define UUART_BUFCTL_RXOVIEN_Pos (14) /*!< UUART_T::BUFCTL: RXOVIEN Position */
  505. #define UUART_BUFCTL_RXOVIEN_Msk (0x1ul << UUART_BUFCTL_RXOVIEN_Pos) /*!< UUART_T::BUFCTL: RXOVIEN Mask */
  506. #define UUART_BUFCTL_RXCLR_Pos (15) /*!< UUART_T::BUFCTL: RXCLR Position */
  507. #define UUART_BUFCTL_RXCLR_Msk (0x1ul << UUART_BUFCTL_RXCLR_Pos) /*!< UUART_T::BUFCTL: RXCLR Mask */
  508. #define UUART_BUFCTL_TXRST_Pos (16) /*!< UUART_T::BUFCTL: TXRST Position */
  509. #define UUART_BUFCTL_TXRST_Msk (0x1ul << UUART_BUFCTL_TXRST_Pos) /*!< UUART_T::BUFCTL: TXRST Mask */
  510. #define UUART_BUFCTL_RXRST_Pos (17) /*!< UUART_T::BUFCTL: RXRST Position */
  511. #define UUART_BUFCTL_RXRST_Msk (0x1ul << UUART_BUFCTL_RXRST_Pos) /*!< UUART_T::BUFCTL: RXRST Mask */
  512. #define UUART_BUFSTS_RXEMPTY_Pos (0) /*!< UUART_T::BUFSTS: RXEMPTY Position */
  513. #define UUART_BUFSTS_RXEMPTY_Msk (0x1ul << UUART_BUFSTS_RXEMPTY_Pos) /*!< UUART_T::BUFSTS: RXEMPTY Mask */
  514. #define UUART_BUFSTS_RXFULL_Pos (1) /*!< UUART_T::BUFSTS: RXFULL Position */
  515. #define UUART_BUFSTS_RXFULL_Msk (0x1ul << UUART_BUFSTS_RXFULL_Pos) /*!< UUART_T::BUFSTS: RXFULL Mask */
  516. #define UUART_BUFSTS_RXOVIF_Pos (3) /*!< UUART_T::BUFSTS: RXOVIF Position */
  517. #define UUART_BUFSTS_RXOVIF_Msk (0x1ul << UUART_BUFSTS_RXOVIF_Pos) /*!< UUART_T::BUFSTS: RXOVIF Mask */
  518. #define UUART_BUFSTS_TXEMPTY_Pos (8) /*!< UUART_T::BUFSTS: TXEMPTY Position */
  519. #define UUART_BUFSTS_TXEMPTY_Msk (0x1ul << UUART_BUFSTS_TXEMPTY_Pos) /*!< UUART_T::BUFSTS: TXEMPTY Mask */
  520. #define UUART_BUFSTS_TXFULL_Pos (9) /*!< UUART_T::BUFSTS: TXFULL Position */
  521. #define UUART_BUFSTS_TXFULL_Msk (0x1ul << UUART_BUFSTS_TXFULL_Pos) /*!< UUART_T::BUFSTS: TXFULL Mask */
  522. #define UUART_PDMACTL_PDMARST_Pos (0) /*!< UUART_T::PDMACTL: PDMARST Position */
  523. #define UUART_PDMACTL_PDMARST_Msk (0x1ul << UUART_PDMACTL_PDMARST_Pos) /*!< UUART_T::PDMACTL: PDMARST Mask */
  524. #define UUART_PDMACTL_TXPDMAEN_Pos (1) /*!< UUART_T::PDMACTL: TXPDMAEN Position */
  525. #define UUART_PDMACTL_TXPDMAEN_Msk (0x1ul << UUART_PDMACTL_TXPDMAEN_Pos) /*!< UUART_T::PDMACTL: TXPDMAEN Mask */
  526. #define UUART_PDMACTL_RXPDMAEN_Pos (2) /*!< UUART_T::PDMACTL: RXPDMAEN Position */
  527. #define UUART_PDMACTL_RXPDMAEN_Msk (0x1ul << UUART_PDMACTL_RXPDMAEN_Pos) /*!< UUART_T::PDMACTL: RXPDMAEN Mask */
  528. #define UUART_PDMACTL_PDMAEN_Pos (3) /*!< UUART_T::PDMACTL: PDMAEN Position */
  529. #define UUART_PDMACTL_PDMAEN_Msk (0x1ul << UUART_PDMACTL_PDMAEN_Pos) /*!< UUART_T::PDMACTL: PDMAEN Mask */
  530. #define UUART_WKCTL_WKEN_Pos (0) /*!< UUART_T::WKCTL: WKEN Position */
  531. #define UUART_WKCTL_WKEN_Msk (0x1ul << UUART_WKCTL_WKEN_Pos) /*!< UUART_T::WKCTL: WKEN Mask */
  532. #define UUART_WKCTL_PDBOPT_Pos (2) /*!< UUART_T::WKCTL: PDBOPT Position */
  533. #define UUART_WKCTL_PDBOPT_Msk (0x1ul << UUART_WKCTL_PDBOPT_Pos) /*!< UUART_T::WKCTL: PDBOPT Mask */
  534. #define UUART_WKSTS_WKF_Pos (0) /*!< UUART_T::WKSTS: WKF Position */
  535. #define UUART_WKSTS_WKF_Msk (0x1ul << UUART_WKSTS_WKF_Pos) /*!< UUART_T::WKSTS: WKF Mask */
  536. #define UUART_PROTCTL_STOPB_Pos (0) /*!< UUART_T::PROTCTL: STOPB Position */
  537. #define UUART_PROTCTL_STOPB_Msk (0x1ul << UUART_PROTCTL_STOPB_Pos) /*!< UUART_T::PROTCTL: STOPB Mask */
  538. #define UUART_PROTCTL_PARITYEN_Pos (1) /*!< UUART_T::PROTCTL: PARITYEN Position */
  539. #define UUART_PROTCTL_PARITYEN_Msk (0x1ul << UUART_PROTCTL_PARITYEN_Pos) /*!< UUART_T::PROTCTL: PARITYEN Mask */
  540. #define UUART_PROTCTL_EVENPARITY_Pos (2) /*!< UUART_T::PROTCTL: EVENPARITY Position */
  541. #define UUART_PROTCTL_EVENPARITY_Msk (0x1ul << UUART_PROTCTL_EVENPARITY_Pos) /*!< UUART_T::PROTCTL: EVENPARITY Mask */
  542. #define UUART_PROTCTL_RTSAUTOEN_Pos (3) /*!< UUART_T::PROTCTL: RTSAUTOEN Position */
  543. #define UUART_PROTCTL_RTSAUTOEN_Msk (0x1ul << UUART_PROTCTL_RTSAUTOEN_Pos) /*!< UUART_T::PROTCTL: RTSAUTOEN Mask */
  544. #define UUART_PROTCTL_CTSAUTOEN_Pos (4) /*!< UUART_T::PROTCTL: CTSAUTOEN Position */
  545. #define UUART_PROTCTL_CTSAUTOEN_Msk (0x1ul << UUART_PROTCTL_CTSAUTOEN_Pos) /*!< UUART_T::PROTCTL: CTSAUTOEN Mask */
  546. #define UUART_PROTCTL_RTSAUDIREN_Pos (5) /*!< UUART_T::PROTCTL: RTSAUDIREN Position */
  547. #define UUART_PROTCTL_RTSAUDIREN_Msk (0x1ul << UUART_PROTCTL_RTSAUDIREN_Pos) /*!< UUART_T::PROTCTL: RTSAUDIREN Mask */
  548. #define UUART_PROTCTL_ABREN_Pos (6) /*!< UUART_T::PROTCTL: ABREN Position */
  549. #define UUART_PROTCTL_ABREN_Msk (0x1ul << UUART_PROTCTL_ABREN_Pos) /*!< UUART_T::PROTCTL: ABREN Mask */
  550. #define UUART_PROTCTL_DATWKEN_Pos (9) /*!< UUART_T::PROTCTL: DATWKEN Position */
  551. #define UUART_PROTCTL_DATWKEN_Msk (0x1ul << UUART_PROTCTL_DATWKEN_Pos) /*!< UUART_T::PROTCTL: DATWKEN Mask */
  552. #define UUART_PROTCTL_CTSWKEN_Pos (10) /*!< UUART_T::PROTCTL: CTSWKEN Position */
  553. #define UUART_PROTCTL_CTSWKEN_Msk (0x1ul << UUART_PROTCTL_CTSWKEN_Pos) /*!< UUART_T::PROTCTL: CTSWKEN Mask */
  554. #define UUART_PROTCTL_WAKECNT_Pos (11) /*!< UUART_T::PROTCTL: WAKECNT Position */
  555. #define UUART_PROTCTL_WAKECNT_Msk (0xful << UUART_PROTCTL_WAKECNT_Pos) /*!< UUART_T::PROTCTL: WAKECNT Mask */
  556. #define UUART_PROTCTL_BRDETITV_Pos (16) /*!< UUART_T::PROTCTL: BRDETITV Position */
  557. #define UUART_PROTCTL_BRDETITV_Msk (0x1fful << UUART_PROTCTL_BRDETITV_Pos) /*!< UUART_T::PROTCTL: BRDETITV Mask */
  558. #define UUART_PROTCTL_STICKEN_Pos (26) /*!< UUART_T::PROTCTL: STICKEN Position */
  559. #define UUART_PROTCTL_STICKEN_Msk (0x1ul << UUART_PROTCTL_STICKEN_Pos) /*!< UUART_T::PROTCTL: STICKEN Mask */
  560. #define UUART_PROTCTL_BCEN_Pos (29) /*!< UUART_T::PROTCTL: BCEN Position */
  561. #define UUART_PROTCTL_BCEN_Msk (0x1ul << UUART_PROTCTL_BCEN_Pos) /*!< UUART_T::PROTCTL: BCEN Mask */
  562. #define UUART_PROTCTL_PROTEN_Pos (31) /*!< UUART_T::PROTCTL: PROTEN Position */
  563. #define UUART_PROTCTL_PROTEN_Msk (0x1ul << UUART_PROTCTL_PROTEN_Pos) /*!< UUART_T::PROTCTL: PROTEN Mask */
  564. #define UUART_PROTIEN_ABRIEN_Pos (1) /*!< UUART_T::PROTIEN: ABRIEN Position */
  565. #define UUART_PROTIEN_ABRIEN_Msk (0x1ul << UUART_PROTIEN_ABRIEN_Pos) /*!< UUART_T::PROTIEN: ABRIEN Mask */
  566. #define UUART_PROTIEN_RLSIEN_Pos (2) /*!< UUART_T::PROTIEN: RLSIEN Position */
  567. #define UUART_PROTIEN_RLSIEN_Msk (0x1ul << UUART_PROTIEN_RLSIEN_Pos) /*!< UUART_T::PROTIEN: RLSIEN Mask */
  568. #define UUART_PROTSTS_TXSTIF_Pos (1) /*!< UUART_T::PROTSTS: TXSTIF Position */
  569. #define UUART_PROTSTS_TXSTIF_Msk (0x1ul << UUART_PROTSTS_TXSTIF_Pos) /*!< UUART_T::PROTSTS: TXSTIF Mask */
  570. #define UUART_PROTSTS_TXENDIF_Pos (2) /*!< UUART_T::PROTSTS: TXENDIF Position */
  571. #define UUART_PROTSTS_TXENDIF_Msk (0x1ul << UUART_PROTSTS_TXENDIF_Pos) /*!< UUART_T::PROTSTS: TXENDIF Mask */
  572. #define UUART_PROTSTS_RXSTIF_Pos (3) /*!< UUART_T::PROTSTS: RXSTIF Position */
  573. #define UUART_PROTSTS_RXSTIF_Msk (0x1ul << UUART_PROTSTS_RXSTIF_Pos) /*!< UUART_T::PROTSTS: RXSTIF Mask */
  574. #define UUART_PROTSTS_RXENDIF_Pos (4) /*!< UUART_T::PROTSTS: RXENDIF Position */
  575. #define UUART_PROTSTS_RXENDIF_Msk (0x1ul << UUART_PROTSTS_RXENDIF_Pos) /*!< UUART_T::PROTSTS: RXENDIF Mask */
  576. #define UUART_PROTSTS_PARITYERR_Pos (5) /*!< UUART_T::PROTSTS: PARITYERR Position */
  577. #define UUART_PROTSTS_PARITYERR_Msk (0x1ul << UUART_PROTSTS_PARITYERR_Pos) /*!< UUART_T::PROTSTS: PARITYERR Mask */
  578. #define UUART_PROTSTS_FRMERR_Pos (6) /*!< UUART_T::PROTSTS: FRMERR Position */
  579. #define UUART_PROTSTS_FRMERR_Msk (0x1ul << UUART_PROTSTS_FRMERR_Pos) /*!< UUART_T::PROTSTS: FRMERR Mask */
  580. #define UUART_PROTSTS_BREAK_Pos (7) /*!< UUART_T::PROTSTS: BREAK Position */
  581. #define UUART_PROTSTS_BREAK_Msk (0x1ul << UUART_PROTSTS_BREAK_Pos) /*!< UUART_T::PROTSTS: BREAK Mask */
  582. #define UUART_PROTSTS_ABRDETIF_Pos (9) /*!< UUART_T::PROTSTS: ABRDETIF Position */
  583. #define UUART_PROTSTS_ABRDETIF_Msk (0x1ul << UUART_PROTSTS_ABRDETIF_Pos) /*!< UUART_T::PROTSTS: ABRDETIF Mask */
  584. #define UUART_PROTSTS_RXBUSY_Pos (10) /*!< UUART_T::PROTSTS: RXBUSY Position */
  585. #define UUART_PROTSTS_RXBUSY_Msk (0x1ul << UUART_PROTSTS_RXBUSY_Pos) /*!< UUART_T::PROTSTS: RXBUSY Mask */
  586. #define UUART_PROTSTS_ABERRSTS_Pos (11) /*!< UUART_T::PROTSTS: ABERRSTS Position */
  587. #define UUART_PROTSTS_ABERRSTS_Msk (0x1ul << UUART_PROTSTS_ABERRSTS_Pos) /*!< UUART_T::PROTSTS: ABERRSTS Mask */
  588. #define UUART_PROTSTS_CTSSYNCLV_Pos (16) /*!< UUART_T::PROTSTS: CTSSYNCLV Position */
  589. #define UUART_PROTSTS_CTSSYNCLV_Msk (0x1ul << UUART_PROTSTS_CTSSYNCLV_Pos) /*!< UUART_T::PROTSTS: CTSSYNCLV Mask */
  590. #define UUART_PROTSTS_CTSLV_Pos (17) /*!< UUART_T::PROTSTS: CTSLV Position */
  591. #define UUART_PROTSTS_CTSLV_Msk (0x1ul << UUART_PROTSTS_CTSLV_Pos) /*!< UUART_T::PROTSTS: CTSLV Mask */
  592. /**@}*/ /* UUART_CONST */
  593. /**@}*/ /* end of UUART register group */
  594. /**@}*/ /* end of REGISTER group */
  595. #if defined ( __CC_ARM )
  596. #pragma no_anon_unions
  597. #endif
  598. #endif /* __UUART_REG_H__ */