IfxCan_regdef.h 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236
  1. /**
  2. * \file IfxCan_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_Can Can
  24. * \ingroup IfxLld
  25. *
  26. * \defgroup IfxLld_Can_Bitfields Bitfields
  27. * \ingroup IfxLld_Can
  28. *
  29. * \defgroup IfxLld_Can_union Union
  30. * \ingroup IfxLld_Can
  31. *
  32. * \defgroup IfxLld_Can_struct Struct
  33. * \ingroup IfxLld_Can
  34. *
  35. */
  36. #ifndef IFXCAN_REGDEF_H
  37. #define IFXCAN_REGDEF_H 1
  38. /******************************************************************************/
  39. #if defined (__TASKING__)
  40. #pragma warning 586
  41. #endif
  42. /******************************************************************************/
  43. #include "Ifx_TypesReg.h"
  44. /******************************************************************************/
  45. /** \addtogroup IfxLld_Can_Bitfields
  46. * \{ */
  47. /** \\brief Access Enable Register 0 */
  48. typedef struct _Ifx_CAN_ACCEN0_Bits
  49. {
  50. unsigned int EN0:1; /**< \brief [0:0] Access Enable for Master TAG ID 0 (rw) */
  51. unsigned int EN1:1; /**< \brief [1:1] Access Enable for Master TAG ID 1 (rw) */
  52. unsigned int EN2:1; /**< \brief [2:2] Access Enable for Master TAG ID 2 (rw) */
  53. unsigned int EN3:1; /**< \brief [3:3] Access Enable for Master TAG ID 3 (rw) */
  54. unsigned int EN4:1; /**< \brief [4:4] Access Enable for Master TAG ID 4 (rw) */
  55. unsigned int EN5:1; /**< \brief [5:5] Access Enable for Master TAG ID 5 (rw) */
  56. unsigned int EN6:1; /**< \brief [6:6] Access Enable for Master TAG ID 6 (rw) */
  57. unsigned int EN7:1; /**< \brief [7:7] Access Enable for Master TAG ID 7 (rw) */
  58. unsigned int EN8:1; /**< \brief [8:8] Access Enable for Master TAG ID 8 (rw) */
  59. unsigned int EN9:1; /**< \brief [9:9] Access Enable for Master TAG ID 9 (rw) */
  60. unsigned int EN10:1; /**< \brief [10:10] Access Enable for Master TAG ID 10 (rw) */
  61. unsigned int EN11:1; /**< \brief [11:11] Access Enable for Master TAG ID 11 (rw) */
  62. unsigned int EN12:1; /**< \brief [12:12] Access Enable for Master TAG ID 12 (rw) */
  63. unsigned int EN13:1; /**< \brief [13:13] Access Enable for Master TAG ID 13 (rw) */
  64. unsigned int EN14:1; /**< \brief [14:14] Access Enable for Master TAG ID 14 (rw) */
  65. unsigned int EN15:1; /**< \brief [15:15] Access Enable for Master TAG ID 15 (rw) */
  66. unsigned int EN16:1; /**< \brief [16:16] Access Enable for Master TAG ID 16 (rw) */
  67. unsigned int EN17:1; /**< \brief [17:17] Access Enable for Master TAG ID 17 (rw) */
  68. unsigned int EN18:1; /**< \brief [18:18] Access Enable for Master TAG ID 18 (rw) */
  69. unsigned int EN19:1; /**< \brief [19:19] Access Enable for Master TAG ID 19 (rw) */
  70. unsigned int EN20:1; /**< \brief [20:20] Access Enable for Master TAG ID 20 (rw) */
  71. unsigned int EN21:1; /**< \brief [21:21] Access Enable for Master TAG ID 21 (rw) */
  72. unsigned int EN22:1; /**< \brief [22:22] Access Enable for Master TAG ID 22 (rw) */
  73. unsigned int EN23:1; /**< \brief [23:23] Access Enable for Master TAG ID 23 (rw) */
  74. unsigned int EN24:1; /**< \brief [24:24] Access Enable for Master TAG ID 24 (rw) */
  75. unsigned int EN25:1; /**< \brief [25:25] Access Enable for Master TAG ID 25 (rw) */
  76. unsigned int EN26:1; /**< \brief [26:26] Access Enable for Master TAG ID 26 (rw) */
  77. unsigned int EN27:1; /**< \brief [27:27] Access Enable for Master TAG ID 27 (rw) */
  78. unsigned int EN28:1; /**< \brief [28:28] Access Enable for Master TAG ID 28 (rw) */
  79. unsigned int EN29:1; /**< \brief [29:29] Access Enable for Master TAG ID 29 (rw) */
  80. unsigned int EN30:1; /**< \brief [30:30] Access Enable for Master TAG ID 30 (rw) */
  81. unsigned int EN31:1; /**< \brief [31:31] Access Enable for Master TAG ID 31 (rw) */
  82. } Ifx_CAN_ACCEN0_Bits;
  83. /** \\brief Access Enable Register 1 */
  84. typedef struct _Ifx_CAN_ACCEN1_Bits
  85. {
  86. unsigned int reserved_0:32; /**< \brief \internal Reserved */
  87. } Ifx_CAN_ACCEN1_Bits;
  88. /** \\brief CAN Clock Control Register */
  89. typedef struct _Ifx_CAN_CLC_Bits
  90. {
  91. unsigned int DISR:1; /**< \brief [0:0] Module Disable Request Bit (rw) */
  92. unsigned int DISS:1; /**< \brief [1:1] Module Disable Status Bit (rh) */
  93. unsigned int reserved_2:1; /**< \brief \internal Reserved */
  94. unsigned int EDIS:1; /**< \brief [3:3] Sleep Mode Enable Control (rw) */
  95. unsigned int reserved_4:28; /**< \brief \internal Reserved */
  96. } Ifx_CAN_CLC_Bits;
  97. /** \\brief CAN Fractional Divider Register */
  98. typedef struct _Ifx_CAN_FDR_Bits
  99. {
  100. unsigned int STEP:10; /**< \brief [9:0] Step Value (rw) */
  101. unsigned int reserved_10:4; /**< \brief \internal Reserved */
  102. unsigned int DM:2; /**< \brief [15:14] Divider Mode (rw) */
  103. unsigned int reserved_16:16; /**< \brief \internal Reserved */
  104. } Ifx_CAN_FDR_Bits;
  105. /** \\brief Module Identification Register */
  106. typedef struct _Ifx_CAN_ID_Bits
  107. {
  108. unsigned int MODREV:8; /**< \brief [7:0] Module Revision Number (r) */
  109. unsigned int MODTYPE:8; /**< \brief [15:8] Module Type (r) */
  110. unsigned int MODNUMBER:16; /**< \brief [31:16] Module Number Value (r) */
  111. } Ifx_CAN_ID_Bits;
  112. /** \\brief Kernel Reset Register 0 */
  113. typedef struct _Ifx_CAN_KRST0_Bits
  114. {
  115. unsigned int RST:1; /**< \brief [0:0] Kernel Reset (rwh) */
  116. unsigned int RSTSTAT:1; /**< \brief [1:1] Kernel Reset Status (rw) */
  117. unsigned int reserved_2:30; /**< \brief \internal Reserved */
  118. } Ifx_CAN_KRST0_Bits;
  119. /** \\brief Kernel Reset Register 1 */
  120. typedef struct _Ifx_CAN_KRST1_Bits
  121. {
  122. unsigned int RST:1; /**< \brief [0:0] Kernel Reset (rwh) */
  123. unsigned int reserved_1:31; /**< \brief \internal Reserved */
  124. } Ifx_CAN_KRST1_Bits;
  125. /** \\brief Kernel Reset Status Clear Register */
  126. typedef struct _Ifx_CAN_KRSTCLR_Bits
  127. {
  128. unsigned int CLR:1; /**< \brief [0:0] Kernel Reset Status Clear (w) */
  129. unsigned int reserved_1:31; /**< \brief \internal Reserved */
  130. } Ifx_CAN_KRSTCLR_Bits;
  131. /** \\brief List Register */
  132. typedef struct _Ifx_CAN_LIST_Bits
  133. {
  134. unsigned int BEGIN:8; /**< \brief [7:0] List Begin (rh) */
  135. unsigned int END:8; /**< \brief [15:8] List End (rh) */
  136. unsigned int SIZE:8; /**< \brief [23:16] List Size (rh) */
  137. unsigned int EMPTY:1; /**< \brief [24:24] List Empty Indication (rh) */
  138. unsigned int reserved_25:7; /**< \brief \internal Reserved */
  139. } Ifx_CAN_LIST_Bits;
  140. /** \\brief Module Control Register */
  141. typedef struct _Ifx_CAN_MCR_Bits
  142. {
  143. unsigned int CLKSEL:4; /**< \brief [3:0] Baud Rate Logic Clock Select (rw) */
  144. unsigned int reserved_4:4; /**< \brief \internal Reserved */
  145. unsigned int DXCM:1; /**< \brief [8:8] Debug Over CAN Messages Enable (rw) */
  146. unsigned int reserved_9:3; /**< \brief \internal Reserved */
  147. unsigned int MPSEL:4; /**< \brief [15:12] Message Pending Selector (rw) */
  148. unsigned int reserved_16:16; /**< \brief \internal Reserved */
  149. } Ifx_CAN_MCR_Bits;
  150. /** \\brief Measure Control Register */
  151. typedef struct _Ifx_CAN_MECR_Bits
  152. {
  153. unsigned int TH:16; /**< \brief [15:0] Threshold (rw) */
  154. unsigned int INP:4; /**< \brief [19:16] Interrupt Node Pointer (rw) */
  155. unsigned int NODE:3; /**< \brief [22:20] Node (rw) */
  156. unsigned int reserved_23:1; /**< \brief \internal Reserved */
  157. unsigned int ANYED:1; /**< \brief [24:24] Any Edge (rw) */
  158. unsigned int CAPEIE:1; /**< \brief [25:25] Capture Event Interrupt Enable (rw) */
  159. unsigned int reserved_26:1; /**< \brief \internal Reserved */
  160. unsigned int DEPTH:3; /**< \brief [29:27] Digital Glitch Filter Depth (rw) */
  161. unsigned int SOF:1; /**< \brief [30:30] Start Of Frame (rw) */
  162. unsigned int reserved_31:1; /**< \brief \internal Reserved */
  163. } Ifx_CAN_MECR_Bits;
  164. /** \\brief Measure Status Register */
  165. typedef struct _Ifx_CAN_MESTAT_Bits
  166. {
  167. unsigned int CAPT:16; /**< \brief [15:0] Captured Timer (rh) */
  168. unsigned int CAPRED:1; /**< \brief [16:16] Captured Rising Edge (rh) */
  169. unsigned int CAPE:1; /**< \brief [17:17] Capture Event (rwh) */
  170. unsigned int reserved_18:14; /**< \brief \internal Reserved */
  171. } Ifx_CAN_MESTAT_Bits;
  172. /** \\brief Module Interrupt Trigger Register */
  173. typedef struct _Ifx_CAN_MITR_Bits
  174. {
  175. unsigned int IT:16; /**< \brief [15:0] Interrupt Trigger (w) */
  176. unsigned int reserved_16:16; /**< \brief \internal Reserved */
  177. } Ifx_CAN_MITR_Bits;
  178. /** \\brief Message Object Acceptance Mask Register */
  179. typedef struct _Ifx_CAN_MO_AMR_Bits
  180. {
  181. unsigned int AM:29; /**< \brief [28:0] Acceptance Mask for Message Identifier (rw) */
  182. unsigned int MIDE:1; /**< \brief [29:29] Acceptance Mask Bit for Message IDE Bit (rw) */
  183. unsigned int reserved_30:2; /**< \brief \internal Reserved */
  184. } Ifx_CAN_MO_AMR_Bits;
  185. /** \\brief Message Object Arbitration Register */
  186. typedef struct _Ifx_CAN_MO_AR_Bits
  187. {
  188. unsigned int ID:29; /**< \brief [28:0] CAN Identifier of Message Object n (rwh) */
  189. unsigned int IDE:1; /**< \brief [29:29] Identifier Extension Bit of Message Object n (rwh) */
  190. unsigned int PRI:2; /**< \brief [31:30] Priority Class (rw) */
  191. } Ifx_CAN_MO_AR_Bits;
  192. /** \\brief Message Object Control Register */
  193. typedef struct _Ifx_CAN_MO_CTR_Bits
  194. {
  195. unsigned int RESRXPND:1; /**< \brief [0:0] Reset/Set Receive Pending (w) */
  196. unsigned int RESTXPND:1; /**< \brief [1:1] Reset/Set Transmit Pending (w) */
  197. unsigned int RESRXUPD:1; /**< \brief [2:2] Reset/Set Receive Updating (w) */
  198. unsigned int RESNEWDAT:1; /**< \brief [3:3] Reset/Set New Data (w) */
  199. unsigned int RESMSGLST:1; /**< \brief [4:4] Reset/Set Message Lost (w) */
  200. unsigned int RESMSGVAL:1; /**< \brief [5:5] Reset/Set Message Valid (w) */
  201. unsigned int RESRTSEL:1; /**< \brief [6:6] Reset/Set Receive/Transmit Selected (w) */
  202. unsigned int RESRXEN:1; /**< \brief [7:7] Reset/Set Receive Enable (w) */
  203. unsigned int RESTXRQ:1; /**< \brief [8:8] Reset/Set Transmit Request (w) */
  204. unsigned int RESTXEN0:1; /**< \brief [9:9] Reset/Set Transmit Enable 0 (w) */
  205. unsigned int RESTXEN1:1; /**< \brief [10:10] Reset/Set Transmit Enable 1 (w) */
  206. unsigned int RESDIR:1; /**< \brief [11:11] Reset/Set Message Direction (w) */
  207. unsigned int reserved_12:4; /**< \brief \internal Reserved */
  208. unsigned int SETRXPND:1; /**< \brief [16:16] Reset/Set Receive Pending (w) */
  209. unsigned int SETTXPND:1; /**< \brief [17:17] Reset/Set Transmit Pending (w) */
  210. unsigned int SETRXUPD:1; /**< \brief [18:18] Reset/Set Receive Updating (w) */
  211. unsigned int SETNEWDAT:1; /**< \brief [19:19] Reset/Set New Data (w) */
  212. unsigned int SETMSGLST:1; /**< \brief [20:20] Reset/Set Message Lost (w) */
  213. unsigned int SETMSGVAL:1; /**< \brief [21:21] Reset/Set Message Valid (w) */
  214. unsigned int SETRTSEL:1; /**< \brief [22:22] Reset/Set Receive/Transmit Selected (w) */
  215. unsigned int SETRXEN:1; /**< \brief [23:23] Reset/Set Receive Enable (w) */
  216. unsigned int SETTXRQ:1; /**< \brief [24:24] Reset/Set Transmit Request (w) */
  217. unsigned int SETTXEN0:1; /**< \brief [25:25] Reset/Set Transmit Enable 0 (w) */
  218. unsigned int SETTXEN1:1; /**< \brief [26:26] Reset/Set Transmit Enable 1 (w) */
  219. unsigned int SETDIR:1; /**< \brief [27:27] Reset/Set Message Direction (w) */
  220. unsigned int reserved_28:4; /**< \brief \internal Reserved */
  221. } Ifx_CAN_MO_CTR_Bits;
  222. /** \\brief Message Object Data Register High */
  223. typedef struct _Ifx_CAN_MO_DATAH_Bits
  224. {
  225. unsigned int DB4:8; /**< \brief [7:0] Data Byte 4 of Message Object n (rwh) */
  226. unsigned int DB5:8; /**< \brief [15:8] Data Byte 5 of Message Object n (rwh) */
  227. unsigned int DB6:8; /**< \brief [23:16] Data Byte 6 of Message Object n (rwh) */
  228. unsigned int DB7:8; /**< \brief [31:24] Data Byte 7 of Message Object n (rwh) */
  229. } Ifx_CAN_MO_DATAH_Bits;
  230. /** \\brief Message Object Data Register Low */
  231. typedef struct _Ifx_CAN_MO_DATAL_Bits
  232. {
  233. unsigned int DB0:8; /**< \brief [7:0] Data Byte 0 of Message Object n (rwh) */
  234. unsigned int DB1:8; /**< \brief [15:8] Data Byte 1 of Message Object n (rwh) */
  235. unsigned int DB2:8; /**< \brief [23:16] Data Byte 2 of Message Object n (rwh) */
  236. unsigned int DB3:8; /**< \brief [31:24] Data Byte 3 of Message Object n (rwh) */
  237. } Ifx_CAN_MO_DATAL_Bits;
  238. /** \\brief Extended Message Object Data 0 Register */
  239. typedef struct _Ifx_CAN_MO_EDATA0_Bits
  240. {
  241. unsigned int DB0:8; /**< \brief [7:0] Data Byte 0 of Message Object n (rwh) */
  242. unsigned int DB1:8; /**< \brief [15:8] Data Byte 1 of Message Object n (rwh) */
  243. unsigned int DB2:8; /**< \brief [23:16] Data Byte 2 of Message Object n (rwh) */
  244. unsigned int DB3:8; /**< \brief [31:24] Data Byte 3 of Message Object n (rwh) */
  245. } Ifx_CAN_MO_EDATA0_Bits;
  246. /** \\brief Extended Message Object Data 1 Register */
  247. typedef struct _Ifx_CAN_MO_EDATA1_Bits
  248. {
  249. unsigned int DB0:8; /**< \brief [7:0] Data Byte 0 of Message Object n (rwh) */
  250. unsigned int DB1:8; /**< \brief [15:8] Data Byte 1 of Message Object n (rwh) */
  251. unsigned int DB2:8; /**< \brief [23:16] Data Byte 2 of Message Object n (rwh) */
  252. unsigned int DB3:8; /**< \brief [31:24] Data Byte 3 of Message Object n (rwh) */
  253. } Ifx_CAN_MO_EDATA1_Bits;
  254. /** \\brief Extended Message Object Data 2 Register */
  255. typedef struct _Ifx_CAN_MO_EDATA2_Bits
  256. {
  257. unsigned int DB0:8; /**< \brief [7:0] Data Byte 0 of Message Object n (rwh) */
  258. unsigned int DB1:8; /**< \brief [15:8] Data Byte 1 of Message Object n (rwh) */
  259. unsigned int DB2:8; /**< \brief [23:16] Data Byte 2 of Message Object n (rwh) */
  260. unsigned int DB3:8; /**< \brief [31:24] Data Byte 3 of Message Object n (rwh) */
  261. } Ifx_CAN_MO_EDATA2_Bits;
  262. /** \\brief Extended Message Object Data 3 Register */
  263. typedef struct _Ifx_CAN_MO_EDATA3_Bits
  264. {
  265. unsigned int DB0:8; /**< \brief [7:0] Data Byte 0 of Message Object n (rwh) */
  266. unsigned int DB1:8; /**< \brief [15:8] Data Byte 1 of Message Object n (rwh) */
  267. unsigned int DB2:8; /**< \brief [23:16] Data Byte 2 of Message Object n (rwh) */
  268. unsigned int DB3:8; /**< \brief [31:24] Data Byte 3 of Message Object n (rwh) */
  269. } Ifx_CAN_MO_EDATA3_Bits;
  270. /** \\brief Extended Message Object Data 4 Register */
  271. typedef struct _Ifx_CAN_MO_EDATA4_Bits
  272. {
  273. unsigned int DB0:8; /**< \brief [7:0] Data Byte 0 of Message Object n (rwh) */
  274. unsigned int DB1:8; /**< \brief [15:8] Data Byte 1 of Message Object n (rwh) */
  275. unsigned int DB2:8; /**< \brief [23:16] Data Byte 2 of Message Object n (rwh) */
  276. unsigned int DB3:8; /**< \brief [31:24] Data Byte 3 of Message Object n (rwh) */
  277. } Ifx_CAN_MO_EDATA4_Bits;
  278. /** \\brief Extended Message Object Data 5 Register */
  279. typedef struct _Ifx_CAN_MO_EDATA5_Bits
  280. {
  281. unsigned int DB0:8; /**< \brief [7:0] Data Byte 0 of Message Object n (rwh) */
  282. unsigned int DB1:8; /**< \brief [15:8] Data Byte 1 of Message Object n (rwh) */
  283. unsigned int DB2:8; /**< \brief [23:16] Data Byte 2 of Message Object n (rwh) */
  284. unsigned int DB3:8; /**< \brief [31:24] Data Byte 3 of Message Object n (rwh) */
  285. } Ifx_CAN_MO_EDATA5_Bits;
  286. /** \\brief Extended Message Object Data 6 Register */
  287. typedef struct _Ifx_CAN_MO_EDATA6_Bits
  288. {
  289. unsigned int DB0:8; /**< \brief [7:0] Data Byte 0 of Message Object n (rwh) */
  290. unsigned int DB1:8; /**< \brief [15:8] Data Byte 1 of Message Object n (rwh) */
  291. unsigned int DB2:8; /**< \brief [23:16] Data Byte 2 of Message Object n (rwh) */
  292. unsigned int DB3:8; /**< \brief [31:24] Data Byte 3 of Message Object n (rwh) */
  293. } Ifx_CAN_MO_EDATA6_Bits;
  294. /** \\brief Message Object Function Control Register */
  295. typedef struct _Ifx_CAN_MO_FCR_Bits
  296. {
  297. unsigned int MMC:4; /**< \brief [3:0] Message Mode Control (rw) */
  298. unsigned int RXTOE:1; /**< \brief [4:4] Receive Time-Out Enable (rw) */
  299. unsigned int BRS:1; /**< \brief [5:5] Bit Rate Switch (rwh) */
  300. unsigned int FDF:1; /**< \brief [6:6] CAN FD Frame Format (rwh) */
  301. unsigned int reserved_7:1; /**< \brief \internal Reserved */
  302. unsigned int GDFS:1; /**< \brief [8:8] Gateway Data Frame Send (rw) */
  303. unsigned int IDC:1; /**< \brief [9:9] Identifier Copy (rw) */
  304. unsigned int DLCC:1; /**< \brief [10:10] Data Length Code Copy (rw) */
  305. unsigned int DATC:1; /**< \brief [11:11] Data Copy (rw) */
  306. unsigned int reserved_12:4; /**< \brief \internal Reserved */
  307. unsigned int RXIE:1; /**< \brief [16:16] Receive Interrupt Enable (rw) */
  308. unsigned int TXIE:1; /**< \brief [17:17] Transmit Interrupt Enable (rw) */
  309. unsigned int OVIE:1; /**< \brief [18:18] Overflow Interrupt Enable (rw) */
  310. unsigned int reserved_19:1; /**< \brief \internal Reserved */
  311. unsigned int FRREN:1; /**< \brief [20:20] Foreign Remote Request Enable (rw) */
  312. unsigned int RMM:1; /**< \brief [21:21] Transmit Object Remote Monitoring (rw) */
  313. unsigned int SDT:1; /**< \brief [22:22] Single Data Transfer (rw) */
  314. unsigned int STT:1; /**< \brief [23:23] Single Transmit Trial (rw) */
  315. unsigned int DLC:4; /**< \brief [27:24] Data Length Code (rwh) */
  316. unsigned int reserved_28:4; /**< \brief \internal Reserved */
  317. } Ifx_CAN_MO_FCR_Bits;
  318. /** \\brief Message Object FIFO/Gateway Pointer Register */
  319. typedef struct _Ifx_CAN_MO_FGPR_Bits
  320. {
  321. unsigned int BOT:8; /**< \brief [7:0] Bottom Pointer (rw) */
  322. unsigned int TOP:8; /**< \brief [15:8] Top Pointer (rw) */
  323. unsigned int CUR:8; /**< \brief [23:16] Current Object Pointer (rwh) */
  324. unsigned int SEL:8; /**< \brief [31:24] Object Select Pointer (rw) */
  325. } Ifx_CAN_MO_FGPR_Bits;
  326. /** \\brief Message Object Interrupt Pointer Register */
  327. typedef struct _Ifx_CAN_MO_IPR_Bits
  328. {
  329. unsigned int RXINP:4; /**< \brief [3:0] Receive Interrupt Node Pointer (rw) */
  330. unsigned int TXINP:4; /**< \brief [7:4] Transmit Interrupt Node Pointer (rw) */
  331. unsigned int MPN:8; /**< \brief [15:8] Message Pending Number (rw) */
  332. unsigned int CFCVAL:16; /**< \brief [31:16] CAN Frame Counter Value (rwh) */
  333. } Ifx_CAN_MO_IPR_Bits;
  334. /** \\brief Message Object Status Register */
  335. typedef struct _Ifx_CAN_MO_STAT_Bits
  336. {
  337. unsigned int RXPND:1; /**< \brief [0:0] Receive Pending (rh) */
  338. unsigned int TXPND:1; /**< \brief [1:1] Transmit Pending (rh) */
  339. unsigned int RXUPD:1; /**< \brief [2:2] Receive Updating (rh) */
  340. unsigned int NEWDAT:1; /**< \brief [3:3] New Data (rh) */
  341. unsigned int MSGLST:1; /**< \brief [4:4] Message Lost (rh) */
  342. unsigned int MSGVAL:1; /**< \brief [5:5] Message Valid (rh) */
  343. unsigned int RTSEL:1; /**< \brief [6:6] Receive/Transmit Selected (rh) */
  344. unsigned int RXEN:1; /**< \brief [7:7] Receive Enable (rh) */
  345. unsigned int TXRQ:1; /**< \brief [8:8] Transmit Request (rh) */
  346. unsigned int TXEN0:1; /**< \brief [9:9] Transmit Enable 0 (rh) */
  347. unsigned int TXEN1:1; /**< \brief [10:10] Transmit Enable 1 (rh) */
  348. unsigned int DIR:1; /**< \brief [11:11] Message Direction (rh) */
  349. unsigned int LIST:4; /**< \brief [15:12] List Allocation (rh) */
  350. unsigned int PPREV:8; /**< \brief [23:16] Pointer to Previous Message Object (rh) */
  351. unsigned int PNEXT:8; /**< \brief [31:24] Pointer to Next Message Object (rh) */
  352. } Ifx_CAN_MO_STAT_Bits;
  353. /** \\brief Message Index Register */
  354. typedef struct _Ifx_CAN_MSID_Bits
  355. {
  356. unsigned int INDEX:6; /**< \brief [5:0] Message Pending Index (rh) */
  357. unsigned int reserved_6:26; /**< \brief \internal Reserved */
  358. } Ifx_CAN_MSID_Bits;
  359. /** \\brief Message Index Mask Register */
  360. typedef struct _Ifx_CAN_MSIMASK_Bits
  361. {
  362. unsigned int IM:32; /**< \brief [31:0] Message Index Mask (rw) */
  363. } Ifx_CAN_MSIMASK_Bits;
  364. /** \\brief Message Pending Register */
  365. typedef struct _Ifx_CAN_MSPND_Bits
  366. {
  367. unsigned int PND:32; /**< \brief [31:0] Message Pending (rwh) */
  368. } Ifx_CAN_MSPND_Bits;
  369. /** \\brief Node Bit Timing Extended View Register */
  370. typedef struct _Ifx_CAN_N_BTEVR_Bits
  371. {
  372. unsigned int BRP:6; /**< \brief [5:0] Baud Rate Prescaler (rw) */
  373. unsigned int reserved_6:2; /**< \brief \internal Reserved */
  374. unsigned int SJW:4; /**< \brief [11:8] (Re) Synchronization Jump Width (rw) */
  375. unsigned int reserved_12:3; /**< \brief \internal Reserved */
  376. unsigned int DIV8:1; /**< \brief [15:15] Divide Prescaler Clock by 8 (rw) */
  377. unsigned int TSEG2:5; /**< \brief [20:16] Time Segment After Sample Point (rw) */
  378. unsigned int reserved_21:1; /**< \brief \internal Reserved */
  379. unsigned int TSEG1:6; /**< \brief [27:22] Time Segment Before Sample Point (rw) */
  380. unsigned int reserved_28:4; /**< \brief \internal Reserved */
  381. } Ifx_CAN_N_BTEVR_Bits;
  382. /** \\brief Node Bit Timing Register */
  383. typedef struct _Ifx_CAN_N_BTR_Bits
  384. {
  385. unsigned int BRP:6; /**< \brief [5:0] Baud Rate Prescaler (rw) */
  386. unsigned int SJW:2; /**< \brief [7:6] (Re) Synchronization Jump Width (rw) */
  387. unsigned int TSEG1:4; /**< \brief [11:8] Time Segment Before Sample Point (rw) */
  388. unsigned int TSEG2:3; /**< \brief [14:12] Time Segment After Sample Point (rw) */
  389. unsigned int DIV8:1; /**< \brief [15:15] Divide Prescaler Clock by 8 (rw) */
  390. unsigned int reserved_16:16; /**< \brief \internal Reserved */
  391. } Ifx_CAN_N_BTR_Bits;
  392. /** \\brief Node Control Register */
  393. typedef struct _Ifx_CAN_N_CR_Bits
  394. {
  395. unsigned int INIT:1; /**< \brief [0:0] Node Initialization (rwh) */
  396. unsigned int TRIE:1; /**< \brief [1:1] Transfer Interrupt Enable (rw) */
  397. unsigned int LECIE:1; /**< \brief [2:2] LEC Indicated Error Interrupt Enable (rw) */
  398. unsigned int ALIE:1; /**< \brief [3:3] Alert Interrupt Enable (rw) */
  399. unsigned int CANDIS:1; /**< \brief [4:4] CAN Disable (rw) */
  400. unsigned int TXDIS:1; /**< \brief [5:5] Transmit Disable (rw) */
  401. unsigned int CCE:1; /**< \brief [6:6] Configuration Change Enable (rw) */
  402. unsigned int CALM:1; /**< \brief [7:7] CAN Analyzer Mode (rw) */
  403. unsigned int SUSEN:1; /**< \brief [8:8] Suspend Enable (rw) */
  404. unsigned int FDEN:1; /**< \brief [9:9] CAN Flexible Data-Rate Enable (rw) */
  405. unsigned int reserved_10:22; /**< \brief \internal Reserved */
  406. } Ifx_CAN_N_CR_Bits;
  407. /** \\brief Node Error Counter Register */
  408. typedef struct _Ifx_CAN_N_ECNT_Bits
  409. {
  410. unsigned int REC:8; /**< \brief [7:0] Receive Error Counter (rwh) */
  411. unsigned int TEC:8; /**< \brief [15:8] Transmit Error Counter (rwh) */
  412. unsigned int EWRNLVL:8; /**< \brief [23:16] Error Warning Level (rw) */
  413. unsigned int LETD:1; /**< \brief [24:24] Last Error Transfer Direction (rh) */
  414. unsigned int LEINC:1; /**< \brief [25:25] Last Error Increment (rh) */
  415. unsigned int reserved_26:6; /**< \brief \internal Reserved */
  416. } Ifx_CAN_N_ECNT_Bits;
  417. /** \\brief Fast Node Bit Timing Register */
  418. typedef struct _Ifx_CAN_N_FBTR_Bits
  419. {
  420. unsigned int FBRP:6; /**< \brief [5:0] Fast Baud Rate Prescaler (rw) */
  421. unsigned int FSJW:2; /**< \brief [7:6] Fast (Re) Synchronization Jump Width (rw) */
  422. unsigned int FTSEG1:4; /**< \brief [11:8] Fast Time Segment Before Sample Point (rw) */
  423. unsigned int FTSEG2:3; /**< \brief [14:12] Fast Time Segment After Sample Point (rw) */
  424. unsigned int reserved_15:17; /**< \brief \internal Reserved */
  425. } Ifx_CAN_N_FBTR_Bits;
  426. /** \\brief Node Frame Counter Register */
  427. typedef struct _Ifx_CAN_N_FCR_Bits
  428. {
  429. unsigned int CFC:16; /**< \brief [15:0] CAN Frame Counter (rwh) */
  430. unsigned int CFSEL:3; /**< \brief [18:16] CAN Frame Count Selection (rw) */
  431. unsigned int CFMOD:2; /**< \brief [20:19] CAN Frame Counter Mode (rw) */
  432. unsigned int reserved_21:1; /**< \brief \internal Reserved */
  433. unsigned int CFCIE:1; /**< \brief [22:22] CAN Frame Count Interrupt Enable (rw) */
  434. unsigned int CFCOV:1; /**< \brief [23:23] CAN Frame Counter Overflow Flag (rwh) */
  435. unsigned int reserved_24:8; /**< \brief \internal Reserved */
  436. } Ifx_CAN_N_FCR_Bits;
  437. /** \\brief Node Interrupt Pointer Register */
  438. typedef struct _Ifx_CAN_N_IPR_Bits
  439. {
  440. unsigned int ALINP:4; /**< \brief [3:0] Alert Interrupt Node Pointer (rw) */
  441. unsigned int LECINP:4; /**< \brief [7:4] Last Error Code Interrupt Node Pointer (rw) */
  442. unsigned int TRINP:4; /**< \brief [11:8] Transfer OK Interrupt Node Pointer (rw) */
  443. unsigned int CFCINP:4; /**< \brief [15:12] Frame Counter Interrupt Node Pointer (rw) */
  444. unsigned int TEINP:4; /**< \brief [19:16] Timer Event Interrupt Node Pointer (rw) */
  445. unsigned int reserved_20:12; /**< \brief \internal Reserved */
  446. } Ifx_CAN_N_IPR_Bits;
  447. /** \\brief Node Port Control Register */
  448. typedef struct _Ifx_CAN_N_PCR_Bits
  449. {
  450. unsigned int RXSEL:3; /**< \brief [2:0] Receive Select (rw) */
  451. unsigned int reserved_3:5; /**< \brief \internal Reserved */
  452. unsigned int LBM:1; /**< \brief [8:8] Loop-Back Mode (rw) */
  453. unsigned int reserved_9:23; /**< \brief \internal Reserved */
  454. } Ifx_CAN_N_PCR_Bits;
  455. /** \\brief Node Status Register */
  456. typedef struct _Ifx_CAN_N_SR_Bits
  457. {
  458. unsigned int LEC:3; /**< \brief [2:0] Last Error Code (rwh) */
  459. unsigned int TXOK:1; /**< \brief [3:3] Message Transmitted Successfully (rwh) */
  460. unsigned int RXOK:1; /**< \brief [4:4] Message Received Successfully (rwh) */
  461. unsigned int ALERT:1; /**< \brief [5:5] Alert Warning (rwh) */
  462. unsigned int EWRN:1; /**< \brief [6:6] Error Warning Status (rh) */
  463. unsigned int BOFF:1; /**< \brief [7:7] Bus-off Status (rh) */
  464. unsigned int LLE:1; /**< \brief [8:8] List Length Error (rwh) */
  465. unsigned int LOE:1; /**< \brief [9:9] List Object Error (rwh) */
  466. unsigned int SUSACK:1; /**< \brief [10:10] Suspend Acknowledge (rh) */
  467. unsigned int RESI:1; /**< \brief [11:11] Received Error State Indicator Flag This bit is an error flag that is set when the ESI flag in a received CAN FD frame is set. (rh) */
  468. unsigned int FLEC:3; /**< \brief [14:12] Fast Last Error Code (rwh) */
  469. unsigned int reserved_15:17; /**< \brief \internal Reserved */
  470. } Ifx_CAN_N_SR_Bits;
  471. /** \\brief Node Timer Clock Control Register */
  472. typedef struct _Ifx_CAN_N_TCCR_Bits
  473. {
  474. unsigned int reserved_0:8; /**< \brief \internal Reserved */
  475. unsigned int TPSC:4; /**< \brief [11:8] Timer Prescaler (rw) */
  476. unsigned int reserved_12:6; /**< \brief \internal Reserved */
  477. unsigned int TRIGSRC:3; /**< \brief [20:18] Trigger Source (rw) */
  478. unsigned int reserved_21:11; /**< \brief \internal Reserved */
  479. } Ifx_CAN_N_TCCR_Bits;
  480. /** \\brief Node Transceiver Delay Compensation Register */
  481. typedef struct _Ifx_CAN_N_TDCR_Bits
  482. {
  483. unsigned int TDCV:5; /**< \brief [4:0] Transceiver Delay Compensation Value (r) */
  484. unsigned int reserved_5:3; /**< \brief \internal Reserved */
  485. unsigned int TDCO:4; /**< \brief [11:8] Transceiver Delay Compensation Offset (rw) */
  486. unsigned int reserved_12:3; /**< \brief \internal Reserved */
  487. unsigned int TDC:1; /**< \brief [15:15] Transceiver Delay Compensation Enable (rw) */
  488. unsigned int reserved_16:16; /**< \brief \internal Reserved */
  489. } Ifx_CAN_N_TDCR_Bits;
  490. /** \\brief Node Timer Receive Timeout Register */
  491. typedef struct _Ifx_CAN_N_TRTR_Bits
  492. {
  493. unsigned int RELOAD:16; /**< \brief [15:0] Reload Value (rw) */
  494. unsigned int reserved_16:6; /**< \brief \internal Reserved */
  495. unsigned int TEIE:1; /**< \brief [22:22] Timer Event Interrupt Enable (rw) */
  496. unsigned int TE:1; /**< \brief [23:23] Timer Event (rwh) */
  497. unsigned int reserved_24:8; /**< \brief \internal Reserved */
  498. } Ifx_CAN_N_TRTR_Bits;
  499. /** \\brief Node Timer Transmit Trigger Register */
  500. typedef struct _Ifx_CAN_N_TTTR_Bits
  501. {
  502. unsigned int RELOAD:16; /**< \brief [15:0] Reload Value (rw) */
  503. unsigned int TXMO:8; /**< \brief [23:16] Transmit Message Object (rw) */
  504. unsigned int STRT:1; /**< \brief [24:24] Timer Start (rw) */
  505. unsigned int reserved_25:7; /**< \brief \internal Reserved */
  506. } Ifx_CAN_N_TTTR_Bits;
  507. /** \\brief OCDS Control and Status */
  508. typedef struct _Ifx_CAN_OCS_Bits
  509. {
  510. unsigned int TGS:2; /**< \brief [1:0] Trigger Set for OTGB0/1 (rw) */
  511. unsigned int TGB:1; /**< \brief [2:2] OTGB0/1 Bus Select (rw) */
  512. unsigned int TG_P:1; /**< \brief [3:3] TGS, TGB Write Protection (w) */
  513. unsigned int reserved_4:20; /**< \brief \internal Reserved */
  514. unsigned int SUS:4; /**< \brief [27:24] OCDS Suspend Control (rw) */
  515. unsigned int SUS_P:1; /**< \brief [28:28] SUS Write Protection (w) */
  516. unsigned int SUSSTA:1; /**< \brief [29:29] Suspend State (rh) */
  517. unsigned int reserved_30:2; /**< \brief \internal Reserved */
  518. } Ifx_CAN_OCS_Bits;
  519. /** \\brief Panel Control Register */
  520. typedef struct _Ifx_CAN_PANCTR_Bits
  521. {
  522. unsigned int PANCMD:8; /**< \brief [7:0] Panel Command (rwh) */
  523. unsigned int BUSY:1; /**< \brief [8:8] Panel Busy Flag (rh) */
  524. unsigned int RBUSY:1; /**< \brief [9:9] Result Busy Flag (rh) */
  525. unsigned int reserved_10:6; /**< \brief \internal Reserved */
  526. unsigned int PANAR1:8; /**< \brief [23:16] Panel Argument 1 (rwh) */
  527. unsigned int PANAR2:8; /**< \brief [31:24] Panel Argument 2 (rwh) */
  528. } Ifx_CAN_PANCTR_Bits;
  529. /** \} */
  530. /******************************************************************************/
  531. /******************************************************************************/
  532. /** \addtogroup IfxLld_Can_union
  533. * \{ */
  534. /** \\brief Access Enable Register 0 */
  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_CAN_ACCEN0_Bits B;
  543. } Ifx_CAN_ACCEN0;
  544. /** \\brief Access Enable Register 1 */
  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_CAN_ACCEN1_Bits B;
  553. } Ifx_CAN_ACCEN1;
  554. /** \\brief CAN Clock Control Register */
  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_CAN_CLC_Bits B;
  563. } Ifx_CAN_CLC;
  564. /** \\brief CAN Fractional Divider 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_CAN_FDR_Bits B;
  573. } Ifx_CAN_FDR;
  574. /** \\brief Module Identification 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_CAN_ID_Bits B;
  583. } Ifx_CAN_ID;
  584. /** \\brief Kernel Reset Register 0 */
  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_CAN_KRST0_Bits B;
  593. } Ifx_CAN_KRST0;
  594. /** \\brief Kernel Reset Register 1 */
  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_CAN_KRST1_Bits B;
  603. } Ifx_CAN_KRST1;
  604. /** \\brief Kernel Reset Status Clear Register */
  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_CAN_KRSTCLR_Bits B;
  613. } Ifx_CAN_KRSTCLR;
  614. /** \\brief List 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_CAN_LIST_Bits B;
  623. } Ifx_CAN_LIST;
  624. /** \\brief Module Control 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_CAN_MCR_Bits B;
  633. } Ifx_CAN_MCR;
  634. /** \\brief Measure Control 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_CAN_MECR_Bits B;
  643. } Ifx_CAN_MECR;
  644. /** \\brief Measure Status 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_CAN_MESTAT_Bits B;
  653. } Ifx_CAN_MESTAT;
  654. /** \\brief Module Interrupt Trigger 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_CAN_MITR_Bits B;
  663. } Ifx_CAN_MITR;
  664. /** \\brief Message Object Acceptance Mask Register */
  665. typedef union
  666. {
  667. /** \brief Unsigned access */
  668. unsigned int U;
  669. /** \brief Signed access */
  670. signed int I;
  671. /** \brief Bitfield access */
  672. Ifx_CAN_MO_AMR_Bits B;
  673. } Ifx_CAN_MO_AMR;
  674. /** \\brief Message Object Arbitration Register */
  675. typedef union
  676. {
  677. /** \brief Unsigned access */
  678. unsigned int U;
  679. /** \brief Signed access */
  680. signed int I;
  681. /** \brief Bitfield access */
  682. Ifx_CAN_MO_AR_Bits B;
  683. } Ifx_CAN_MO_AR;
  684. /** \\brief Message Object Control Register */
  685. typedef union
  686. {
  687. /** \brief Unsigned access */
  688. unsigned int U;
  689. /** \brief Signed access */
  690. signed int I;
  691. /** \brief Bitfield access */
  692. Ifx_CAN_MO_CTR_Bits B;
  693. } Ifx_CAN_MO_CTR;
  694. /** \\brief Message Object Data Register High */
  695. typedef union
  696. {
  697. /** \brief Unsigned access */
  698. unsigned int U;
  699. /** \brief Signed access */
  700. signed int I;
  701. /** \brief Bitfield access */
  702. Ifx_CAN_MO_DATAH_Bits B;
  703. } Ifx_CAN_MO_DATAH;
  704. /** \\brief Message Object Data Register Low */
  705. typedef union
  706. {
  707. /** \brief Unsigned access */
  708. unsigned int U;
  709. /** \brief Signed access */
  710. signed int I;
  711. /** \brief Bitfield access */
  712. Ifx_CAN_MO_DATAL_Bits B;
  713. } Ifx_CAN_MO_DATAL;
  714. /** \\brief Extended Message Object Data 0 Register */
  715. typedef union
  716. {
  717. /** \brief Unsigned access */
  718. unsigned int U;
  719. /** \brief Signed access */
  720. signed int I;
  721. /** \brief Bitfield access */
  722. Ifx_CAN_MO_EDATA0_Bits B;
  723. } Ifx_CAN_MO_EDATA0;
  724. /** \\brief Extended Message Object Data 1 Register */
  725. typedef union
  726. {
  727. /** \brief Unsigned access */
  728. unsigned int U;
  729. /** \brief Signed access */
  730. signed int I;
  731. /** \brief Bitfield access */
  732. Ifx_CAN_MO_EDATA1_Bits B;
  733. } Ifx_CAN_MO_EDATA1;
  734. /** \\brief Extended Message Object Data 2 Register */
  735. typedef union
  736. {
  737. /** \brief Unsigned access */
  738. unsigned int U;
  739. /** \brief Signed access */
  740. signed int I;
  741. /** \brief Bitfield access */
  742. Ifx_CAN_MO_EDATA2_Bits B;
  743. } Ifx_CAN_MO_EDATA2;
  744. /** \\brief Extended Message Object Data 3 Register */
  745. typedef union
  746. {
  747. /** \brief Unsigned access */
  748. unsigned int U;
  749. /** \brief Signed access */
  750. signed int I;
  751. /** \brief Bitfield access */
  752. Ifx_CAN_MO_EDATA3_Bits B;
  753. } Ifx_CAN_MO_EDATA3;
  754. /** \\brief Extended Message Object Data 4 Register */
  755. typedef union
  756. {
  757. /** \brief Unsigned access */
  758. unsigned int U;
  759. /** \brief Signed access */
  760. signed int I;
  761. /** \brief Bitfield access */
  762. Ifx_CAN_MO_EDATA4_Bits B;
  763. } Ifx_CAN_MO_EDATA4;
  764. /** \\brief Extended Message Object Data 5 Register */
  765. typedef union
  766. {
  767. /** \brief Unsigned access */
  768. unsigned int U;
  769. /** \brief Signed access */
  770. signed int I;
  771. /** \brief Bitfield access */
  772. Ifx_CAN_MO_EDATA5_Bits B;
  773. } Ifx_CAN_MO_EDATA5;
  774. /** \\brief Extended Message Object Data 6 Register */
  775. typedef union
  776. {
  777. /** \brief Unsigned access */
  778. unsigned int U;
  779. /** \brief Signed access */
  780. signed int I;
  781. /** \brief Bitfield access */
  782. Ifx_CAN_MO_EDATA6_Bits B;
  783. } Ifx_CAN_MO_EDATA6;
  784. /** \\brief Message Object Function Control Register */
  785. typedef union
  786. {
  787. /** \brief Unsigned access */
  788. unsigned int U;
  789. /** \brief Signed access */
  790. signed int I;
  791. /** \brief Bitfield access */
  792. Ifx_CAN_MO_FCR_Bits B;
  793. } Ifx_CAN_MO_FCR;
  794. /** \\brief Message Object FIFO/Gateway Pointer Register */
  795. typedef union
  796. {
  797. /** \brief Unsigned access */
  798. unsigned int U;
  799. /** \brief Signed access */
  800. signed int I;
  801. /** \brief Bitfield access */
  802. Ifx_CAN_MO_FGPR_Bits B;
  803. } Ifx_CAN_MO_FGPR;
  804. /** \\brief Message Object Interrupt Pointer Register */
  805. typedef union
  806. {
  807. /** \brief Unsigned access */
  808. unsigned int U;
  809. /** \brief Signed access */
  810. signed int I;
  811. /** \brief Bitfield access */
  812. Ifx_CAN_MO_IPR_Bits B;
  813. } Ifx_CAN_MO_IPR;
  814. /** \\brief Message Object Status Register */
  815. typedef union
  816. {
  817. /** \brief Unsigned access */
  818. unsigned int U;
  819. /** \brief Signed access */
  820. signed int I;
  821. /** \brief Bitfield access */
  822. Ifx_CAN_MO_STAT_Bits B;
  823. } Ifx_CAN_MO_STAT;
  824. /** \\brief Message Index Register */
  825. typedef union
  826. {
  827. /** \brief Unsigned access */
  828. unsigned int U;
  829. /** \brief Signed access */
  830. signed int I;
  831. /** \brief Bitfield access */
  832. Ifx_CAN_MSID_Bits B;
  833. } Ifx_CAN_MSID;
  834. /** \\brief Message Index Mask Register */
  835. typedef union
  836. {
  837. /** \brief Unsigned access */
  838. unsigned int U;
  839. /** \brief Signed access */
  840. signed int I;
  841. /** \brief Bitfield access */
  842. Ifx_CAN_MSIMASK_Bits B;
  843. } Ifx_CAN_MSIMASK;
  844. /** \\brief Message Pending Register */
  845. typedef union
  846. {
  847. /** \brief Unsigned access */
  848. unsigned int U;
  849. /** \brief Signed access */
  850. signed int I;
  851. /** \brief Bitfield access */
  852. Ifx_CAN_MSPND_Bits B;
  853. } Ifx_CAN_MSPND;
  854. /** \\brief Node Bit Timing Extended View Register */
  855. typedef union
  856. {
  857. /** \brief Unsigned access */
  858. unsigned int U;
  859. /** \brief Signed access */
  860. signed int I;
  861. /** \brief Bitfield access */
  862. Ifx_CAN_N_BTEVR_Bits B;
  863. } Ifx_CAN_N_BTEVR;
  864. /** \\brief Node Bit Timing Register */
  865. typedef union
  866. {
  867. /** \brief Unsigned access */
  868. unsigned int U;
  869. /** \brief Signed access */
  870. signed int I;
  871. /** \brief Bitfield access */
  872. Ifx_CAN_N_BTR_Bits B;
  873. } Ifx_CAN_N_BTR;
  874. /** \\brief Node Control Register */
  875. typedef union
  876. {
  877. /** \brief Unsigned access */
  878. unsigned int U;
  879. /** \brief Signed access */
  880. signed int I;
  881. /** \brief Bitfield access */
  882. Ifx_CAN_N_CR_Bits B;
  883. } Ifx_CAN_N_CR;
  884. /** \\brief Node Error Counter Register */
  885. typedef union
  886. {
  887. /** \brief Unsigned access */
  888. unsigned int U;
  889. /** \brief Signed access */
  890. signed int I;
  891. /** \brief Bitfield access */
  892. Ifx_CAN_N_ECNT_Bits B;
  893. } Ifx_CAN_N_ECNT;
  894. /** \\brief Fast Node Bit Timing Register */
  895. typedef union
  896. {
  897. /** \brief Unsigned access */
  898. unsigned int U;
  899. /** \brief Signed access */
  900. signed int I;
  901. /** \brief Bitfield access */
  902. Ifx_CAN_N_FBTR_Bits B;
  903. } Ifx_CAN_N_FBTR;
  904. /** \\brief Node Frame Counter Register */
  905. typedef union
  906. {
  907. /** \brief Unsigned access */
  908. unsigned int U;
  909. /** \brief Signed access */
  910. signed int I;
  911. /** \brief Bitfield access */
  912. Ifx_CAN_N_FCR_Bits B;
  913. } Ifx_CAN_N_FCR;
  914. /** \\brief Node Interrupt Pointer Register */
  915. typedef union
  916. {
  917. /** \brief Unsigned access */
  918. unsigned int U;
  919. /** \brief Signed access */
  920. signed int I;
  921. /** \brief Bitfield access */
  922. Ifx_CAN_N_IPR_Bits B;
  923. } Ifx_CAN_N_IPR;
  924. /** \\brief Node Port Control Register */
  925. typedef union
  926. {
  927. /** \brief Unsigned access */
  928. unsigned int U;
  929. /** \brief Signed access */
  930. signed int I;
  931. /** \brief Bitfield access */
  932. Ifx_CAN_N_PCR_Bits B;
  933. } Ifx_CAN_N_PCR;
  934. /** \\brief Node Status Register */
  935. typedef union
  936. {
  937. /** \brief Unsigned access */
  938. unsigned int U;
  939. /** \brief Signed access */
  940. signed int I;
  941. /** \brief Bitfield access */
  942. Ifx_CAN_N_SR_Bits B;
  943. } Ifx_CAN_N_SR;
  944. /** \\brief Node Timer Clock Control Register */
  945. typedef union
  946. {
  947. /** \brief Unsigned access */
  948. unsigned int U;
  949. /** \brief Signed access */
  950. signed int I;
  951. /** \brief Bitfield access */
  952. Ifx_CAN_N_TCCR_Bits B;
  953. } Ifx_CAN_N_TCCR;
  954. /** \\brief Node Transceiver Delay Compensation Register */
  955. typedef union
  956. {
  957. /** \brief Unsigned access */
  958. unsigned int U;
  959. /** \brief Signed access */
  960. signed int I;
  961. /** \brief Bitfield access */
  962. Ifx_CAN_N_TDCR_Bits B;
  963. } Ifx_CAN_N_TDCR;
  964. /** \\brief Node Timer Receive Timeout Register */
  965. typedef union
  966. {
  967. /** \brief Unsigned access */
  968. unsigned int U;
  969. /** \brief Signed access */
  970. signed int I;
  971. /** \brief Bitfield access */
  972. Ifx_CAN_N_TRTR_Bits B;
  973. } Ifx_CAN_N_TRTR;
  974. /** \\brief Node Timer Transmit Trigger Register */
  975. typedef union
  976. {
  977. /** \brief Unsigned access */
  978. unsigned int U;
  979. /** \brief Signed access */
  980. signed int I;
  981. /** \brief Bitfield access */
  982. Ifx_CAN_N_TTTR_Bits B;
  983. } Ifx_CAN_N_TTTR;
  984. /** \\brief OCDS Control and Status */
  985. typedef union
  986. {
  987. /** \brief Unsigned access */
  988. unsigned int U;
  989. /** \brief Signed access */
  990. signed int I;
  991. /** \brief Bitfield access */
  992. Ifx_CAN_OCS_Bits B;
  993. } Ifx_CAN_OCS;
  994. /** \\brief Panel Control Register */
  995. typedef union
  996. {
  997. /** \brief Unsigned access */
  998. unsigned int U;
  999. /** \brief Signed access */
  1000. signed int I;
  1001. /** \brief Bitfield access */
  1002. Ifx_CAN_PANCTR_Bits B;
  1003. } Ifx_CAN_PANCTR;
  1004. /** \} */
  1005. /******************************************************************************/
  1006. /******************************************************************************/
  1007. /** \addtogroup IfxLld_Can_struct
  1008. * \{ */
  1009. /******************************************************************************/
  1010. /** \name Object L1
  1011. * \{ */
  1012. /** \\brief Message object */
  1013. typedef volatile struct _Ifx_CAN_MO
  1014. {
  1015. union
  1016. {
  1017. Ifx_CAN_MO_EDATA0 EDATA0;/**< \brief 0, Message Object Function Control Register */
  1018. Ifx_CAN_MO_FCR FCR;/**< \brief 0, Message Object Function Control Register */
  1019. };
  1020. union
  1021. {
  1022. Ifx_CAN_MO_EDATA1 EDATA1;/**< \brief 4, Message Object FIFO/Gateway Pointer Register */
  1023. Ifx_CAN_MO_FGPR FGPR;/**< \brief 4, Message Object FIFO/Gateway Pointer Register */
  1024. };
  1025. union
  1026. {
  1027. Ifx_CAN_MO_EDATA2 EDATA2;/**< \brief 8, Message Object Interrupt Pointer Register */
  1028. Ifx_CAN_MO_IPR IPR;/**< \brief 8, Message Object Interrupt Pointer Register */
  1029. };
  1030. union
  1031. {
  1032. Ifx_CAN_MO_AMR AMR;/**< \brief C, Message Object Acceptance Mask Register */
  1033. Ifx_CAN_MO_EDATA3 EDATA3;/**< \brief C, Message Object Acceptance Mask Register */
  1034. };
  1035. union
  1036. {
  1037. Ifx_CAN_MO_DATAL DATAL;/**< \brief 10, Message Object Data Register Low */
  1038. Ifx_CAN_MO_EDATA4 EDATA4;/**< \brief 10, Message Object Data Register Low */
  1039. };
  1040. union
  1041. {
  1042. Ifx_CAN_MO_DATAH DATAH;/**< \brief 14, Message Object Data Register High */
  1043. Ifx_CAN_MO_EDATA5 EDATA5;/**< \brief 14, Message Object Data Register High */
  1044. };
  1045. union
  1046. {
  1047. Ifx_CAN_MO_AR AR;/**< \brief 18, Message Object Arbitration Register */
  1048. Ifx_CAN_MO_EDATA6 EDATA6;/**< \brief 18, Message Object Arbitration Register */
  1049. };
  1050. union
  1051. {
  1052. Ifx_CAN_MO_CTR CTR;/**< \brief 1C, Message Object Control Register */
  1053. Ifx_CAN_MO_STAT STAT;/**< \brief 1C, Message Object Control Register */
  1054. };
  1055. } Ifx_CAN_MO;
  1056. /** \\brief Node object */
  1057. typedef volatile struct _Ifx_CAN_N
  1058. {
  1059. Ifx_CAN_N_CR CR; /**< \brief 0, Node Control Register */
  1060. Ifx_CAN_N_SR SR; /**< \brief 4, Node Status Register */
  1061. Ifx_CAN_N_IPR IPR; /**< \brief 8, Node Interrupt Pointer Register */
  1062. Ifx_CAN_N_PCR PCR; /**< \brief C, Node Port Control Register */
  1063. union
  1064. {
  1065. Ifx_CAN_N_BTEVR BTEVR;/**< \brief 10, Node Bit Timing Register */
  1066. Ifx_CAN_N_BTR BTR;/**< \brief 10, Node Bit Timing Register */
  1067. };
  1068. Ifx_CAN_N_ECNT ECNT; /**< \brief 14, Node Error Counter Register */
  1069. Ifx_CAN_N_FCR FCR; /**< \brief 18, Node Frame Counter Register */
  1070. Ifx_CAN_N_TCCR TCCR; /**< \brief 1C, Node Timer Clock Control Register */
  1071. Ifx_CAN_N_TRTR TRTR; /**< \brief 20, Node Timer Receive Timeout Register */
  1072. Ifx_CAN_N_TTTR TATTR; /**< \brief 24, Node Timer A Transmit Trigger Register */
  1073. Ifx_CAN_N_TTTR TBTTR; /**< \brief 28, Node Timer B Transmit Trigger Register */
  1074. Ifx_CAN_N_TTTR TCTTR; /**< \brief 2C, Node Timer C Transmit Trigger Register */
  1075. unsigned char reserved_30[8]; /**< \brief 30, \internal Reserved */
  1076. Ifx_CAN_N_FBTR FBTR; /**< \brief 38, Fast Node Bit Timing Register */
  1077. Ifx_CAN_N_TDCR TDCR; /**< \brief 3C, Node Transceiver Delay Compensation Register */
  1078. unsigned char reserved_40[192]; /**< \brief 40, \internal Reserved */
  1079. } Ifx_CAN_N;
  1080. /** \} */
  1081. /******************************************************************************/
  1082. /** \} */
  1083. /******************************************************************************/
  1084. /******************************************************************************/
  1085. /** \addtogroup IfxLld_Can_struct
  1086. * \{ */
  1087. /******************************************************************************/
  1088. /** \name Object L0
  1089. * \{ */
  1090. /** \\brief CAN object */
  1091. typedef volatile struct _Ifx_CAN
  1092. {
  1093. Ifx_CAN_CLC CLC; /**< \brief 0, CAN Clock Control Register */
  1094. unsigned char reserved_4[4]; /**< \brief 4, \internal Reserved */
  1095. Ifx_CAN_ID ID; /**< \brief 8, Module Identification Register */
  1096. Ifx_CAN_FDR FDR; /**< \brief C, CAN Fractional Divider Register */
  1097. unsigned char reserved_10[216]; /**< \brief 10, \internal Reserved */
  1098. Ifx_CAN_OCS OCS; /**< \brief E8, OCDS Control and Status */
  1099. Ifx_CAN_KRSTCLR KRSTCLR; /**< \brief EC, Kernel Reset Status Clear Register */
  1100. Ifx_CAN_KRST1 KRST1; /**< \brief F0, Kernel Reset Register 1 */
  1101. Ifx_CAN_KRST0 KRST0; /**< \brief F4, Kernel Reset Register 0 */
  1102. Ifx_CAN_ACCEN1 ACCEN1; /**< \brief F8, Access Enable Register 1 */
  1103. Ifx_CAN_ACCEN0 ACCEN0; /**< \brief FC, Access Enable Register 0 */
  1104. Ifx_CAN_LIST LIST[16]; /**< \brief 100, List Register */
  1105. Ifx_CAN_MSPND MSPND[8]; /**< \brief 140, Message Pending Register */
  1106. unsigned char reserved_160[32]; /**< \brief 160, \internal Reserved */
  1107. Ifx_CAN_MSID MSID[8]; /**< \brief 180, Message Index Register */
  1108. unsigned char reserved_1A0[32]; /**< \brief 1A0, \internal Reserved */
  1109. Ifx_CAN_MSIMASK MSIMASK; /**< \brief 1C0, Message Index Mask Register */
  1110. Ifx_CAN_PANCTR PANCTR; /**< \brief 1C4, Panel Control Register */
  1111. Ifx_CAN_MCR MCR; /**< \brief 1C8, Module Control Register */
  1112. Ifx_CAN_MITR MITR; /**< \brief 1CC, Module Interrupt Trigger Register */
  1113. Ifx_CAN_MECR MECR; /**< \brief 1D0, Measure Control Register */
  1114. Ifx_CAN_MESTAT MESTAT; /**< \brief 1D4, Measure Status Register */
  1115. unsigned char reserved_1D8[40]; /**< \brief 1D8, \internal Reserved */
  1116. Ifx_CAN_N N[3]; /**< \brief 200, Node object */
  1117. unsigned char reserved_500[2816]; /**< \brief 500, \internal Reserved */
  1118. Ifx_CAN_MO MO[128]; /**< \brief 1000, Message objects */
  1119. unsigned char reserved_2000[8192]; /**< \brief 2000, \internal Reserved */
  1120. } Ifx_CAN;
  1121. /** \} */
  1122. /******************************************************************************/
  1123. /** \} */
  1124. /******************************************************************************/
  1125. /******************************************************************************/
  1126. #if defined (__TASKING__)
  1127. #pragma warning restore
  1128. #endif
  1129. /******************************************************************************/
  1130. #endif /* IFXCAN_REGDEF_H */