IfxAsclin_regdef.h 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. /**
  2. * \file IfxAsclin_regdef.h
  3. * \brief
  4. * \copyright Copyright (c) 2014 Infineon Technologies AG. All rights reserved.
  5. *
  6. * Version: TC23XADAS_UM_V1.0P1.R0
  7. * Specification: tc23xadas_um_sfrs_MCSFR.xml (Revision: UM_V1.0p1)
  8. * MAY BE CHANGED BY USER [yes/no]: No
  9. *
  10. * IMPORTANT NOTICE
  11. *
  12. * Infineon Technologies AG (Infineon) is supplying this file for use
  13. * exclusively with Infineon's microcontroller products. This file can be freely
  14. * distributed within development tools that are supporting such microcontroller
  15. * products.
  16. *
  17. * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
  18. * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  19. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
  20. * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
  21. * OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
  22. *
  23. * \defgroup IfxLld_Asclin Asclin
  24. * \ingroup IfxLld
  25. *
  26. * \defgroup IfxLld_Asclin_Bitfields Bitfields
  27. * \ingroup IfxLld_Asclin
  28. *
  29. * \defgroup IfxLld_Asclin_union Union
  30. * \ingroup IfxLld_Asclin
  31. *
  32. * \defgroup IfxLld_Asclin_struct Struct
  33. * \ingroup IfxLld_Asclin
  34. *
  35. */
  36. #ifndef IFXASCLIN_REGDEF_H
  37. #define IFXASCLIN_REGDEF_H 1
  38. /******************************************************************************/
  39. #include "Ifx_TypesReg.h"
  40. /******************************************************************************/
  41. /** \addtogroup IfxLld_Asclin_Bitfields
  42. * \{ */
  43. /** \\brief Access Enable Register 0 */
  44. typedef struct _Ifx_ASCLIN_ACCEN0_Bits
  45. {
  46. unsigned int EN0:1; /**< \brief [0:0] Access Enable for Master TAG ID 0 (rw) */
  47. unsigned int EN1:1; /**< \brief [1:1] Access Enable for Master TAG ID 1 (rw) */
  48. unsigned int EN2:1; /**< \brief [2:2] Access Enable for Master TAG ID 2 (rw) */
  49. unsigned int EN3:1; /**< \brief [3:3] Access Enable for Master TAG ID 3 (rw) */
  50. unsigned int EN4:1; /**< \brief [4:4] Access Enable for Master TAG ID 4 (rw) */
  51. unsigned int EN5:1; /**< \brief [5:5] Access Enable for Master TAG ID 5 (rw) */
  52. unsigned int EN6:1; /**< \brief [6:6] Access Enable for Master TAG ID 6 (rw) */
  53. unsigned int EN7:1; /**< \brief [7:7] Access Enable for Master TAG ID 7 (rw) */
  54. unsigned int EN8:1; /**< \brief [8:8] Access Enable for Master TAG ID 8 (rw) */
  55. unsigned int EN9:1; /**< \brief [9:9] Access Enable for Master TAG ID 9 (rw) */
  56. unsigned int EN10:1; /**< \brief [10:10] Access Enable for Master TAG ID 10 (rw) */
  57. unsigned int EN11:1; /**< \brief [11:11] Access Enable for Master TAG ID 11 (rw) */
  58. unsigned int EN12:1; /**< \brief [12:12] Access Enable for Master TAG ID 12 (rw) */
  59. unsigned int EN13:1; /**< \brief [13:13] Access Enable for Master TAG ID 13 (rw) */
  60. unsigned int EN14:1; /**< \brief [14:14] Access Enable for Master TAG ID 14 (rw) */
  61. unsigned int EN15:1; /**< \brief [15:15] Access Enable for Master TAG ID 15 (rw) */
  62. unsigned int EN16:1; /**< \brief [16:16] Access Enable for Master TAG ID 16 (rw) */
  63. unsigned int EN17:1; /**< \brief [17:17] Access Enable for Master TAG ID 17 (rw) */
  64. unsigned int EN18:1; /**< \brief [18:18] Access Enable for Master TAG ID 18 (rw) */
  65. unsigned int EN19:1; /**< \brief [19:19] Access Enable for Master TAG ID 19 (rw) */
  66. unsigned int EN20:1; /**< \brief [20:20] Access Enable for Master TAG ID 20 (rw) */
  67. unsigned int EN21:1; /**< \brief [21:21] Access Enable for Master TAG ID 21 (rw) */
  68. unsigned int EN22:1; /**< \brief [22:22] Access Enable for Master TAG ID 22 (rw) */
  69. unsigned int EN23:1; /**< \brief [23:23] Access Enable for Master TAG ID 23 (rw) */
  70. unsigned int EN24:1; /**< \brief [24:24] Access Enable for Master TAG ID 24 (rw) */
  71. unsigned int EN25:1; /**< \brief [25:25] Access Enable for Master TAG ID 25 (rw) */
  72. unsigned int EN26:1; /**< \brief [26:26] Access Enable for Master TAG ID 26 (rw) */
  73. unsigned int EN27:1; /**< \brief [27:27] Access Enable for Master TAG ID 27 (rw) */
  74. unsigned int EN28:1; /**< \brief [28:28] Access Enable for Master TAG ID 28 (rw) */
  75. unsigned int EN29:1; /**< \brief [29:29] Access Enable for Master TAG ID 29 (rw) */
  76. unsigned int EN30:1; /**< \brief [30:30] Access Enable for Master TAG ID 30 (rw) */
  77. unsigned int EN31:1; /**< \brief [31:31] Access Enable for Master TAG ID 31 (rw) */
  78. } Ifx_ASCLIN_ACCEN0_Bits;
  79. /** \\brief Access Enable Register 1 */
  80. typedef struct _Ifx_ASCLIN_ACCEN1_Bits
  81. {
  82. unsigned int reserved_0:32; /**< \brief \internal Reserved */
  83. } Ifx_ASCLIN_ACCEN1_Bits;
  84. /** \\brief Bit Configuration Register */
  85. typedef struct _Ifx_ASCLIN_BITCON_Bits
  86. {
  87. unsigned int PRESCALER:12; /**< \brief [11:0] Prescaling of the Fractional Divider (rw) */
  88. unsigned int reserved_12:4; /**< \brief \internal Reserved */
  89. unsigned int OVERSAMPLING:4; /**< \brief [19:16] Oversampling Factor (rw) */
  90. unsigned int reserved_20:4; /**< \brief \internal Reserved */
  91. unsigned int SAMPLEPOINT:4; /**< \brief [27:24] Sample Point Position (rw) */
  92. unsigned int reserved_28:3; /**< \brief \internal Reserved */
  93. unsigned int SM:1; /**< \brief [31:31] Sample Mode (rw) */
  94. } Ifx_ASCLIN_BITCON_Bits;
  95. /** \\brief Baud Rate Detection Register */
  96. typedef struct _Ifx_ASCLIN_BRD_Bits
  97. {
  98. unsigned int LOWERLIMIT:8; /**< \brief [7:0] Lower Limit (rw) */
  99. unsigned int UPPERLIMIT:8; /**< \brief [15:8] Upper Limit (rw) */
  100. unsigned int MEASURED:12; /**< \brief [27:16] Measured Value of the Denominator (rh) */
  101. unsigned int reserved_28:4; /**< \brief \internal Reserved */
  102. } Ifx_ASCLIN_BRD_Bits;
  103. /** \\brief Baud Rate Generation Register */
  104. typedef struct _Ifx_ASCLIN_BRG_Bits
  105. {
  106. unsigned int DENOMINATOR:12; /**< \brief [11:0] Denominator (rw) */
  107. unsigned int reserved_12:4; /**< \brief \internal Reserved */
  108. unsigned int NUMERATOR:12; /**< \brief [27:16] Numerator (rw) */
  109. unsigned int reserved_28:4; /**< \brief \internal Reserved */
  110. } Ifx_ASCLIN_BRG_Bits;
  111. /** \\brief Clock Control Register */
  112. typedef struct _Ifx_ASCLIN_CLC_Bits
  113. {
  114. unsigned int DISR:1; /**< \brief [0:0] Module Disable Request Bit (rw) */
  115. unsigned int DISS:1; /**< \brief [1:1] Module Disable Status Bit (rh) */
  116. unsigned int reserved_2:1; /**< \brief \internal Reserved */
  117. unsigned int EDIS:1; /**< \brief [3:3] Sleep Mode Enable Control (rw) */
  118. unsigned int reserved_4:28; /**< \brief \internal Reserved */
  119. } Ifx_ASCLIN_CLC_Bits;
  120. /** \\brief Clock Selection Register */
  121. typedef struct _Ifx_ASCLIN_CSR_Bits
  122. {
  123. unsigned int CLKSEL:5; /**< \brief [4:0] Baud Rate Logic Clock Select (rw) */
  124. unsigned int reserved_5:26; /**< \brief \internal Reserved */
  125. unsigned int CON:1; /**< \brief [31:31] Clock On Flag (rh) */
  126. } Ifx_ASCLIN_CSR_Bits;
  127. /** \\brief Data Configuration Register */
  128. typedef struct _Ifx_ASCLIN_DATCON_Bits
  129. {
  130. unsigned int DATLEN:4; /**< \brief [3:0] Data Length (rw) */
  131. unsigned int reserved_4:9; /**< \brief \internal Reserved */
  132. unsigned int HO:1; /**< \brief [13:13] Header Only (rw) */
  133. unsigned int RM:1; /**< \brief [14:14] Response Mode (rw) */
  134. unsigned int CSM:1; /**< \brief [15:15] Checksum Mode (rw) */
  135. unsigned int RESPONSE:8; /**< \brief [23:16] Response Timeout Threshold Value (rw) */
  136. unsigned int reserved_24:8; /**< \brief \internal Reserved */
  137. } Ifx_ASCLIN_DATCON_Bits;
  138. /** \\brief Flags Register */
  139. typedef struct _Ifx_ASCLIN_FLAGS_Bits
  140. {
  141. unsigned int TH:1; /**< \brief [0:0] Transmit Header End Flag (rh) */
  142. unsigned int TR:1; /**< \brief [1:1] Transmit Response End Flag (rh) */
  143. unsigned int RH:1; /**< \brief [2:2] Receive Header End Flag (rh) */
  144. unsigned int RR:1; /**< \brief [3:3] Receive Response End Flag (rh) */
  145. unsigned int reserved_4:1; /**< \brief \internal Reserved */
  146. unsigned int FED:1; /**< \brief [5:5] Falling Edge from Level 1 to Level 0 Detected (rh) */
  147. unsigned int RED:1; /**< \brief [6:6] Rising Edge from Level 0 to Level 1 Detected (rh) */
  148. unsigned int reserved_7:6; /**< \brief \internal Reserved */
  149. unsigned int TWRQ:1; /**< \brief [13:13] Transmit Wake Request Flag (rh) */
  150. unsigned int THRQ:1; /**< \brief [14:14] Transmit Header Request Flag (rh) */
  151. unsigned int TRRQ:1; /**< \brief [15:15] Transmit Response Request Flag (rh) */
  152. unsigned int PE:1; /**< \brief [16:16] Parity Error Flag (rh) */
  153. unsigned int TC:1; /**< \brief [17:17] Transmission Completed Flag (rh) */
  154. unsigned int FE:1; /**< \brief [18:18] Framing Error Flag (rh) */
  155. unsigned int HT:1; /**< \brief [19:19] Header Timeout Flag (rh) */
  156. unsigned int RT:1; /**< \brief [20:20] Response Timeout Flag (rh) */
  157. unsigned int BD:1; /**< \brief [21:21] Break Detected Flag (rh) */
  158. unsigned int LP:1; /**< \brief [22:22] LIN Parity Error Flag (rh) */
  159. unsigned int LA:1; /**< \brief [23:23] LIN Autobaud Detection Error Flag (rh) */
  160. unsigned int LC:1; /**< \brief [24:24] LIN Checksum Error Flag (rh) */
  161. unsigned int CE:1; /**< \brief [25:25] Collision Detection Error Flag (rh) */
  162. unsigned int RFO:1; /**< \brief [26:26] Receive FIFO Overflow Flag (rh) */
  163. unsigned int RFU:1; /**< \brief [27:27] Receive FIFO Underflow Flag (rh) */
  164. unsigned int RFL:1; /**< \brief [28:28] Receive FIFO Level Flag (rh) */
  165. unsigned int reserved_29:1; /**< \brief \internal Reserved */
  166. unsigned int TFO:1; /**< \brief [30:30] Transmit FIFO Overflow Flag (rh) */
  167. unsigned int TFL:1; /**< \brief [31:31] Transmit FIFO Level Flag (rh) */
  168. } Ifx_ASCLIN_FLAGS_Bits;
  169. /** \\brief Flags Clear Register */
  170. typedef struct _Ifx_ASCLIN_FLAGSCLEAR_Bits
  171. {
  172. unsigned int THC:1; /**< \brief [0:0] Flag Clear Bit (w) */
  173. unsigned int TRC:1; /**< \brief [1:1] Flag Clear Bit (w) */
  174. unsigned int RHC:1; /**< \brief [2:2] Flag Clear Bit (w) */
  175. unsigned int RRC:1; /**< \brief [3:3] Flag Clear Bit (w) */
  176. unsigned int reserved_4:1; /**< \brief \internal Reserved */
  177. unsigned int FEDC:1; /**< \brief [5:5] Flag Clear Bit (w) */
  178. unsigned int REDC:1; /**< \brief [6:6] Flag Clear Bit (w) */
  179. unsigned int reserved_7:6; /**< \brief \internal Reserved */
  180. unsigned int TWRQC:1; /**< \brief [13:13] Flag Clear Bit (w) */
  181. unsigned int THRQC:1; /**< \brief [14:14] Flag Clear Bit (w) */
  182. unsigned int TRRQC:1; /**< \brief [15:15] Flag Clear Bit (w) */
  183. unsigned int PEC:1; /**< \brief [16:16] Flag Clear Bit (w) */
  184. unsigned int TCC:1; /**< \brief [17:17] Flag Clear Bit (w) */
  185. unsigned int FEC:1; /**< \brief [18:18] Flag Clear Bit (w) */
  186. unsigned int HTC:1; /**< \brief [19:19] Flag Clear Bit (w) */
  187. unsigned int RTC:1; /**< \brief [20:20] Flag Clear Bit (w) */
  188. unsigned int BDC:1; /**< \brief [21:21] Flag Clear Bit (w) */
  189. unsigned int LPC:1; /**< \brief [22:22] Flag Clear Bit (w) */
  190. unsigned int LAC:1; /**< \brief [23:23] Flag Clear Bit (w) */
  191. unsigned int LCC:1; /**< \brief [24:24] Flag Clear Bit (w) */
  192. unsigned int CEC:1; /**< \brief [25:25] Flag Clear Bit (w) */
  193. unsigned int RFOC:1; /**< \brief [26:26] Flag Clear Bit (w) */
  194. unsigned int RFUC:1; /**< \brief [27:27] Flag Clear Bit (w) */
  195. unsigned int RFLC:1; /**< \brief [28:28] Flag Clear Bit (w) */
  196. unsigned int reserved_29:1; /**< \brief \internal Reserved */
  197. unsigned int TFOC:1; /**< \brief [30:30] Flag Clear Bit (w) */
  198. unsigned int TFLC:1; /**< \brief [31:31] Flag Clear Bit (w) */
  199. } Ifx_ASCLIN_FLAGSCLEAR_Bits;
  200. /** \\brief Flags Enable Register */
  201. typedef struct _Ifx_ASCLIN_FLAGSENABLE_Bits
  202. {
  203. unsigned int THE:1; /**< \brief [0:0] Flag Enable Bit (rw) */
  204. unsigned int TRE:1; /**< \brief [1:1] Flag Enable Bit (rw) */
  205. unsigned int RHE:1; /**< \brief [2:2] Flag Enable Bit (rw) */
  206. unsigned int RRE:1; /**< \brief [3:3] Flag Enable Bit (rw) */
  207. unsigned int reserved_4:1; /**< \brief \internal Reserved */
  208. unsigned int FEDE:1; /**< \brief [5:5] Flag Enable Bit (rw) */
  209. unsigned int REDE:1; /**< \brief [6:6] Flag Enable Bit (rw) */
  210. unsigned int reserved_7:9; /**< \brief \internal Reserved */
  211. unsigned int PEE:1; /**< \brief [16:16] Flag Enable Bit (rw) */
  212. unsigned int TCE:1; /**< \brief [17:17] Flag Enable Bit (rw) */
  213. unsigned int FEE:1; /**< \brief [18:18] Flag Enable Bit (rw) */
  214. unsigned int HTE:1; /**< \brief [19:19] Flag Enable Bit (rw) */
  215. unsigned int RTE:1; /**< \brief [20:20] Flag Enable Bit (rw) */
  216. unsigned int BDE:1; /**< \brief [21:21] Flag Enable Bit (rw) */
  217. unsigned int LPE:1; /**< \brief [22:22] Flag Enable Bit (rw) */
  218. unsigned int ABE:1; /**< \brief [23:23] Flag Enable Bit (rw) */
  219. unsigned int LCE:1; /**< \brief [24:24] Flag Enable Bit (rw) */
  220. unsigned int CEE:1; /**< \brief [25:25] Flag Enable Bit (rw) */
  221. unsigned int RFOE:1; /**< \brief [26:26] Flag Enable Bit (rw) */
  222. unsigned int RFUE:1; /**< \brief [27:27] Flag Enable Bit (rw) */
  223. unsigned int RFLE:1; /**< \brief [28:28] Flag Enable Bit (rw) */
  224. unsigned int reserved_29:1; /**< \brief \internal Reserved */
  225. unsigned int TFOE:1; /**< \brief [30:30] Flag Enable Bit (rw) */
  226. unsigned int TFLE:1; /**< \brief [31:31] Flag Enable Bit (rw) */
  227. } Ifx_ASCLIN_FLAGSENABLE_Bits;
  228. /** \\brief Flags Set Register */
  229. typedef struct _Ifx_ASCLIN_FLAGSSET_Bits
  230. {
  231. unsigned int THS:1; /**< \brief [0:0] Flag Set Bit (w) */
  232. unsigned int TRS:1; /**< \brief [1:1] Flag Set Bit (w) */
  233. unsigned int RHS:1; /**< \brief [2:2] Flag Set Bit (w) */
  234. unsigned int RRS:1; /**< \brief [3:3] Flag Set Bit (w) */
  235. unsigned int reserved_4:1; /**< \brief \internal Reserved */
  236. unsigned int FEDS:1; /**< \brief [5:5] Flag Set Bit (w) */
  237. unsigned int REDS:1; /**< \brief [6:6] Flag Set Bit (w) */
  238. unsigned int reserved_7:6; /**< \brief \internal Reserved */
  239. unsigned int TWRQS:1; /**< \brief [13:13] Flag Set Bit (w) */
  240. unsigned int THRQS:1; /**< \brief [14:14] Flag Set Bit (w) */
  241. unsigned int TRRQS:1; /**< \brief [15:15] Flag Set Bit (w) */
  242. unsigned int PES:1; /**< \brief [16:16] Flag Set Bit (w) */
  243. unsigned int TCS:1; /**< \brief [17:17] Flag Set Bit (w) */
  244. unsigned int FES:1; /**< \brief [18:18] Flag Set Bit (w) */
  245. unsigned int HTS:1; /**< \brief [19:19] Flag Set Bit (w) */
  246. unsigned int RTS:1; /**< \brief [20:20] Flag Set Bit (w) */
  247. unsigned int BDS:1; /**< \brief [21:21] Flag Set Bit (w) */
  248. unsigned int LPS:1; /**< \brief [22:22] Flag Set Bit (w) */
  249. unsigned int LAS:1; /**< \brief [23:23] Flag Set Bit (w) */
  250. unsigned int LCS:1; /**< \brief [24:24] Flag Set Bit (w) */
  251. unsigned int CES:1; /**< \brief [25:25] Flag Set Bit (w) */
  252. unsigned int RFOS:1; /**< \brief [26:26] Flag Set Bit (w) */
  253. unsigned int RFUS:1; /**< \brief [27:27] Flag Set Bit (w) */
  254. unsigned int RFLS:1; /**< \brief [28:28] Flag Set Bit (w) */
  255. unsigned int reserved_29:1; /**< \brief \internal Reserved */
  256. unsigned int TFOS:1; /**< \brief [30:30] Flag Set Bit (w) */
  257. unsigned int TFLS:1; /**< \brief [31:31] Flag Set Bit (w) */
  258. } Ifx_ASCLIN_FLAGSSET_Bits;
  259. /** \\brief Frame Control Register */
  260. typedef struct _Ifx_ASCLIN_FRAMECON_Bits
  261. {
  262. unsigned int reserved_0:6; /**< \brief \internal Reserved */
  263. unsigned int IDLE:3; /**< \brief [8:6] Duration of the IDLE delay (rw) */
  264. unsigned int STOP:3; /**< \brief [11:9] Number of Stop Bits (rw) */
  265. unsigned int LEAD:3; /**< \brief [14:12] Duration of the Leading Delay (rw) */
  266. unsigned int reserved_15:1; /**< \brief \internal Reserved */
  267. unsigned int MODE:2; /**< \brief [17:16] Mode Selection (rw) */
  268. unsigned int reserved_18:10; /**< \brief \internal Reserved */
  269. unsigned int MSB:1; /**< \brief [28:28] Shift Direction (rw) */
  270. unsigned int CEN:1; /**< \brief [29:29] Collision Detection Enable (rw) */
  271. unsigned int PEN:1; /**< \brief [30:30] Parity Enable (rw) */
  272. unsigned int ODD:1; /**< \brief [31:31] Parity Type (rw) */
  273. } Ifx_ASCLIN_FRAMECON_Bits;
  274. /** \\brief Module Identification Register */
  275. typedef struct _Ifx_ASCLIN_ID_Bits
  276. {
  277. unsigned int MODREV:8; /**< \brief [7:0] Module Revision Number (r) */
  278. unsigned int MODTYPE:8; /**< \brief [15:8] Module Type (r) */
  279. unsigned int MODNUMBER:16; /**< \brief [31:16] Module Number Value (r) */
  280. } Ifx_ASCLIN_ID_Bits;
  281. /** \\brief Input and Output Control Register */
  282. typedef struct _Ifx_ASCLIN_IOCR_Bits
  283. {
  284. unsigned int ALTI:3; /**< \brief [2:0] Alternate Input Select (rw) */
  285. unsigned int reserved_3:1; /**< \brief \internal Reserved */
  286. unsigned int DEPTH:6; /**< \brief [9:4] Digital Glitch Filter Depth (rw) */
  287. unsigned int reserved_10:6; /**< \brief \internal Reserved */
  288. unsigned int CTS:2; /**< \brief [17:16] CTS Select (rw) */
  289. unsigned int reserved_18:7; /**< \brief \internal Reserved */
  290. unsigned int RCPOL:1; /**< \brief [25:25] RTS CTS Polarity (rw) */
  291. unsigned int CPOL:1; /**< \brief [26:26] Clock Polarity in Synchronous Mode (rw) */
  292. unsigned int SPOL:1; /**< \brief [27:27] Slave Polarity in Synchronous Mode (rw) */
  293. unsigned int LB:1; /**< \brief [28:28] Loop Back Mode (rw) */
  294. unsigned int CTSEN:1; /**< \brief [29:29] Input Signal CTS Enable (rw) */
  295. unsigned int RXM:1; /**< \brief [30:30] Receive Monitor (rh) */
  296. unsigned int TXM:1; /**< \brief [31:31] Transmit Monitor (rh) */
  297. } Ifx_ASCLIN_IOCR_Bits;
  298. /** \\brief Kernel Reset Register 0 */
  299. typedef struct _Ifx_ASCLIN_KRST0_Bits
  300. {
  301. unsigned int RST:1; /**< \brief [0:0] Kernel Reset (rwh) */
  302. unsigned int RSTSTAT:1; /**< \brief [1:1] Kernel Reset Status (rh) */
  303. unsigned int reserved_2:30; /**< \brief \internal Reserved */
  304. } Ifx_ASCLIN_KRST0_Bits;
  305. /** \\brief Kernel Reset Register 1 */
  306. typedef struct _Ifx_ASCLIN_KRST1_Bits
  307. {
  308. unsigned int RST:1; /**< \brief [0:0] Kernel Reset (rwh) */
  309. unsigned int reserved_1:31; /**< \brief \internal Reserved */
  310. } Ifx_ASCLIN_KRST1_Bits;
  311. /** \\brief Kernel Reset Status Clear Register */
  312. typedef struct _Ifx_ASCLIN_KRSTCLR_Bits
  313. {
  314. unsigned int CLR:1; /**< \brief [0:0] Kernel Reset Status Clear (w) */
  315. unsigned int reserved_1:31; /**< \brief \internal Reserved */
  316. } Ifx_ASCLIN_KRSTCLR_Bits;
  317. /** \\brief LIN Break Timer Register */
  318. typedef struct _Ifx_ASCLIN_LIN_BTIMER_Bits
  319. {
  320. unsigned int BREAK:6; /**< \brief [5:0] Break Pulse Generation and Detection (rw) */
  321. unsigned int reserved_6:26; /**< \brief \internal Reserved */
  322. } Ifx_ASCLIN_LIN_BTIMER_Bits;
  323. /** \\brief LIN Control Register */
  324. typedef struct _Ifx_ASCLIN_LIN_CON_Bits
  325. {
  326. unsigned int reserved_0:23; /**< \brief \internal Reserved */
  327. unsigned int CSI:1; /**< \brief [23:23] Checksum Injection (rw) */
  328. unsigned int reserved_24:1; /**< \brief \internal Reserved */
  329. unsigned int CSEN:1; /**< \brief [25:25] Hardware Checksum Enable (rw) */
  330. unsigned int MS:1; /**< \brief [26:26] Master Slave Mode (rw) */
  331. unsigned int ABD:1; /**< \brief [27:27] Autobaud Detection (rw) */
  332. unsigned int reserved_28:4; /**< \brief \internal Reserved */
  333. } Ifx_ASCLIN_LIN_CON_Bits;
  334. /** \\brief LIN Header Timer Register */
  335. typedef struct _Ifx_ASCLIN_LIN_HTIMER_Bits
  336. {
  337. unsigned int HEADER:8; /**< \brief [7:0] Header Timeout Threshold Value (rw) */
  338. unsigned int reserved_8:24; /**< \brief \internal Reserved */
  339. } Ifx_ASCLIN_LIN_HTIMER_Bits;
  340. /** \\brief OCDS Control and Status */
  341. typedef struct _Ifx_ASCLIN_OCS_Bits
  342. {
  343. unsigned int reserved_0:24; /**< \brief \internal Reserved */
  344. unsigned int SUS:4; /**< \brief [27:24] OCDS Suspend Control (rw) */
  345. unsigned int SUS_P:1; /**< \brief [28:28] SUS Write Protection (w) */
  346. unsigned int SUSSTA:1; /**< \brief [29:29] Suspend State (rh) */
  347. unsigned int reserved_30:2; /**< \brief \internal Reserved */
  348. } Ifx_ASCLIN_OCS_Bits;
  349. /** \\brief Receive Data Register */
  350. typedef struct _Ifx_ASCLIN_RXDATA_Bits
  351. {
  352. unsigned int DATA:32; /**< \brief [31:0] Data (rh) */
  353. } Ifx_ASCLIN_RXDATA_Bits;
  354. /** \\brief Receive Data Debug Register */
  355. typedef struct _Ifx_ASCLIN_RXDATAD_Bits
  356. {
  357. unsigned int DATA:32; /**< \brief [31:0] Data (rh) */
  358. } Ifx_ASCLIN_RXDATAD_Bits;
  359. /** \\brief RX FIFO Configuration Register */
  360. typedef struct _Ifx_ASCLIN_RXFIFOCON_Bits
  361. {
  362. unsigned int FLUSH:1; /**< \brief [0:0] Flush the receive FIFO (w) */
  363. unsigned int ENI:1; /**< \brief [1:1] Receive FIFO Inlet Enable (rwh) */
  364. unsigned int reserved_2:4; /**< \brief \internal Reserved */
  365. unsigned int OUTW:2; /**< \brief [7:6] Receive FIFO Outlet Width (rw) */
  366. unsigned int INTLEVEL:4; /**< \brief [11:8] FIFO Interrupt Level (rw) */
  367. unsigned int reserved_12:4; /**< \brief \internal Reserved */
  368. unsigned int FILL:5; /**< \brief [20:16] FIFO Filling Level (rh) */
  369. unsigned int reserved_21:10; /**< \brief \internal Reserved */
  370. unsigned int BUF:1; /**< \brief [31:31] Receive Buffer Mode (rw) */
  371. } Ifx_ASCLIN_RXFIFOCON_Bits;
  372. /** \\brief Transmit Data Register */
  373. typedef struct _Ifx_ASCLIN_TXDATA_Bits
  374. {
  375. unsigned int DATA:32; /**< \brief [31:0] Data (w) */
  376. } Ifx_ASCLIN_TXDATA_Bits;
  377. /** \\brief TX FIFO Configuration Register */
  378. typedef struct _Ifx_ASCLIN_TXFIFOCON_Bits
  379. {
  380. unsigned int FLUSH:1; /**< \brief [0:0] Flush the transmit FIFO (w) */
  381. unsigned int ENO:1; /**< \brief [1:1] Transmit FIFO Outlet Enable (rw) */
  382. unsigned int reserved_2:4; /**< \brief \internal Reserved */
  383. unsigned int INW:2; /**< \brief [7:6] Transmit FIFO Inlet Width (rw) */
  384. unsigned int INTLEVEL:4; /**< \brief [11:8] FIFO Interrupt Level (rw) */
  385. unsigned int reserved_12:4; /**< \brief \internal Reserved */
  386. unsigned int FILL:5; /**< \brief [20:16] FIFO Filling Level (rh) */
  387. unsigned int reserved_21:11; /**< \brief \internal Reserved */
  388. } Ifx_ASCLIN_TXFIFOCON_Bits;
  389. /** \} */
  390. /******************************************************************************/
  391. /******************************************************************************/
  392. /** \addtogroup IfxLld_Asclin_union
  393. * \{ */
  394. /** \\brief Access Enable Register 0 */
  395. typedef union
  396. {
  397. /** \brief Unsigned access */
  398. unsigned int U;
  399. /** \brief Signed access */
  400. signed int I;
  401. /** \brief Bitfield access */
  402. Ifx_ASCLIN_ACCEN0_Bits B;
  403. } Ifx_ASCLIN_ACCEN0;
  404. /** \\brief Access Enable Register 1 */
  405. typedef union
  406. {
  407. /** \brief Unsigned access */
  408. unsigned int U;
  409. /** \brief Signed access */
  410. signed int I;
  411. /** \brief Bitfield access */
  412. Ifx_ASCLIN_ACCEN1_Bits B;
  413. } Ifx_ASCLIN_ACCEN1;
  414. /** \\brief Bit Configuration Register */
  415. typedef union
  416. {
  417. /** \brief Unsigned access */
  418. unsigned int U;
  419. /** \brief Signed access */
  420. signed int I;
  421. /** \brief Bitfield access */
  422. Ifx_ASCLIN_BITCON_Bits B;
  423. } Ifx_ASCLIN_BITCON;
  424. /** \\brief Baud Rate Detection Register */
  425. typedef union
  426. {
  427. /** \brief Unsigned access */
  428. unsigned int U;
  429. /** \brief Signed access */
  430. signed int I;
  431. /** \brief Bitfield access */
  432. Ifx_ASCLIN_BRD_Bits B;
  433. } Ifx_ASCLIN_BRD;
  434. /** \\brief Baud Rate Generation Register */
  435. typedef union
  436. {
  437. /** \brief Unsigned access */
  438. unsigned int U;
  439. /** \brief Signed access */
  440. signed int I;
  441. /** \brief Bitfield access */
  442. Ifx_ASCLIN_BRG_Bits B;
  443. } Ifx_ASCLIN_BRG;
  444. /** \\brief Clock Control Register */
  445. typedef union
  446. {
  447. /** \brief Unsigned access */
  448. unsigned int U;
  449. /** \brief Signed access */
  450. signed int I;
  451. /** \brief Bitfield access */
  452. Ifx_ASCLIN_CLC_Bits B;
  453. } Ifx_ASCLIN_CLC;
  454. /** \\brief Clock Selection Register */
  455. typedef union
  456. {
  457. /** \brief Unsigned access */
  458. unsigned int U;
  459. /** \brief Signed access */
  460. signed int I;
  461. /** \brief Bitfield access */
  462. Ifx_ASCLIN_CSR_Bits B;
  463. } Ifx_ASCLIN_CSR;
  464. /** \\brief Data Configuration Register */
  465. typedef union
  466. {
  467. /** \brief Unsigned access */
  468. unsigned int U;
  469. /** \brief Signed access */
  470. signed int I;
  471. /** \brief Bitfield access */
  472. Ifx_ASCLIN_DATCON_Bits B;
  473. } Ifx_ASCLIN_DATCON;
  474. /** \\brief Flags Register */
  475. typedef union
  476. {
  477. /** \brief Unsigned access */
  478. unsigned int U;
  479. /** \brief Signed access */
  480. signed int I;
  481. /** \brief Bitfield access */
  482. Ifx_ASCLIN_FLAGS_Bits B;
  483. } Ifx_ASCLIN_FLAGS;
  484. /** \\brief Flags Clear Register */
  485. typedef union
  486. {
  487. /** \brief Unsigned access */
  488. unsigned int U;
  489. /** \brief Signed access */
  490. signed int I;
  491. /** \brief Bitfield access */
  492. Ifx_ASCLIN_FLAGSCLEAR_Bits B;
  493. } Ifx_ASCLIN_FLAGSCLEAR;
  494. /** \\brief Flags Enable Register */
  495. typedef union
  496. {
  497. /** \brief Unsigned access */
  498. unsigned int U;
  499. /** \brief Signed access */
  500. signed int I;
  501. /** \brief Bitfield access */
  502. Ifx_ASCLIN_FLAGSENABLE_Bits B;
  503. } Ifx_ASCLIN_FLAGSENABLE;
  504. /** \\brief Flags Set Register */
  505. typedef union
  506. {
  507. /** \brief Unsigned access */
  508. unsigned int U;
  509. /** \brief Signed access */
  510. signed int I;
  511. /** \brief Bitfield access */
  512. Ifx_ASCLIN_FLAGSSET_Bits B;
  513. } Ifx_ASCLIN_FLAGSSET;
  514. /** \\brief Frame Control Register */
  515. typedef union
  516. {
  517. /** \brief Unsigned access */
  518. unsigned int U;
  519. /** \brief Signed access */
  520. signed int I;
  521. /** \brief Bitfield access */
  522. Ifx_ASCLIN_FRAMECON_Bits B;
  523. } Ifx_ASCLIN_FRAMECON;
  524. /** \\brief Module Identification Register */
  525. typedef union
  526. {
  527. /** \brief Unsigned access */
  528. unsigned int U;
  529. /** \brief Signed access */
  530. signed int I;
  531. /** \brief Bitfield access */
  532. Ifx_ASCLIN_ID_Bits B;
  533. } Ifx_ASCLIN_ID;
  534. /** \\brief Input and Output Control Register */
  535. typedef union
  536. {
  537. /** \brief Unsigned access */
  538. unsigned int U;
  539. /** \brief Signed access */
  540. signed int I;
  541. /** \brief Bitfield access */
  542. Ifx_ASCLIN_IOCR_Bits B;
  543. } Ifx_ASCLIN_IOCR;
  544. /** \\brief Kernel Reset Register 0 */
  545. typedef union
  546. {
  547. /** \brief Unsigned access */
  548. unsigned int U;
  549. /** \brief Signed access */
  550. signed int I;
  551. /** \brief Bitfield access */
  552. Ifx_ASCLIN_KRST0_Bits B;
  553. } Ifx_ASCLIN_KRST0;
  554. /** \\brief Kernel Reset Register 1 */
  555. typedef union
  556. {
  557. /** \brief Unsigned access */
  558. unsigned int U;
  559. /** \brief Signed access */
  560. signed int I;
  561. /** \brief Bitfield access */
  562. Ifx_ASCLIN_KRST1_Bits B;
  563. } Ifx_ASCLIN_KRST1;
  564. /** \\brief Kernel Reset Status Clear Register */
  565. typedef union
  566. {
  567. /** \brief Unsigned access */
  568. unsigned int U;
  569. /** \brief Signed access */
  570. signed int I;
  571. /** \brief Bitfield access */
  572. Ifx_ASCLIN_KRSTCLR_Bits B;
  573. } Ifx_ASCLIN_KRSTCLR;
  574. /** \\brief LIN Break Timer Register */
  575. typedef union
  576. {
  577. /** \brief Unsigned access */
  578. unsigned int U;
  579. /** \brief Signed access */
  580. signed int I;
  581. /** \brief Bitfield access */
  582. Ifx_ASCLIN_LIN_BTIMER_Bits B;
  583. } Ifx_ASCLIN_LIN_BTIMER;
  584. /** \\brief LIN Control Register */
  585. typedef union
  586. {
  587. /** \brief Unsigned access */
  588. unsigned int U;
  589. /** \brief Signed access */
  590. signed int I;
  591. /** \brief Bitfield access */
  592. Ifx_ASCLIN_LIN_CON_Bits B;
  593. } Ifx_ASCLIN_LIN_CON;
  594. /** \\brief LIN Header Timer Register */
  595. typedef union
  596. {
  597. /** \brief Unsigned access */
  598. unsigned int U;
  599. /** \brief Signed access */
  600. signed int I;
  601. /** \brief Bitfield access */
  602. Ifx_ASCLIN_LIN_HTIMER_Bits B;
  603. } Ifx_ASCLIN_LIN_HTIMER;
  604. /** \\brief OCDS Control and Status */
  605. typedef union
  606. {
  607. /** \brief Unsigned access */
  608. unsigned int U;
  609. /** \brief Signed access */
  610. signed int I;
  611. /** \brief Bitfield access */
  612. Ifx_ASCLIN_OCS_Bits B;
  613. } Ifx_ASCLIN_OCS;
  614. /** \\brief Receive Data Register */
  615. typedef union
  616. {
  617. /** \brief Unsigned access */
  618. unsigned int U;
  619. /** \brief Signed access */
  620. signed int I;
  621. /** \brief Bitfield access */
  622. Ifx_ASCLIN_RXDATA_Bits B;
  623. } Ifx_ASCLIN_RXDATA;
  624. /** \\brief Receive Data Debug Register */
  625. typedef union
  626. {
  627. /** \brief Unsigned access */
  628. unsigned int U;
  629. /** \brief Signed access */
  630. signed int I;
  631. /** \brief Bitfield access */
  632. Ifx_ASCLIN_RXDATAD_Bits B;
  633. } Ifx_ASCLIN_RXDATAD;
  634. /** \\brief RX FIFO Configuration Register */
  635. typedef union
  636. {
  637. /** \brief Unsigned access */
  638. unsigned int U;
  639. /** \brief Signed access */
  640. signed int I;
  641. /** \brief Bitfield access */
  642. Ifx_ASCLIN_RXFIFOCON_Bits B;
  643. } Ifx_ASCLIN_RXFIFOCON;
  644. /** \\brief Transmit Data Register */
  645. typedef union
  646. {
  647. /** \brief Unsigned access */
  648. unsigned int U;
  649. /** \brief Signed access */
  650. signed int I;
  651. /** \brief Bitfield access */
  652. Ifx_ASCLIN_TXDATA_Bits B;
  653. } Ifx_ASCLIN_TXDATA;
  654. /** \\brief TX FIFO Configuration Register */
  655. typedef union
  656. {
  657. /** \brief Unsigned access */
  658. unsigned int U;
  659. /** \brief Signed access */
  660. signed int I;
  661. /** \brief Bitfield access */
  662. Ifx_ASCLIN_TXFIFOCON_Bits B;
  663. } Ifx_ASCLIN_TXFIFOCON;
  664. /** \} */
  665. /******************************************************************************/
  666. /******************************************************************************/
  667. /** \addtogroup IfxLld_Asclin_struct
  668. * \{ */
  669. /******************************************************************************/
  670. /** \name Object L1
  671. * \{ */
  672. /** \\brief LIN */
  673. typedef volatile struct _Ifx_ASCLIN_LIN
  674. {
  675. Ifx_ASCLIN_LIN_CON CON; /**< \brief 0, LIN Control Register */
  676. Ifx_ASCLIN_LIN_BTIMER BTIMER; /**< \brief 4, LIN Break Timer Register */
  677. Ifx_ASCLIN_LIN_HTIMER HTIMER; /**< \brief 8, LIN Header Timer Register */
  678. } Ifx_ASCLIN_LIN;
  679. /** \} */
  680. /******************************************************************************/
  681. /** \} */
  682. /******************************************************************************/
  683. /******************************************************************************/
  684. /** \addtogroup IfxLld_Asclin_struct
  685. * \{ */
  686. /******************************************************************************/
  687. /** \name Object L0
  688. * \{ */
  689. /** \\brief ASCLIN object */
  690. typedef volatile struct _Ifx_ASCLIN
  691. {
  692. Ifx_ASCLIN_CLC CLC; /**< \brief 0, Clock Control Register */
  693. Ifx_ASCLIN_IOCR IOCR; /**< \brief 4, Input and Output Control Register */
  694. Ifx_ASCLIN_ID ID; /**< \brief 8, Module Identification Register */
  695. Ifx_ASCLIN_TXFIFOCON TXFIFOCON; /**< \brief C, TX FIFO Configuration Register */
  696. Ifx_ASCLIN_RXFIFOCON RXFIFOCON; /**< \brief 10, RX FIFO Configuration Register */
  697. Ifx_ASCLIN_BITCON BITCON; /**< \brief 14, Bit Configuration Register */
  698. Ifx_ASCLIN_FRAMECON FRAMECON; /**< \brief 18, Frame Control Register */
  699. Ifx_ASCLIN_DATCON DATCON; /**< \brief 1C, Data Configuration Register */
  700. Ifx_ASCLIN_BRG BRG; /**< \brief 20, Baud Rate Generation Register */
  701. Ifx_ASCLIN_BRD BRD; /**< \brief 24, Baud Rate Detection Register */
  702. Ifx_ASCLIN_LIN LIN; /**< \brief 28, LIN */
  703. Ifx_ASCLIN_FLAGS FLAGS; /**< \brief 34, Flags Register */
  704. Ifx_ASCLIN_FLAGSSET FLAGSSET; /**< \brief 38, Flags Set Register */
  705. Ifx_ASCLIN_FLAGSCLEAR FLAGSCLEAR; /**< \brief 3C, Flags Clear Register */
  706. Ifx_ASCLIN_FLAGSENABLE FLAGSENABLE; /**< \brief 40, Flags Enable Register */
  707. Ifx_ASCLIN_TXDATA TXDATA; /**< \brief 44, Transmit Data Register */
  708. Ifx_ASCLIN_RXDATA RXDATA; /**< \brief 48, Receive Data Register */
  709. Ifx_ASCLIN_CSR CSR; /**< \brief 4C, Clock Selection Register */
  710. Ifx_ASCLIN_RXDATAD RXDATAD; /**< \brief 50, Receive Data Debug Register */
  711. unsigned char reserved_54[148]; /**< \brief 54, \internal Reserved */
  712. Ifx_ASCLIN_OCS OCS; /**< \brief E8, OCDS Control and Status */
  713. Ifx_ASCLIN_KRSTCLR KRSTCLR; /**< \brief EC, Kernel Reset Status Clear Register */
  714. Ifx_ASCLIN_KRST1 KRST1; /**< \brief F0, Kernel Reset Register 1 */
  715. Ifx_ASCLIN_KRST0 KRST0; /**< \brief F4, Kernel Reset Register 0 */
  716. Ifx_ASCLIN_ACCEN1 ACCEN1; /**< \brief F8, Access Enable Register 1 */
  717. Ifx_ASCLIN_ACCEN0 ACCEN0; /**< \brief FC, Access Enable Register 0 */
  718. } Ifx_ASCLIN;
  719. /** \} */
  720. /******************************************************************************/
  721. /** \} */
  722. /******************************************************************************/
  723. /******************************************************************************/
  724. #endif /* IFXASCLIN_REGDEF_H */