1
0

hw_can.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. //*****************************************************************************
  2. //
  3. // hw_can.h - Defines and macros used when accessing the CAN controllers.
  4. //
  5. // Copyright (c) 2006-2014 Texas Instruments Incorporated. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Redistribution and use in source and binary forms, with or without
  9. // modification, are permitted provided that the following conditions
  10. // are met:
  11. //
  12. // Redistributions of source code must retain the above copyright
  13. // notice, this list of conditions and the following disclaimer.
  14. //
  15. // Redistributions in binary form must reproduce the above copyright
  16. // notice, this list of conditions and the following disclaimer in the
  17. // documentation and/or other materials provided with the
  18. // distribution.
  19. //
  20. // Neither the name of Texas Instruments Incorporated nor the names of
  21. // its contributors may be used to endorse or promote products derived
  22. // from this software without specific prior written permission.
  23. //
  24. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  25. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  26. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  27. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  28. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  29. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  30. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  31. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  32. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  33. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  34. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. //
  36. // This is part of revision 2.1.0.12573 of the Tiva Firmware Development Package.
  37. //
  38. //*****************************************************************************
  39. #ifndef __HW_CAN_H__
  40. #define __HW_CAN_H__
  41. //*****************************************************************************
  42. //
  43. // The following are defines for the CAN register offsets.
  44. //
  45. //*****************************************************************************
  46. #define CAN_O_CTL 0x00000000 // CAN Control
  47. #define CAN_O_STS 0x00000004 // CAN Status
  48. #define CAN_O_ERR 0x00000008 // CAN Error Counter
  49. #define CAN_O_BIT 0x0000000C // CAN Bit Timing
  50. #define CAN_O_INT 0x00000010 // CAN Interrupt
  51. #define CAN_O_TST 0x00000014 // CAN Test
  52. #define CAN_O_BRPE 0x00000018 // CAN Baud Rate Prescaler
  53. // Extension
  54. #define CAN_O_IF1CRQ 0x00000020 // CAN IF1 Command Request
  55. #define CAN_O_IF1CMSK 0x00000024 // CAN IF1 Command Mask
  56. #define CAN_O_IF1MSK1 0x00000028 // CAN IF1 Mask 1
  57. #define CAN_O_IF1MSK2 0x0000002C // CAN IF1 Mask 2
  58. #define CAN_O_IF1ARB1 0x00000030 // CAN IF1 Arbitration 1
  59. #define CAN_O_IF1ARB2 0x00000034 // CAN IF1 Arbitration 2
  60. #define CAN_O_IF1MCTL 0x00000038 // CAN IF1 Message Control
  61. #define CAN_O_IF1DA1 0x0000003C // CAN IF1 Data A1
  62. #define CAN_O_IF1DA2 0x00000040 // CAN IF1 Data A2
  63. #define CAN_O_IF1DB1 0x00000044 // CAN IF1 Data B1
  64. #define CAN_O_IF1DB2 0x00000048 // CAN IF1 Data B2
  65. #define CAN_O_IF2CRQ 0x00000080 // CAN IF2 Command Request
  66. #define CAN_O_IF2CMSK 0x00000084 // CAN IF2 Command Mask
  67. #define CAN_O_IF2MSK1 0x00000088 // CAN IF2 Mask 1
  68. #define CAN_O_IF2MSK2 0x0000008C // CAN IF2 Mask 2
  69. #define CAN_O_IF2ARB1 0x00000090 // CAN IF2 Arbitration 1
  70. #define CAN_O_IF2ARB2 0x00000094 // CAN IF2 Arbitration 2
  71. #define CAN_O_IF2MCTL 0x00000098 // CAN IF2 Message Control
  72. #define CAN_O_IF2DA1 0x0000009C // CAN IF2 Data A1
  73. #define CAN_O_IF2DA2 0x000000A0 // CAN IF2 Data A2
  74. #define CAN_O_IF2DB1 0x000000A4 // CAN IF2 Data B1
  75. #define CAN_O_IF2DB2 0x000000A8 // CAN IF2 Data B2
  76. #define CAN_O_TXRQ1 0x00000100 // CAN Transmission Request 1
  77. #define CAN_O_TXRQ2 0x00000104 // CAN Transmission Request 2
  78. #define CAN_O_NWDA1 0x00000120 // CAN New Data 1
  79. #define CAN_O_NWDA2 0x00000124 // CAN New Data 2
  80. #define CAN_O_MSG1INT 0x00000140 // CAN Message 1 Interrupt Pending
  81. #define CAN_O_MSG2INT 0x00000144 // CAN Message 2 Interrupt Pending
  82. #define CAN_O_MSG1VAL 0x00000160 // CAN Message 1 Valid
  83. #define CAN_O_MSG2VAL 0x00000164 // CAN Message 2 Valid
  84. //*****************************************************************************
  85. //
  86. // The following are defines for the bit fields in the CAN_O_CTL register.
  87. //
  88. //*****************************************************************************
  89. #define CAN_CTL_TEST 0x00000080 // Test Mode Enable
  90. #define CAN_CTL_CCE 0x00000040 // Configuration Change Enable
  91. #define CAN_CTL_DAR 0x00000020 // Disable Automatic-Retransmission
  92. #define CAN_CTL_EIE 0x00000008 // Error Interrupt Enable
  93. #define CAN_CTL_SIE 0x00000004 // Status Interrupt Enable
  94. #define CAN_CTL_IE 0x00000002 // CAN Interrupt Enable
  95. #define CAN_CTL_INIT 0x00000001 // Initialization
  96. //*****************************************************************************
  97. //
  98. // The following are defines for the bit fields in the CAN_O_STS register.
  99. //
  100. //*****************************************************************************
  101. #define CAN_STS_BOFF 0x00000080 // Bus-Off Status
  102. #define CAN_STS_EWARN 0x00000040 // Warning Status
  103. #define CAN_STS_EPASS 0x00000020 // Error Passive
  104. #define CAN_STS_RXOK 0x00000010 // Received a Message Successfully
  105. #define CAN_STS_TXOK 0x00000008 // Transmitted a Message
  106. // Successfully
  107. #define CAN_STS_LEC_M 0x00000007 // Last Error Code
  108. #define CAN_STS_LEC_NONE 0x00000000 // No Error
  109. #define CAN_STS_LEC_STUFF 0x00000001 // Stuff Error
  110. #define CAN_STS_LEC_FORM 0x00000002 // Format Error
  111. #define CAN_STS_LEC_ACK 0x00000003 // ACK Error
  112. #define CAN_STS_LEC_BIT1 0x00000004 // Bit 1 Error
  113. #define CAN_STS_LEC_BIT0 0x00000005 // Bit 0 Error
  114. #define CAN_STS_LEC_CRC 0x00000006 // CRC Error
  115. #define CAN_STS_LEC_NOEVENT 0x00000007 // No Event
  116. //*****************************************************************************
  117. //
  118. // The following are defines for the bit fields in the CAN_O_ERR register.
  119. //
  120. //*****************************************************************************
  121. #define CAN_ERR_RP 0x00008000 // Received Error Passive
  122. #define CAN_ERR_REC_M 0x00007F00 // Receive Error Counter
  123. #define CAN_ERR_TEC_M 0x000000FF // Transmit Error Counter
  124. #define CAN_ERR_REC_S 8
  125. #define CAN_ERR_TEC_S 0
  126. //*****************************************************************************
  127. //
  128. // The following are defines for the bit fields in the CAN_O_BIT register.
  129. //
  130. //*****************************************************************************
  131. #define CAN_BIT_TSEG2_M 0x00007000 // Time Segment after Sample Point
  132. #define CAN_BIT_TSEG1_M 0x00000F00 // Time Segment Before Sample Point
  133. #define CAN_BIT_SJW_M 0x000000C0 // (Re)Synchronization Jump Width
  134. #define CAN_BIT_BRP_M 0x0000003F // Baud Rate Prescaler
  135. #define CAN_BIT_TSEG2_S 12
  136. #define CAN_BIT_TSEG1_S 8
  137. #define CAN_BIT_SJW_S 6
  138. #define CAN_BIT_BRP_S 0
  139. //*****************************************************************************
  140. //
  141. // The following are defines for the bit fields in the CAN_O_INT register.
  142. //
  143. //*****************************************************************************
  144. #define CAN_INT_INTID_M 0x0000FFFF // Interrupt Identifier
  145. #define CAN_INT_INTID_NONE 0x00000000 // No interrupt pending
  146. #define CAN_INT_INTID_STATUS 0x00008000 // Status Interrupt
  147. //*****************************************************************************
  148. //
  149. // The following are defines for the bit fields in the CAN_O_TST register.
  150. //
  151. //*****************************************************************************
  152. #define CAN_TST_RX 0x00000080 // Receive Observation
  153. #define CAN_TST_TX_M 0x00000060 // Transmit Control
  154. #define CAN_TST_TX_CANCTL 0x00000000 // CAN Module Control
  155. #define CAN_TST_TX_SAMPLE 0x00000020 // Sample Point
  156. #define CAN_TST_TX_DOMINANT 0x00000040 // Driven Low
  157. #define CAN_TST_TX_RECESSIVE 0x00000060 // Driven High
  158. #define CAN_TST_LBACK 0x00000010 // Loopback Mode
  159. #define CAN_TST_SILENT 0x00000008 // Silent Mode
  160. #define CAN_TST_BASIC 0x00000004 // Basic Mode
  161. //*****************************************************************************
  162. //
  163. // The following are defines for the bit fields in the CAN_O_BRPE register.
  164. //
  165. //*****************************************************************************
  166. #define CAN_BRPE_BRPE_M 0x0000000F // Baud Rate Prescaler Extension
  167. #define CAN_BRPE_BRPE_S 0
  168. //*****************************************************************************
  169. //
  170. // The following are defines for the bit fields in the CAN_O_IF1CRQ register.
  171. //
  172. //*****************************************************************************
  173. #define CAN_IF1CRQ_BUSY 0x00008000 // Busy Flag
  174. #define CAN_IF1CRQ_MNUM_M 0x0000003F // Message Number
  175. #define CAN_IF1CRQ_MNUM_S 0
  176. //*****************************************************************************
  177. //
  178. // The following are defines for the bit fields in the CAN_O_IF1CMSK register.
  179. //
  180. //*****************************************************************************
  181. #define CAN_IF1CMSK_WRNRD 0x00000080 // Write, Not Read
  182. #define CAN_IF1CMSK_MASK 0x00000040 // Access Mask Bits
  183. #define CAN_IF1CMSK_ARB 0x00000020 // Access Arbitration Bits
  184. #define CAN_IF1CMSK_CONTROL 0x00000010 // Access Control Bits
  185. #define CAN_IF1CMSK_CLRINTPND 0x00000008 // Clear Interrupt Pending Bit
  186. #define CAN_IF1CMSK_NEWDAT 0x00000004 // Access New Data
  187. #define CAN_IF1CMSK_TXRQST 0x00000004 // Access Transmission Request
  188. #define CAN_IF1CMSK_DATAA 0x00000002 // Access Data Byte 0 to 3
  189. #define CAN_IF1CMSK_DATAB 0x00000001 // Access Data Byte 4 to 7
  190. //*****************************************************************************
  191. //
  192. // The following are defines for the bit fields in the CAN_O_IF1MSK1 register.
  193. //
  194. //*****************************************************************************
  195. #define CAN_IF1MSK1_IDMSK_M 0x0000FFFF // Identifier Mask
  196. #define CAN_IF1MSK1_IDMSK_S 0
  197. //*****************************************************************************
  198. //
  199. // The following are defines for the bit fields in the CAN_O_IF1MSK2 register.
  200. //
  201. //*****************************************************************************
  202. #define CAN_IF1MSK2_MXTD 0x00008000 // Mask Extended Identifier
  203. #define CAN_IF1MSK2_MDIR 0x00004000 // Mask Message Direction
  204. #define CAN_IF1MSK2_IDMSK_M 0x00001FFF // Identifier Mask
  205. #define CAN_IF1MSK2_IDMSK_S 0
  206. //*****************************************************************************
  207. //
  208. // The following are defines for the bit fields in the CAN_O_IF1ARB1 register.
  209. //
  210. //*****************************************************************************
  211. #define CAN_IF1ARB1_ID_M 0x0000FFFF // Message Identifier
  212. #define CAN_IF1ARB1_ID_S 0
  213. //*****************************************************************************
  214. //
  215. // The following are defines for the bit fields in the CAN_O_IF1ARB2 register.
  216. //
  217. //*****************************************************************************
  218. #define CAN_IF1ARB2_MSGVAL 0x00008000 // Message Valid
  219. #define CAN_IF1ARB2_XTD 0x00004000 // Extended Identifier
  220. #define CAN_IF1ARB2_DIR 0x00002000 // Message Direction
  221. #define CAN_IF1ARB2_ID_M 0x00001FFF // Message Identifier
  222. #define CAN_IF1ARB2_ID_S 0
  223. //*****************************************************************************
  224. //
  225. // The following are defines for the bit fields in the CAN_O_IF1MCTL register.
  226. //
  227. //*****************************************************************************
  228. #define CAN_IF1MCTL_NEWDAT 0x00008000 // New Data
  229. #define CAN_IF1MCTL_MSGLST 0x00004000 // Message Lost
  230. #define CAN_IF1MCTL_INTPND 0x00002000 // Interrupt Pending
  231. #define CAN_IF1MCTL_UMASK 0x00001000 // Use Acceptance Mask
  232. #define CAN_IF1MCTL_TXIE 0x00000800 // Transmit Interrupt Enable
  233. #define CAN_IF1MCTL_RXIE 0x00000400 // Receive Interrupt Enable
  234. #define CAN_IF1MCTL_RMTEN 0x00000200 // Remote Enable
  235. #define CAN_IF1MCTL_TXRQST 0x00000100 // Transmit Request
  236. #define CAN_IF1MCTL_EOB 0x00000080 // End of Buffer
  237. #define CAN_IF1MCTL_DLC_M 0x0000000F // Data Length Code
  238. #define CAN_IF1MCTL_DLC_S 0
  239. //*****************************************************************************
  240. //
  241. // The following are defines for the bit fields in the CAN_O_IF1DA1 register.
  242. //
  243. //*****************************************************************************
  244. #define CAN_IF1DA1_DATA_M 0x0000FFFF // Data
  245. #define CAN_IF1DA1_DATA_S 0
  246. //*****************************************************************************
  247. //
  248. // The following are defines for the bit fields in the CAN_O_IF1DA2 register.
  249. //
  250. //*****************************************************************************
  251. #define CAN_IF1DA2_DATA_M 0x0000FFFF // Data
  252. #define CAN_IF1DA2_DATA_S 0
  253. //*****************************************************************************
  254. //
  255. // The following are defines for the bit fields in the CAN_O_IF1DB1 register.
  256. //
  257. //*****************************************************************************
  258. #define CAN_IF1DB1_DATA_M 0x0000FFFF // Data
  259. #define CAN_IF1DB1_DATA_S 0
  260. //*****************************************************************************
  261. //
  262. // The following are defines for the bit fields in the CAN_O_IF1DB2 register.
  263. //
  264. //*****************************************************************************
  265. #define CAN_IF1DB2_DATA_M 0x0000FFFF // Data
  266. #define CAN_IF1DB2_DATA_S 0
  267. //*****************************************************************************
  268. //
  269. // The following are defines for the bit fields in the CAN_O_IF2CRQ register.
  270. //
  271. //*****************************************************************************
  272. #define CAN_IF2CRQ_BUSY 0x00008000 // Busy Flag
  273. #define CAN_IF2CRQ_MNUM_M 0x0000003F // Message Number
  274. #define CAN_IF2CRQ_MNUM_S 0
  275. //*****************************************************************************
  276. //
  277. // The following are defines for the bit fields in the CAN_O_IF2CMSK register.
  278. //
  279. //*****************************************************************************
  280. #define CAN_IF2CMSK_WRNRD 0x00000080 // Write, Not Read
  281. #define CAN_IF2CMSK_MASK 0x00000040 // Access Mask Bits
  282. #define CAN_IF2CMSK_ARB 0x00000020 // Access Arbitration Bits
  283. #define CAN_IF2CMSK_CONTROL 0x00000010 // Access Control Bits
  284. #define CAN_IF2CMSK_CLRINTPND 0x00000008 // Clear Interrupt Pending Bit
  285. #define CAN_IF2CMSK_NEWDAT 0x00000004 // Access New Data
  286. #define CAN_IF2CMSK_TXRQST 0x00000004 // Access Transmission Request
  287. #define CAN_IF2CMSK_DATAA 0x00000002 // Access Data Byte 0 to 3
  288. #define CAN_IF2CMSK_DATAB 0x00000001 // Access Data Byte 4 to 7
  289. //*****************************************************************************
  290. //
  291. // The following are defines for the bit fields in the CAN_O_IF2MSK1 register.
  292. //
  293. //*****************************************************************************
  294. #define CAN_IF2MSK1_IDMSK_M 0x0000FFFF // Identifier Mask
  295. #define CAN_IF2MSK1_IDMSK_S 0
  296. //*****************************************************************************
  297. //
  298. // The following are defines for the bit fields in the CAN_O_IF2MSK2 register.
  299. //
  300. //*****************************************************************************
  301. #define CAN_IF2MSK2_MXTD 0x00008000 // Mask Extended Identifier
  302. #define CAN_IF2MSK2_MDIR 0x00004000 // Mask Message Direction
  303. #define CAN_IF2MSK2_IDMSK_M 0x00001FFF // Identifier Mask
  304. #define CAN_IF2MSK2_IDMSK_S 0
  305. //*****************************************************************************
  306. //
  307. // The following are defines for the bit fields in the CAN_O_IF2ARB1 register.
  308. //
  309. //*****************************************************************************
  310. #define CAN_IF2ARB1_ID_M 0x0000FFFF // Message Identifier
  311. #define CAN_IF2ARB1_ID_S 0
  312. //*****************************************************************************
  313. //
  314. // The following are defines for the bit fields in the CAN_O_IF2ARB2 register.
  315. //
  316. //*****************************************************************************
  317. #define CAN_IF2ARB2_MSGVAL 0x00008000 // Message Valid
  318. #define CAN_IF2ARB2_XTD 0x00004000 // Extended Identifier
  319. #define CAN_IF2ARB2_DIR 0x00002000 // Message Direction
  320. #define CAN_IF2ARB2_ID_M 0x00001FFF // Message Identifier
  321. #define CAN_IF2ARB2_ID_S 0
  322. //*****************************************************************************
  323. //
  324. // The following are defines for the bit fields in the CAN_O_IF2MCTL register.
  325. //
  326. //*****************************************************************************
  327. #define CAN_IF2MCTL_NEWDAT 0x00008000 // New Data
  328. #define CAN_IF2MCTL_MSGLST 0x00004000 // Message Lost
  329. #define CAN_IF2MCTL_INTPND 0x00002000 // Interrupt Pending
  330. #define CAN_IF2MCTL_UMASK 0x00001000 // Use Acceptance Mask
  331. #define CAN_IF2MCTL_TXIE 0x00000800 // Transmit Interrupt Enable
  332. #define CAN_IF2MCTL_RXIE 0x00000400 // Receive Interrupt Enable
  333. #define CAN_IF2MCTL_RMTEN 0x00000200 // Remote Enable
  334. #define CAN_IF2MCTL_TXRQST 0x00000100 // Transmit Request
  335. #define CAN_IF2MCTL_EOB 0x00000080 // End of Buffer
  336. #define CAN_IF2MCTL_DLC_M 0x0000000F // Data Length Code
  337. #define CAN_IF2MCTL_DLC_S 0
  338. //*****************************************************************************
  339. //
  340. // The following are defines for the bit fields in the CAN_O_IF2DA1 register.
  341. //
  342. //*****************************************************************************
  343. #define CAN_IF2DA1_DATA_M 0x0000FFFF // Data
  344. #define CAN_IF2DA1_DATA_S 0
  345. //*****************************************************************************
  346. //
  347. // The following are defines for the bit fields in the CAN_O_IF2DA2 register.
  348. //
  349. //*****************************************************************************
  350. #define CAN_IF2DA2_DATA_M 0x0000FFFF // Data
  351. #define CAN_IF2DA2_DATA_S 0
  352. //*****************************************************************************
  353. //
  354. // The following are defines for the bit fields in the CAN_O_IF2DB1 register.
  355. //
  356. //*****************************************************************************
  357. #define CAN_IF2DB1_DATA_M 0x0000FFFF // Data
  358. #define CAN_IF2DB1_DATA_S 0
  359. //*****************************************************************************
  360. //
  361. // The following are defines for the bit fields in the CAN_O_IF2DB2 register.
  362. //
  363. //*****************************************************************************
  364. #define CAN_IF2DB2_DATA_M 0x0000FFFF // Data
  365. #define CAN_IF2DB2_DATA_S 0
  366. //*****************************************************************************
  367. //
  368. // The following are defines for the bit fields in the CAN_O_TXRQ1 register.
  369. //
  370. //*****************************************************************************
  371. #define CAN_TXRQ1_TXRQST_M 0x0000FFFF // Transmission Request Bits
  372. #define CAN_TXRQ1_TXRQST_S 0
  373. //*****************************************************************************
  374. //
  375. // The following are defines for the bit fields in the CAN_O_TXRQ2 register.
  376. //
  377. //*****************************************************************************
  378. #define CAN_TXRQ2_TXRQST_M 0x0000FFFF // Transmission Request Bits
  379. #define CAN_TXRQ2_TXRQST_S 0
  380. //*****************************************************************************
  381. //
  382. // The following are defines for the bit fields in the CAN_O_NWDA1 register.
  383. //
  384. //*****************************************************************************
  385. #define CAN_NWDA1_NEWDAT_M 0x0000FFFF // New Data Bits
  386. #define CAN_NWDA1_NEWDAT_S 0
  387. //*****************************************************************************
  388. //
  389. // The following are defines for the bit fields in the CAN_O_NWDA2 register.
  390. //
  391. //*****************************************************************************
  392. #define CAN_NWDA2_NEWDAT_M 0x0000FFFF // New Data Bits
  393. #define CAN_NWDA2_NEWDAT_S 0
  394. //*****************************************************************************
  395. //
  396. // The following are defines for the bit fields in the CAN_O_MSG1INT register.
  397. //
  398. //*****************************************************************************
  399. #define CAN_MSG1INT_INTPND_M 0x0000FFFF // Interrupt Pending Bits
  400. #define CAN_MSG1INT_INTPND_S 0
  401. //*****************************************************************************
  402. //
  403. // The following are defines for the bit fields in the CAN_O_MSG2INT register.
  404. //
  405. //*****************************************************************************
  406. #define CAN_MSG2INT_INTPND_M 0x0000FFFF // Interrupt Pending Bits
  407. #define CAN_MSG2INT_INTPND_S 0
  408. //*****************************************************************************
  409. //
  410. // The following are defines for the bit fields in the CAN_O_MSG1VAL register.
  411. //
  412. //*****************************************************************************
  413. #define CAN_MSG1VAL_MSGVAL_M 0x0000FFFF // Message Valid Bits
  414. #define CAN_MSG1VAL_MSGVAL_S 0
  415. //*****************************************************************************
  416. //
  417. // The following are defines for the bit fields in the CAN_O_MSG2VAL register.
  418. //
  419. //*****************************************************************************
  420. #define CAN_MSG2VAL_MSGVAL_M 0x0000FFFF // Message Valid Bits
  421. #define CAN_MSG2VAL_MSGVAL_S 0
  422. #endif // __HW_CAN_H__