RTEMS 6.1-rc6
Loading...
Searching...
No Matches
reg_dcan.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/* The header file is generated by make_header.py from DCAN.json */
12/* Current script's version can be found at: */
13/* https://github.com/AoLaD/rtems-tms570-utils/tree/headers/headers/python */
14
15/*
16 * Copyright (c) 2014-2015, Premysl Houdek <kom541000@gmail.com>
17 *
18 * Czech Technical University in Prague
19 * Zikova 1903/4
20 * 166 36 Praha 6
21 * Czech Republic
22 *
23 * All rights reserved.
24 *
25 * Redistribution and use in source and binary forms, with or without
26 * modification, are permitted provided that the following conditions are met:
27 *
28 * 1. Redistributions of source code must retain the above copyright notice, this
29 * list of conditions and the following disclaimer.
30 * 2. Redistributions in binary form must reproduce the above copyright notice,
31 * this list of conditions and the following disclaimer in the documentation
32 * and/or other materials provided with the distribution.
33 *
34 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
35 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
36 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
38 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
39 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
40 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
41 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
43 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44 *
45 * The views and conclusions contained in the software and documentation are those
46 * of the authors and should not be interpreted as representing official policies,
47 * either expressed or implied, of the FreeBSD Project.
48*/
49#ifndef LIBBSP_ARM_TMS570_DCAN
50#define LIBBSP_ARM_TMS570_DCAN
51
52#include <bsp/utility.h>
53
54typedef struct{
55 uint32_t CTL; /*CAN Control Register*/
56 uint32_t ES; /*Error and Status Register*/
57 uint32_t ERRC; /*Error Counter Register*/
58 uint32_t BTR; /*Bit Timing Register*/
59 uint32_t INT; /*Interrupt Register*/
60 uint32_t TEST; /*Test Register*/
61 uint8_t reserved1 [4];
62 uint32_t PERR; /*Parity Error Code Register*/
63 uint8_t reserved2 [96];
64 uint32_t ABOTR; /*Auto-Bus-On Time Register*/
65 uint32_t TXRQX; /*Transmission Request X Register*/
66 uint32_t TXRQx[4]; /*Transmission Request Register*/
67 uint32_t NWDATX; /*New Data X Register*/
68 uint32_t NWDATx[4]; /*New Data Register*/
69 uint32_t INTPNDX; /*Interrupt Pending X Register*/
70 uint32_t INTPNDx[4]; /*Interrupt Pending Register*/
71 uint32_t MSGVALX; /*Message Valid X Register*/
72 uint32_t MSGVALx[4]; /*Message Valid Register*/
73 uint8_t reserved3 [4];
74 uint32_t INTMUXx[4]; /*Interrupt Multiplexer Register*/
75 uint8_t reserved4 [24];
76 uint32_t IF1CMD; /*IF1 Command Register*/
77 uint32_t IF1MSK; /*IF1 Mask Register*/
78 uint32_t IF1ARB; /*IF1 Arbitration Register*/
79 uint32_t IF1MCTL; /*IF1 Message Control Register*/
80 uint32_t IF1DATA; /*IF1 Data A Register*/
81 uint32_t IF1DATB; /*IF1 Data B Register*/
82 uint8_t reserved5 [8];
83 uint32_t IF2CMD; /*IF2 Command Register*/
84 uint32_t IF2MSK; /*IF2 Mask Register*/
85 uint32_t IF2ARB; /*IF2 Arbitration Register*/
86 uint32_t IF2MCTL; /*IF2 Message Control Register*/
87 uint32_t IF2DATA; /*IF2 Data A Register*/
88 uint32_t IF2DATB; /*IF2 Data B Register*/
89 uint8_t reserved6 [8];
90 uint32_t IF3OBS; /*IF3 Observation Register*/
91 uint32_t IF3MSK; /*IF3 Mask Register*/
92 uint32_t IF3ARB; /*IF3 Arbitration Register*/
93 uint32_t IF3MCTL; /*IF3 Message Control Register*/
94 uint32_t IF3DATA; /*IF3 Data A Register*/
95 uint32_t IF3DATB; /*IF3 Data B Register*/
96 uint8_t reserved7 [8];
97 uint32_t IF3UEy[4]; /*IF3 Update Enable Register*/
98 uint8_t reserved8 [112];
99 uint32_t TIOC; /*CAN TX IO Control Register*/
100 uint32_t RIOC; /*CAN RX IO Control Register*/
102
103
104/*----------------------TMS570_DCAN_CTL----------------------*/
105/* field: WUBA - Automatic wake up on bus activity when in local power down mode */
106#define TMS570_DCAN_CTL_WUBA BSP_BIT32(25)
107
108/* field: PDR - Request for local low power down mode */
109#define TMS570_DCAN_CTL_PDR BSP_BIT32(24)
110
111/* field: DE3 - Enable DMA request line for IF3 */
112#define TMS570_DCAN_CTL_DE3 BSP_BIT32(20)
113
114/* field: DE2 - Enable DMA request line for IF2 */
115#define TMS570_DCAN_CTL_DE2 BSP_BIT32(19)
116
117/* field: DE1 - Enable DMA request line for IF1 */
118#define TMS570_DCAN_CTL_DE1 BSP_BIT32(18)
119
120/* field: IE1 - Interrupt line 1 Enable */
121#define TMS570_DCAN_CTL_IE1 BSP_BIT32(17)
122
123/* field: InitDbg - Internal Init state while debug access */
124#define TMS570_DCAN_CTL_InitDbg BSP_BIT32(16)
125
126/* field: SWR - SW Reset Enable */
127#define TMS570_DCAN_CTL_SWR BSP_BIT32(15)
128
129/* field: PMD - Parity on/off */
130#define TMS570_DCAN_CTL_PMD(val) BSP_FLD32(val,10, 13)
131#define TMS570_DCAN_CTL_PMD_GET(reg) BSP_FLD32GET(reg,10, 13)
132#define TMS570_DCAN_CTL_PMD_SET(reg,val) BSP_FLD32SET(reg, val,10, 13)
133
134/* field: ABO - Auto-Bus-On Enable */
135#define TMS570_DCAN_CTL_ABO BSP_BIT32(9)
136
137/* field: IDS - Interruption Debug Support Enable */
138#define TMS570_DCAN_CTL_IDS BSP_BIT32(8)
139
140/* field: Test - Test Mode Enable */
141#define TMS570_DCAN_CTL_Test BSP_BIT32(7)
142
143/* field: CCE - Configuration Change Enable */
144#define TMS570_DCAN_CTL_CCE BSP_BIT32(6)
145
146/* field: DAR - Disable Automatic Retransmission */
147#define TMS570_DCAN_CTL_DAR BSP_BIT32(5)
148
149/* field: EIE - Error Interrupt Enable */
150#define TMS570_DCAN_CTL_EIE BSP_BIT32(3)
151
152/* field: SIE - Status Change Interrupt Enable */
153#define TMS570_DCAN_CTL_SIE BSP_BIT32(2)
154
155/* field: IE0 - Interrupt line 0 Enable */
156#define TMS570_DCAN_CTL_IE0 BSP_BIT32(1)
157
158/* field: Init - Initialization */
159#define TMS570_DCAN_CTL_Init BSP_BIT32(0)
160
161
162/*-----------------------TMS570_DCAN_ES-----------------------*/
163/* field: PDA - Local power down mode acknowledge */
164#define TMS570_DCAN_ES_PDA BSP_BIT32(10)
165
166/* field: WakeUp_Pnd - Wake Up Pending */
167#define TMS570_DCAN_ES_WakeUp_Pnd BSP_BIT32(9)
168
169/* field: PER - Parity Error Detected */
170#define TMS570_DCAN_ES_PER BSP_BIT32(8)
171
172/* field: BOff - Bus-Off State */
173#define TMS570_DCAN_ES_BOff BSP_BIT32(7)
174
175/* field: EWarn - Warning State */
176#define TMS570_DCAN_ES_EWarn BSP_BIT32(6)
177
178/* field: EPass - Error Passive State */
179#define TMS570_DCAN_ES_EPass BSP_BIT32(5)
180
181/* field: RxOK - Received a message successfully */
182#define TMS570_DCAN_ES_RxOK BSP_BIT32(4)
183
184/* field: TxOK - Transmitted a message successfully */
185#define TMS570_DCAN_ES_TxOK BSP_BIT32(3)
186
187/* field: LEC - Last Error Code */
188#define TMS570_DCAN_ES_LEC(val) BSP_FLD32(val,0, 2)
189#define TMS570_DCAN_ES_LEC_GET(reg) BSP_FLD32GET(reg,0, 2)
190#define TMS570_DCAN_ES_LEC_SET(reg,val) BSP_FLD32SET(reg, val,0, 2)
191
192
193/*----------------------TMS570_DCAN_ERRC----------------------*/
194/* field: RP - Receive Error Passive */
195#define TMS570_DCAN_ERRC_RP BSP_BIT32(15)
196
197/* field: REC - Receive Error Counter. Actual state of the Receive Error Counter. (values from 0 to 255). */
198#define TMS570_DCAN_ERRC_REC(val) BSP_FLD32(val,8, 14)
199#define TMS570_DCAN_ERRC_REC_GET(reg) BSP_FLD32GET(reg,8, 14)
200#define TMS570_DCAN_ERRC_REC_SET(reg,val) BSP_FLD32SET(reg, val,8, 14)
201
202/* field: TEC - Transmit Error Counter. Actual state of the Transmit Error Counter. (values from 0 to 255). */
203#define TMS570_DCAN_ERRC_TEC(val) BSP_FLD32(val,0, 7)
204#define TMS570_DCAN_ERRC_TEC_GET(reg) BSP_FLD32GET(reg,0, 7)
205#define TMS570_DCAN_ERRC_TEC_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
206
207
208/*----------------------TMS570_DCAN_BTR----------------------*/
209/* field: BRPE - Baud Rate Prescaler Extension. */
210#define TMS570_DCAN_BTR_BRPE(val) BSP_FLD32(val,16, 19)
211#define TMS570_DCAN_BTR_BRPE_GET(reg) BSP_FLD32GET(reg,16, 19)
212#define TMS570_DCAN_BTR_BRPE_SET(reg,val) BSP_FLD32SET(reg, val,16, 19)
213
214/* field: TSeg2 - Time segment after the sample point */
215#define TMS570_DCAN_BTR_TSeg2(val) BSP_FLD32(val,12, 14)
216#define TMS570_DCAN_BTR_TSeg2_GET(reg) BSP_FLD32GET(reg,12, 14)
217#define TMS570_DCAN_BTR_TSeg2_SET(reg,val) BSP_FLD32SET(reg, val,12, 14)
218
219/* field: TSeg1 - Time segment before the sample point */
220#define TMS570_DCAN_BTR_TSeg1(val) BSP_FLD32(val,8, 11)
221#define TMS570_DCAN_BTR_TSeg1_GET(reg) BSP_FLD32GET(reg,8, 11)
222#define TMS570_DCAN_BTR_TSeg1_SET(reg,val) BSP_FLD32SET(reg, val,8, 11)
223
224/* field: SJW - Synchronization Jump Width */
225#define TMS570_DCAN_BTR_SJW(val) BSP_FLD32(val,6, 7)
226#define TMS570_DCAN_BTR_SJW_GET(reg) BSP_FLD32GET(reg,6, 7)
227#define TMS570_DCAN_BTR_SJW_SET(reg,val) BSP_FLD32SET(reg, val,6, 7)
228
229/* field: BRP - Baud Rate Prescaler */
230#define TMS570_DCAN_BTR_BRP(val) BSP_FLD32(val,0, 5)
231#define TMS570_DCAN_BTR_BRP_GET(reg) BSP_FLD32GET(reg,0, 5)
232#define TMS570_DCAN_BTR_BRP_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
233
234
235/*----------------------TMS570_DCAN_INT----------------------*/
236/* field: Int1ID - Interrupt 1 Identifier (indicates the message object with the highest pending interrupt) */
237#define TMS570_DCAN_INT_Int1ID(val) BSP_FLD32(val,16, 23)
238#define TMS570_DCAN_INT_Int1ID_GET(reg) BSP_FLD32GET(reg,16, 23)
239#define TMS570_DCAN_INT_Int1ID_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
240
241/* field: Int0ID - Interrupt Identifier (the number here indicates the source of the interrupt) */
242#define TMS570_DCAN_INT_Int0ID(val) BSP_FLD32(val,0, 15)
243#define TMS570_DCAN_INT_Int0ID_GET(reg) BSP_FLD32GET(reg,0, 15)
244#define TMS570_DCAN_INT_Int0ID_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
245
246
247/*----------------------TMS570_DCAN_TEST----------------------*/
248/* field: RDA - RAM Direct Access Enable */
249#define TMS570_DCAN_TEST_RDA BSP_BIT32(9)
250
251/* field: EXL - External Loop Back Mode */
252#define TMS570_DCAN_TEST_EXL BSP_BIT32(8)
253
254/* field: Rx - Receive Pin. Monitors the actual value of the CAN_RX pin. */
255#define TMS570_DCAN_TEST_Rx BSP_BIT32(7)
256
257/* field: Tx - Control of CAN_TX pin */
258#define TMS570_DCAN_TEST_Tx(val) BSP_FLD32(val,5, 6)
259#define TMS570_DCAN_TEST_Tx_GET(reg) BSP_FLD32GET(reg,5, 6)
260#define TMS570_DCAN_TEST_Tx_SET(reg,val) BSP_FLD32SET(reg, val,5, 6)
261
262/* field: LBack - Loop Back Mode */
263#define TMS570_DCAN_TEST_LBack BSP_BIT32(4)
264
265/* field: Silent - Silent Mode */
266#define TMS570_DCAN_TEST_Silent BSP_BIT32(3)
267
268
269/*----------------------TMS570_DCAN_PERR----------------------*/
270/* field: Word_Number - Word number where parity error has been detected */
271#define TMS570_DCAN_PERR_Word_Number(val) BSP_FLD32(val,8, 10)
272#define TMS570_DCAN_PERR_Word_Number_GET(reg) BSP_FLD32GET(reg,8, 10)
273#define TMS570_DCAN_PERR_Word_Number_SET(reg,val) BSP_FLD32SET(reg, val,8, 10)
274
275/* field: Message_Number - */
276#define TMS570_DCAN_PERR_Message_Number(val) BSP_FLD32(val,0, 7)
277#define TMS570_DCAN_PERR_Message_Number_GET(reg) BSP_FLD32GET(reg,0, 7)
278#define TMS570_DCAN_PERR_Message_Number_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
279
280
281/*---------------------TMS570_DCAN_ABOTR---------------------*/
282/* field: ABO_Time - Number of VBUS clock cycles before a Bus-Off recovery sequence is */
283/* Whole 32 bits */
284
285/*---------------------TMS570_DCAN_TXRQX---------------------*/
286/* field: TxRqstReg8 - TxRqstReg8 */
287#define TMS570_DCAN_TXRQX_TxRqstReg8(val) BSP_FLD32(val,14, 15)
288#define TMS570_DCAN_TXRQX_TxRqstReg8_GET(reg) BSP_FLD32GET(reg,14, 15)
289#define TMS570_DCAN_TXRQX_TxRqstReg8_SET(reg,val) BSP_FLD32SET(reg, val,14, 15)
290
291/* field: TxRqstReg7 - TxRqstReg8 */
292#define TMS570_DCAN_TXRQX_TxRqstReg7(val) BSP_FLD32(val,12, 13)
293#define TMS570_DCAN_TXRQX_TxRqstReg7_GET(reg) BSP_FLD32GET(reg,12, 13)
294#define TMS570_DCAN_TXRQX_TxRqstReg7_SET(reg,val) BSP_FLD32SET(reg, val,12, 13)
295
296/* field: TxRqstReg6 - TxRqstReg8 */
297#define TMS570_DCAN_TXRQX_TxRqstReg6(val) BSP_FLD32(val,10, 11)
298#define TMS570_DCAN_TXRQX_TxRqstReg6_GET(reg) BSP_FLD32GET(reg,10, 11)
299#define TMS570_DCAN_TXRQX_TxRqstReg6_SET(reg,val) BSP_FLD32SET(reg, val,10, 11)
300
301/* field: TxRqstReg5 - TxRqstReg8 */
302#define TMS570_DCAN_TXRQX_TxRqstReg5(val) BSP_FLD32(val,8, 9)
303#define TMS570_DCAN_TXRQX_TxRqstReg5_GET(reg) BSP_FLD32GET(reg,8, 9)
304#define TMS570_DCAN_TXRQX_TxRqstReg5_SET(reg,val) BSP_FLD32SET(reg, val,8, 9)
305
306/* field: TxRqstReg4 - TxRqstReg8 */
307#define TMS570_DCAN_TXRQX_TxRqstReg4(val) BSP_FLD32(val,6, 7)
308#define TMS570_DCAN_TXRQX_TxRqstReg4_GET(reg) BSP_FLD32GET(reg,6, 7)
309#define TMS570_DCAN_TXRQX_TxRqstReg4_SET(reg,val) BSP_FLD32SET(reg, val,6, 7)
310
311/* field: TxRqstReg3 - TxRqstReg8 */
312#define TMS570_DCAN_TXRQX_TxRqstReg3(val) BSP_FLD32(val,4, 5)
313#define TMS570_DCAN_TXRQX_TxRqstReg3_GET(reg) BSP_FLD32GET(reg,4, 5)
314#define TMS570_DCAN_TXRQX_TxRqstReg3_SET(reg,val) BSP_FLD32SET(reg, val,4, 5)
315
316/* field: TxRqstReg2 - TxRqstReg8 */
317#define TMS570_DCAN_TXRQX_TxRqstReg2(val) BSP_FLD32(val,2, 3)
318#define TMS570_DCAN_TXRQX_TxRqstReg2_GET(reg) BSP_FLD32GET(reg,2, 3)
319#define TMS570_DCAN_TXRQX_TxRqstReg2_SET(reg,val) BSP_FLD32SET(reg, val,2, 3)
320
321/* field: TxRqstReg1 - TxRqstReg8 */
322#define TMS570_DCAN_TXRQX_TxRqstReg1(val) BSP_FLD32(val,0, 1)
323#define TMS570_DCAN_TXRQX_TxRqstReg1_GET(reg) BSP_FLD32GET(reg,0, 1)
324#define TMS570_DCAN_TXRQX_TxRqstReg1_SET(reg,val) BSP_FLD32SET(reg, val,0, 1)
325
326
327/*---------------------TMS570_DCAN_TXRQx---------------------*/
328/* field: TxRqsX - Transmission Request Bits (for all message objects) */
329/* Whole 32 bits */
330
331/*---------------------TMS570_DCAN_NWDATX---------------------*/
332/* field: NewDatReg8 - TxRqstReg8 */
333#define TMS570_DCAN_NWDATX_NewDatReg8(val) BSP_FLD32(val,14, 15)
334#define TMS570_DCAN_NWDATX_NewDatReg8_GET(reg) BSP_FLD32GET(reg,14, 15)
335#define TMS570_DCAN_NWDATX_NewDatReg8_SET(reg,val) BSP_FLD32SET(reg, val,14, 15)
336
337/* field: NewDatReg7 - TxRqstReg8 */
338#define TMS570_DCAN_NWDATX_NewDatReg7(val) BSP_FLD32(val,12, 13)
339#define TMS570_DCAN_NWDATX_NewDatReg7_GET(reg) BSP_FLD32GET(reg,12, 13)
340#define TMS570_DCAN_NWDATX_NewDatReg7_SET(reg,val) BSP_FLD32SET(reg, val,12, 13)
341
342/* field: NewDatReg6 - TxRqstReg8 */
343#define TMS570_DCAN_NWDATX_NewDatReg6(val) BSP_FLD32(val,10, 11)
344#define TMS570_DCAN_NWDATX_NewDatReg6_GET(reg) BSP_FLD32GET(reg,10, 11)
345#define TMS570_DCAN_NWDATX_NewDatReg6_SET(reg,val) BSP_FLD32SET(reg, val,10, 11)
346
347/* field: NewDatReg5 - TxRqstReg8 */
348#define TMS570_DCAN_NWDATX_NewDatReg5(val) BSP_FLD32(val,8, 9)
349#define TMS570_DCAN_NWDATX_NewDatReg5_GET(reg) BSP_FLD32GET(reg,8, 9)
350#define TMS570_DCAN_NWDATX_NewDatReg5_SET(reg,val) BSP_FLD32SET(reg, val,8, 9)
351
352/* field: NewDatReg4 - TxRqstReg8 */
353#define TMS570_DCAN_NWDATX_NewDatReg4(val) BSP_FLD32(val,6, 7)
354#define TMS570_DCAN_NWDATX_NewDatReg4_GET(reg) BSP_FLD32GET(reg,6, 7)
355#define TMS570_DCAN_NWDATX_NewDatReg4_SET(reg,val) BSP_FLD32SET(reg, val,6, 7)
356
357/* field: NewDatReg3 - TxRqstReg8 */
358#define TMS570_DCAN_NWDATX_NewDatReg3(val) BSP_FLD32(val,4, 5)
359#define TMS570_DCAN_NWDATX_NewDatReg3_GET(reg) BSP_FLD32GET(reg,4, 5)
360#define TMS570_DCAN_NWDATX_NewDatReg3_SET(reg,val) BSP_FLD32SET(reg, val,4, 5)
361
362/* field: NewDatReg2 - TxRqstReg8 */
363#define TMS570_DCAN_NWDATX_NewDatReg2(val) BSP_FLD32(val,2, 3)
364#define TMS570_DCAN_NWDATX_NewDatReg2_GET(reg) BSP_FLD32GET(reg,2, 3)
365#define TMS570_DCAN_NWDATX_NewDatReg2_SET(reg,val) BSP_FLD32SET(reg, val,2, 3)
366
367/* field: NewDatReg1 - TxRqstReg8 */
368#define TMS570_DCAN_NWDATX_NewDatReg1(val) BSP_FLD32(val,0, 1)
369#define TMS570_DCAN_NWDATX_NewDatReg1_GET(reg) BSP_FLD32GET(reg,0, 1)
370#define TMS570_DCAN_NWDATX_NewDatReg1_SET(reg,val) BSP_FLD32SET(reg, val,0, 1)
371
372
373/*---------------------TMS570_DCAN_NWDATx---------------------*/
374/* field: NewDatX - New Data Bits (for all message objects) */
375/* Whole 32 bits */
376
377/*--------------------TMS570_DCAN_INTPNDX--------------------*/
378/* field: IntPndReg8 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Interrupt Pending X Register will be set. */
379#define TMS570_DCAN_INTPNDX_IntPndReg8(val) BSP_FLD32(val,14, 15)
380#define TMS570_DCAN_INTPNDX_IntPndReg8_GET(reg) BSP_FLD32GET(reg,14, 15)
381#define TMS570_DCAN_INTPNDX_IntPndReg8_SET(reg,val) BSP_FLD32SET(reg, val,14, 15)
382
383/* field: IntPndReg7 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Interrupt Pending X Register will be set. */
384#define TMS570_DCAN_INTPNDX_IntPndReg7(val) BSP_FLD32(val,12, 13)
385#define TMS570_DCAN_INTPNDX_IntPndReg7_GET(reg) BSP_FLD32GET(reg,12, 13)
386#define TMS570_DCAN_INTPNDX_IntPndReg7_SET(reg,val) BSP_FLD32SET(reg, val,12, 13)
387
388/* field: IntPndReg6 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Interrupt Pending X Register will be set. */
389#define TMS570_DCAN_INTPNDX_IntPndReg6(val) BSP_FLD32(val,10, 11)
390#define TMS570_DCAN_INTPNDX_IntPndReg6_GET(reg) BSP_FLD32GET(reg,10, 11)
391#define TMS570_DCAN_INTPNDX_IntPndReg6_SET(reg,val) BSP_FLD32SET(reg, val,10, 11)
392
393/* field: IntPndReg5 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Interrupt Pending X Register will be set. */
394#define TMS570_DCAN_INTPNDX_IntPndReg5(val) BSP_FLD32(val,8, 9)
395#define TMS570_DCAN_INTPNDX_IntPndReg5_GET(reg) BSP_FLD32GET(reg,8, 9)
396#define TMS570_DCAN_INTPNDX_IntPndReg5_SET(reg,val) BSP_FLD32SET(reg, val,8, 9)
397
398/* field: IntPndReg4 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Interrupt Pending X Register will be set. */
399#define TMS570_DCAN_INTPNDX_IntPndReg4(val) BSP_FLD32(val,6, 7)
400#define TMS570_DCAN_INTPNDX_IntPndReg4_GET(reg) BSP_FLD32GET(reg,6, 7)
401#define TMS570_DCAN_INTPNDX_IntPndReg4_SET(reg,val) BSP_FLD32SET(reg, val,6, 7)
402
403/* field: IntPndReg3 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Interrupt Pending X Register will be set. */
404#define TMS570_DCAN_INTPNDX_IntPndReg3(val) BSP_FLD32(val,4, 5)
405#define TMS570_DCAN_INTPNDX_IntPndReg3_GET(reg) BSP_FLD32GET(reg,4, 5)
406#define TMS570_DCAN_INTPNDX_IntPndReg3_SET(reg,val) BSP_FLD32SET(reg, val,4, 5)
407
408/* field: IntPndReg2 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Interrupt Pending X Register will be set. */
409#define TMS570_DCAN_INTPNDX_IntPndReg2(val) BSP_FLD32(val,2, 3)
410#define TMS570_DCAN_INTPNDX_IntPndReg2_GET(reg) BSP_FLD32GET(reg,2, 3)
411#define TMS570_DCAN_INTPNDX_IntPndReg2_SET(reg,val) BSP_FLD32SET(reg, val,2, 3)
412
413/* field: IntPndReg1 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Interrupt Pending X Register will be set. */
414#define TMS570_DCAN_INTPNDX_IntPndReg1(val) BSP_FLD32(val,0, 1)
415#define TMS570_DCAN_INTPNDX_IntPndReg1_GET(reg) BSP_FLD32GET(reg,0, 1)
416#define TMS570_DCAN_INTPNDX_IntPndReg1_SET(reg,val) BSP_FLD32SET(reg, val,0, 1)
417
418
419/*--------------------TMS570_DCAN_INTPNDx--------------------*/
420/* field: IntPndX - Interrupt Pending Bits (for all message objects) */
421/* Whole 32 bits */
422
423/*--------------------TMS570_DCAN_MSGVALX--------------------*/
424/* field: MsgValReg8 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Message Valid X Register will be set. */
425#define TMS570_DCAN_MSGVALX_MsgValReg8(val) BSP_FLD32(val,14, 15)
426#define TMS570_DCAN_MSGVALX_MsgValReg8_GET(reg) BSP_FLD32GET(reg,14, 15)
427#define TMS570_DCAN_MSGVALX_MsgValReg8_SET(reg,val) BSP_FLD32SET(reg, val,14, 15)
428
429/* field: MsgValReg7 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Message Valid X Register will be set. */
430#define TMS570_DCAN_MSGVALX_MsgValReg7(val) BSP_FLD32(val,12, 13)
431#define TMS570_DCAN_MSGVALX_MsgValReg7_GET(reg) BSP_FLD32GET(reg,12, 13)
432#define TMS570_DCAN_MSGVALX_MsgValReg7_SET(reg,val) BSP_FLD32SET(reg, val,12, 13)
433
434/* field: MsgValReg6 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Message Valid X Register will be set. */
435#define TMS570_DCAN_MSGVALX_MsgValReg6(val) BSP_FLD32(val,10, 11)
436#define TMS570_DCAN_MSGVALX_MsgValReg6_GET(reg) BSP_FLD32GET(reg,10, 11)
437#define TMS570_DCAN_MSGVALX_MsgValReg6_SET(reg,val) BSP_FLD32SET(reg, val,10, 11)
438
439/* field: MsgValReg5 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Message Valid X Register will be set. */
440#define TMS570_DCAN_MSGVALX_MsgValReg5(val) BSP_FLD32(val,8, 9)
441#define TMS570_DCAN_MSGVALX_MsgValReg5_GET(reg) BSP_FLD32GET(reg,8, 9)
442#define TMS570_DCAN_MSGVALX_MsgValReg5_SET(reg,val) BSP_FLD32SET(reg, val,8, 9)
443
444/* field: MsgValReg4 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Message Valid X Register will be set. */
445#define TMS570_DCAN_MSGVALX_MsgValReg4(val) BSP_FLD32(val,6, 7)
446#define TMS570_DCAN_MSGVALX_MsgValReg4_GET(reg) BSP_FLD32GET(reg,6, 7)
447#define TMS570_DCAN_MSGVALX_MsgValReg4_SET(reg,val) BSP_FLD32SET(reg, val,6, 7)
448
449/* field: MsgValReg3 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Message Valid X Register will be set. */
450#define TMS570_DCAN_MSGVALX_MsgValReg3(val) BSP_FLD32(val,4, 5)
451#define TMS570_DCAN_MSGVALX_MsgValReg3_GET(reg) BSP_FLD32GET(reg,4, 5)
452#define TMS570_DCAN_MSGVALX_MsgValReg3_SET(reg,val) BSP_FLD32SET(reg, val,4, 5)
453
454/* field: MsgValReg2 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Message Valid X Register will be set. */
455#define TMS570_DCAN_MSGVALX_MsgValReg2(val) BSP_FLD32(val,2, 3)
456#define TMS570_DCAN_MSGVALX_MsgValReg2_GET(reg) BSP_FLD32GET(reg,2, 3)
457#define TMS570_DCAN_MSGVALX_MsgValReg2_SET(reg,val) BSP_FLD32SET(reg, val,2, 3)
458
459/* field: MsgValReg1 - If at least one of the IntPnd bits of these message objects are set, the corresponding bit in the Message Valid X Register will be set. */
460#define TMS570_DCAN_MSGVALX_MsgValReg1(val) BSP_FLD32(val,0, 1)
461#define TMS570_DCAN_MSGVALX_MsgValReg1_GET(reg) BSP_FLD32GET(reg,0, 1)
462#define TMS570_DCAN_MSGVALX_MsgValReg1_SET(reg,val) BSP_FLD32SET(reg, val,0, 1)
463
464
465/*--------------------TMS570_DCAN_MSGVALx--------------------*/
466/* field: MsgVal1To32 - Message Valid Bits (for all message objects) */
467/* Whole 32 bits */
468
469/*--------------------TMS570_DCAN_INTMUXx--------------------*/
470/* field: IntMux1To32 - Multiplexes IntPnd value to either DCAN0INT or DCAN1INT interrupt lines. */
471/* Whole 32 bits */
472
473/*---------------------TMS570_DCAN_IF1CMD---------------------*/
474/* field: WR_RD - Write/Read */
475#define TMS570_DCAN_IF1CMD_WR_RD BSP_BIT32(23)
476
477/* field: Mask - Access Mask bits */
478#define TMS570_DCAN_IF1CMD_Mask BSP_BIT32(22)
479
480/* field: Arb - Access Arbitration bits */
481#define TMS570_DCAN_IF1CMD_Arb BSP_BIT32(21)
482
483/* field: Control - Access Control bits */
484#define TMS570_DCAN_IF1CMD_Control BSP_BIT32(20)
485
486/* field: ClrIntPnd - Clear Interrupt Pending bit */
487#define TMS570_DCAN_IF1CMD_ClrIntPnd BSP_BIT32(19)
488
489/* field: TxRqst_NewDat - Access Transmission Request bit */
490#define TMS570_DCAN_IF1CMD_TxRqst_NewDat BSP_BIT32(18)
491
492/* field: Data_A - Access Data Bytes 0-3 */
493#define TMS570_DCAN_IF1CMD_Data_A BSP_BIT32(17)
494
495/* field: Data_B - Access Data Bytes 4-7 */
496#define TMS570_DCAN_IF1CMD_Data_B BSP_BIT32(16)
497
498/* field: Busy - Busy flag */
499#define TMS570_DCAN_IF1CMD_Busy BSP_BIT32(15)
500
501/* field: DMA_Active - Activation of DMA feature for subsequent internal IF1/IF2 update */
502#define TMS570_DCAN_IF1CMD_DMA_Active BSP_BIT32(14)
503
504/* field: Message_Number - Number of message object in Message RAM that is used for data transfer */
505#define TMS570_DCAN_IF1CMD_Message_Number(val) BSP_FLD32(val,0, 7)
506#define TMS570_DCAN_IF1CMD_Message_Number_GET(reg) BSP_FLD32GET(reg,0, 7)
507#define TMS570_DCAN_IF1CMD_Message_Number_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
508
509
510/*---------------------TMS570_DCAN_IF1MSK---------------------*/
511/* field: MXtd - Mask Extended Identifier */
512#define TMS570_DCAN_IF1MSK_MXtd BSP_BIT32(31)
513
514/* field: MDir - Mask Message Direction */
515#define TMS570_DCAN_IF1MSK_MDir BSP_BIT32(30)
516
517/* field: Msk - Identifier Mask */
518#define TMS570_DCAN_IF1MSK_Msk(val) BSP_FLD32(val,0, 28)
519#define TMS570_DCAN_IF1MSK_Msk_GET(reg) BSP_FLD32GET(reg,0, 28)
520#define TMS570_DCAN_IF1MSK_Msk_SET(reg,val) BSP_FLD32SET(reg, val,0, 28)
521
522
523/*---------------------TMS570_DCAN_IF1ARB---------------------*/
524/* field: MsgVal - Message Valid */
525#define TMS570_DCAN_IF1ARB_MsgVal BSP_BIT32(31)
526
527/* field: Xtd - Extended Identifier */
528#define TMS570_DCAN_IF1ARB_Xtd BSP_BIT32(30)
529
530/* field: Dir - Message direction */
531#define TMS570_DCAN_IF1ARB_Dir BSP_BIT32(29)
532
533/* field: ID - Message Identifier */
534#define TMS570_DCAN_IF1ARB_ID(val) BSP_FLD32(val,0, 28)
535#define TMS570_DCAN_IF1ARB_ID_GET(reg) BSP_FLD32GET(reg,0, 28)
536#define TMS570_DCAN_IF1ARB_ID_SET(reg,val) BSP_FLD32SET(reg, val,0, 28)
537
538
539/*--------------------TMS570_DCAN_IF1MCTL--------------------*/
540/* field: NewDat - New Data */
541#define TMS570_DCAN_IF1MCTL_NewDat BSP_BIT32(15)
542
543/* field: MsgLst - Message Lost (only valid for message objects with direction = receive) */
544#define TMS570_DCAN_IF1MCTL_MsgLst BSP_BIT32(14)
545
546/* field: IntPnd - Interrupt Pending */
547#define TMS570_DCAN_IF1MCTL_IntPnd BSP_BIT32(13)
548
549/* field: UMask - Use Acceptance Mask */
550#define TMS570_DCAN_IF1MCTL_UMask BSP_BIT32(12)
551
552/* field: TxIE - Transmit Interrupt Enable */
553#define TMS570_DCAN_IF1MCTL_TxIE BSP_BIT32(11)
554
555/* field: RxIE - Receive Interrupt Enable */
556#define TMS570_DCAN_IF1MCTL_RxIE BSP_BIT32(10)
557
558/* field: RmtEn - Remote Enable */
559#define TMS570_DCAN_IF1MCTL_RmtEn BSP_BIT32(9)
560
561/* field: TxRqst - Transmit Request */
562#define TMS570_DCAN_IF1MCTL_TxRqst BSP_BIT32(8)
563
564/* field: EoB - Data Frame has 0-8 data bits */
565#define TMS570_DCAN_IF1MCTL_EoB BSP_BIT32(7)
566
567/* field: DLC - Data Length Code */
568#define TMS570_DCAN_IF1MCTL_DLC(val) BSP_FLD32(val,0, 3)
569#define TMS570_DCAN_IF1MCTL_DLC_GET(reg) BSP_FLD32GET(reg,0, 3)
570#define TMS570_DCAN_IF1MCTL_DLC_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
571
572
573/*--------------------TMS570_DCAN_IF1DATA--------------------*/
574/* field: Data0 - Data 0 */
575#define TMS570_DCAN_IF1DATA_Data0(val) BSP_FLD32(val,0, 7)
576#define TMS570_DCAN_IF1DATA_Data0_GET(reg) BSP_FLD32GET(reg,0, 7)
577#define TMS570_DCAN_IF1DATA_Data0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
578
579/* field: Data1 - Data 1 */
580#define TMS570_DCAN_IF1DATA_Data1(val) BSP_FLD32(val,8, 15)
581#define TMS570_DCAN_IF1DATA_Data1_GET(reg) BSP_FLD32GET(reg,8, 15)
582#define TMS570_DCAN_IF1DATA_Data1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
583
584/* field: Data2 - Data 2 */
585#define TMS570_DCAN_IF1DATA_Data2(val) BSP_FLD32(val,16, 23)
586#define TMS570_DCAN_IF1DATA_Data2_GET(reg) BSP_FLD32GET(reg,16, 23)
587#define TMS570_DCAN_IF1DATA_Data2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
588
589/* field: Data3 - Data 3 */
590#define TMS570_DCAN_IF1DATA_Data3(val) BSP_FLD32(val,24, 31)
591#define TMS570_DCAN_IF1DATA_Data3_GET(reg) BSP_FLD32GET(reg,24, 31)
592#define TMS570_DCAN_IF1DATA_Data3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
593
594
595/*--------------------TMS570_DCAN_IF1DATB--------------------*/
596/* field: Data4 - Data 4 */
597#define TMS570_DCAN_IF1DATB_Data4(val) BSP_FLD32(val,0, 7)
598#define TMS570_DCAN_IF1DATB_Data4_GET(reg) BSP_FLD32GET(reg,0, 7)
599#define TMS570_DCAN_IF1DATB_Data4_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
600
601/* field: Data5 - Data 5 */
602#define TMS570_DCAN_IF1DATB_Data5(val) BSP_FLD32(val,8, 15)
603#define TMS570_DCAN_IF1DATB_Data5_GET(reg) BSP_FLD32GET(reg,8, 15)
604#define TMS570_DCAN_IF1DATB_Data5_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
605
606/* field: Data6 - Data 6 */
607#define TMS570_DCAN_IF1DATB_Data6(val) BSP_FLD32(val,16, 23)
608#define TMS570_DCAN_IF1DATB_Data6_GET(reg) BSP_FLD32GET(reg,16, 23)
609#define TMS570_DCAN_IF1DATB_Data6_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
610
611/* field: Data7 - Data 7 */
612#define TMS570_DCAN_IF1DATB_Data7(val) BSP_FLD32(val,24, 31)
613#define TMS570_DCAN_IF1DATB_Data7_GET(reg) BSP_FLD32GET(reg,24, 31)
614#define TMS570_DCAN_IF1DATB_Data7_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
615
616
617/*---------------------TMS570_DCAN_IF2CMD---------------------*/
618/* field: WR_RD - Write/Read */
619#define TMS570_DCAN_IF2CMD_WR_RD BSP_BIT32(23)
620
621/* field: Mask - Access Mask bits */
622#define TMS570_DCAN_IF2CMD_Mask BSP_BIT32(22)
623
624/* field: Arb - Access Arbitration bits */
625#define TMS570_DCAN_IF2CMD_Arb BSP_BIT32(21)
626
627/* field: Control - Access Control bits */
628#define TMS570_DCAN_IF2CMD_Control BSP_BIT32(20)
629
630/* field: ClrIntPnd - Clear Interrupt Pending bit */
631#define TMS570_DCAN_IF2CMD_ClrIntPnd BSP_BIT32(19)
632
633/* field: TxRqst_NewDat - Access Transmission Request bit */
634#define TMS570_DCAN_IF2CMD_TxRqst_NewDat BSP_BIT32(18)
635
636/* field: Data_A - Access Data Bytes 0-3 */
637#define TMS570_DCAN_IF2CMD_Data_A BSP_BIT32(17)
638
639/* field: Data_B - Access Data Bytes 4-7 */
640#define TMS570_DCAN_IF2CMD_Data_B BSP_BIT32(16)
641
642/* field: Busy - Busy flag */
643#define TMS570_DCAN_IF2CMD_Busy BSP_BIT32(15)
644
645/* field: DMA_Active - Activation of DMA feature for subsequent internal IF1/IF2 update */
646#define TMS570_DCAN_IF2CMD_DMA_Active BSP_BIT32(14)
647
648/* field: Message_Number - Number of message object in Message RAM that is used for data transfer */
649#define TMS570_DCAN_IF2CMD_Message_Number(val) BSP_FLD32(val,0, 7)
650#define TMS570_DCAN_IF2CMD_Message_Number_GET(reg) BSP_FLD32GET(reg,0, 7)
651#define TMS570_DCAN_IF2CMD_Message_Number_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
652
653
654/*---------------------TMS570_DCAN_IF2MSK---------------------*/
655/* field: MXtd - Mask Extended Identifier */
656#define TMS570_DCAN_IF2MSK_MXtd BSP_BIT32(31)
657
658/* field: MDir - Mask Message Direction */
659#define TMS570_DCAN_IF2MSK_MDir BSP_BIT32(30)
660
661/* field: Msk - Identifier Mask */
662#define TMS570_DCAN_IF2MSK_Msk(val) BSP_FLD32(val,0, 28)
663#define TMS570_DCAN_IF2MSK_Msk_GET(reg) BSP_FLD32GET(reg,0, 28)
664#define TMS570_DCAN_IF2MSK_Msk_SET(reg,val) BSP_FLD32SET(reg, val,0, 28)
665
666
667/*---------------------TMS570_DCAN_IF2ARB---------------------*/
668/* field: MsgVal - Message Valid */
669#define TMS570_DCAN_IF2ARB_MsgVal BSP_BIT32(31)
670
671/* field: Xtd - Extended Identifier */
672#define TMS570_DCAN_IF2ARB_Xtd BSP_BIT32(30)
673
674/* field: Dir - Message direction */
675#define TMS570_DCAN_IF2ARB_Dir BSP_BIT32(29)
676
677/* field: ID - Message Identifier */
678#define TMS570_DCAN_IF2ARB_ID(val) BSP_FLD32(val,0, 28)
679#define TMS570_DCAN_IF2ARB_ID_GET(reg) BSP_FLD32GET(reg,0, 28)
680#define TMS570_DCAN_IF2ARB_ID_SET(reg,val) BSP_FLD32SET(reg, val,0, 28)
681
682
683/*--------------------TMS570_DCAN_IF2MCTL--------------------*/
684/* field: NewDat - New Data */
685#define TMS570_DCAN_IF2MCTL_NewDat BSP_BIT32(15)
686
687/* field: MsgLst - Message Lost (only valid for message objects with direction = receive) */
688#define TMS570_DCAN_IF2MCTL_MsgLst BSP_BIT32(14)
689
690/* field: IntPnd - Interrupt Pending */
691#define TMS570_DCAN_IF2MCTL_IntPnd BSP_BIT32(13)
692
693/* field: UMask - Use Acceptance Mask */
694#define TMS570_DCAN_IF2MCTL_UMask BSP_BIT32(12)
695
696/* field: TxIE - Transmit Interrupt Enable */
697#define TMS570_DCAN_IF2MCTL_TxIE BSP_BIT32(11)
698
699/* field: RxIE - Receive Interrupt Enable */
700#define TMS570_DCAN_IF2MCTL_RxIE BSP_BIT32(10)
701
702/* field: RmtEn - Remote Enable */
703#define TMS570_DCAN_IF2MCTL_RmtEn BSP_BIT32(9)
704
705/* field: TxRqst - Transmit Request */
706#define TMS570_DCAN_IF2MCTL_TxRqst BSP_BIT32(8)
707
708/* field: EoB - Data Frame has 0-8 data bits */
709#define TMS570_DCAN_IF2MCTL_EoB BSP_BIT32(7)
710
711/* field: DLC - Data Length Code */
712#define TMS570_DCAN_IF2MCTL_DLC(val) BSP_FLD32(val,0, 3)
713#define TMS570_DCAN_IF2MCTL_DLC_GET(reg) BSP_FLD32GET(reg,0, 3)
714#define TMS570_DCAN_IF2MCTL_DLC_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
715
716
717/*--------------------TMS570_DCAN_IF2DATA--------------------*/
718/* field: Data0 - Data 0 */
719#define TMS570_DCAN_IF2DATA_Data0(val) BSP_FLD32(val,0, 7)
720#define TMS570_DCAN_IF2DATA_Data0_GET(reg) BSP_FLD32GET(reg,0, 7)
721#define TMS570_DCAN_IF2DATA_Data0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
722
723/* field: Data1 - Data 1 */
724#define TMS570_DCAN_IF2DATA_Data1(val) BSP_FLD32(val,8, 15)
725#define TMS570_DCAN_IF2DATA_Data1_GET(reg) BSP_FLD32GET(reg,8, 15)
726#define TMS570_DCAN_IF2DATA_Data1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
727
728/* field: Data2 - Data 2 */
729#define TMS570_DCAN_IF2DATA_Data2(val) BSP_FLD32(val,16, 23)
730#define TMS570_DCAN_IF2DATA_Data2_GET(reg) BSP_FLD32GET(reg,16, 23)
731#define TMS570_DCAN_IF2DATA_Data2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
732
733/* field: Data3 - Data 3 */
734#define TMS570_DCAN_IF2DATA_Data3(val) BSP_FLD32(val,24, 31)
735#define TMS570_DCAN_IF2DATA_Data3_GET(reg) BSP_FLD32GET(reg,24, 31)
736#define TMS570_DCAN_IF2DATA_Data3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
737
738
739/*--------------------TMS570_DCAN_IF2DATB--------------------*/
740/* field: Data4 - Data 4 */
741#define TMS570_DCAN_IF2DATB_Data4(val) BSP_FLD32(val,0, 7)
742#define TMS570_DCAN_IF2DATB_Data4_GET(reg) BSP_FLD32GET(reg,0, 7)
743#define TMS570_DCAN_IF2DATB_Data4_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
744
745/* field: Data5 - Data 5 */
746#define TMS570_DCAN_IF2DATB_Data5(val) BSP_FLD32(val,8, 15)
747#define TMS570_DCAN_IF2DATB_Data5_GET(reg) BSP_FLD32GET(reg,8, 15)
748#define TMS570_DCAN_IF2DATB_Data5_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
749
750/* field: Data6 - Data 6 */
751#define TMS570_DCAN_IF2DATB_Data6(val) BSP_FLD32(val,16, 23)
752#define TMS570_DCAN_IF2DATB_Data6_GET(reg) BSP_FLD32GET(reg,16, 23)
753#define TMS570_DCAN_IF2DATB_Data6_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
754
755/* field: Data7 - Data 7 */
756#define TMS570_DCAN_IF2DATB_Data7(val) BSP_FLD32(val,24, 31)
757#define TMS570_DCAN_IF2DATB_Data7_GET(reg) BSP_FLD32GET(reg,24, 31)
758#define TMS570_DCAN_IF2DATB_Data7_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
759
760
761/*---------------------TMS570_DCAN_IF3OBS---------------------*/
762/* field: IF3_Upd - IF3 Update Data */
763#define TMS570_DCAN_IF3OBS_IF3_Upd BSP_BIT32(15)
764
765/* field: IF3_SDB - IF3 Status of Data B read access */
766#define TMS570_DCAN_IF3OBS_IF3_SDB BSP_BIT32(12)
767
768/* field: IF3_SDA - IF3 Status of Data A read access */
769#define TMS570_DCAN_IF3OBS_IF3_SDA BSP_BIT32(11)
770
771/* field: IF3_SC - IF3 Status of Control bits read access */
772#define TMS570_DCAN_IF3OBS_IF3_SC BSP_BIT32(10)
773
774/* field: IF3_SA - IF3 Status of Arbitration data read access */
775#define TMS570_DCAN_IF3OBS_IF3_SA BSP_BIT32(9)
776
777/* field: IF3_SM - IF3 Status of Mask data read access */
778#define TMS570_DCAN_IF3OBS_IF3_SM BSP_BIT32(8)
779
780/* field: Data_B - Data B read observation */
781#define TMS570_DCAN_IF3OBS_Data_B BSP_BIT32(4)
782
783/* field: Data_A - Data A read observation */
784#define TMS570_DCAN_IF3OBS_Data_A BSP_BIT32(3)
785
786/* field: Ctrl - Ctrl read observation */
787#define TMS570_DCAN_IF3OBS_Ctrl BSP_BIT32(2)
788
789/* field: Arb - Arbitration data read observation */
790#define TMS570_DCAN_IF3OBS_Arb BSP_BIT32(1)
791
792/* field: Mask - Mask data read observation */
793#define TMS570_DCAN_IF3OBS_Mask BSP_BIT32(0)
794
795
796/*---------------------TMS570_DCAN_IF3MSK---------------------*/
797/* field: MXtd - Mask Extended Identifier */
798#define TMS570_DCAN_IF3MSK_MXtd BSP_BIT32(31)
799
800/* field: MDir - Mask Message Direction */
801#define TMS570_DCAN_IF3MSK_MDir BSP_BIT32(30)
802
803/* field: Msk - Identifier Mask */
804#define TMS570_DCAN_IF3MSK_Msk(val) BSP_FLD32(val,0, 28)
805#define TMS570_DCAN_IF3MSK_Msk_GET(reg) BSP_FLD32GET(reg,0, 28)
806#define TMS570_DCAN_IF3MSK_Msk_SET(reg,val) BSP_FLD32SET(reg, val,0, 28)
807
808
809/*---------------------TMS570_DCAN_IF3ARB---------------------*/
810/* field: MsgVal - Message Valid */
811#define TMS570_DCAN_IF3ARB_MsgVal BSP_BIT32(31)
812
813/* field: Xtd - Extended Identifier */
814#define TMS570_DCAN_IF3ARB_Xtd BSP_BIT32(30)
815
816/* field: Dir - Message direction */
817#define TMS570_DCAN_IF3ARB_Dir BSP_BIT32(29)
818
819/* field: ID - Message Identifier */
820#define TMS570_DCAN_IF3ARB_ID(val) BSP_FLD32(val,0, 28)
821#define TMS570_DCAN_IF3ARB_ID_GET(reg) BSP_FLD32GET(reg,0, 28)
822#define TMS570_DCAN_IF3ARB_ID_SET(reg,val) BSP_FLD32SET(reg, val,0, 28)
823
824
825/*--------------------TMS570_DCAN_IF3MCTL--------------------*/
826/* field: NewDat - New Data */
827#define TMS570_DCAN_IF3MCTL_NewDat BSP_BIT32(15)
828
829/* field: MsgLst - Message Lost (only valid for message objects with direction = receive) */
830#define TMS570_DCAN_IF3MCTL_MsgLst BSP_BIT32(14)
831
832/* field: IntPnd - Interrupt Pending */
833#define TMS570_DCAN_IF3MCTL_IntPnd BSP_BIT32(13)
834
835/* field: UMask - Use Acceptance Mask */
836#define TMS570_DCAN_IF3MCTL_UMask BSP_BIT32(12)
837
838/* field: TxIE - Transmit Interrupt Enable */
839#define TMS570_DCAN_IF3MCTL_TxIE BSP_BIT32(11)
840
841/* field: RxIE - Receive Interrupt Enable */
842#define TMS570_DCAN_IF3MCTL_RxIE BSP_BIT32(10)
843
844/* field: RmtEn - Remote Enable */
845#define TMS570_DCAN_IF3MCTL_RmtEn BSP_BIT32(9)
846
847/* field: TxRqst - TxRqst */
848#define TMS570_DCAN_IF3MCTL_TxRqst BSP_BIT32(8)
849
850/* field: EoB - End of Block */
851#define TMS570_DCAN_IF3MCTL_EoB BSP_BIT32(7)
852
853/* field: DLC - Data Length Code */
854#define TMS570_DCAN_IF3MCTL_DLC(val) BSP_FLD32(val,0, 3)
855#define TMS570_DCAN_IF3MCTL_DLC_GET(reg) BSP_FLD32GET(reg,0, 3)
856#define TMS570_DCAN_IF3MCTL_DLC_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
857
858
859/*--------------------TMS570_DCAN_IF3DATA--------------------*/
860/* field: Data0 - Data 0 */
861#define TMS570_DCAN_IF3DATA_Data0(val) BSP_FLD32(val,0, 7)
862#define TMS570_DCAN_IF3DATA_Data0_GET(reg) BSP_FLD32GET(reg,0, 7)
863#define TMS570_DCAN_IF3DATA_Data0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
864
865/* field: Data1 - Data 1 */
866#define TMS570_DCAN_IF3DATA_Data1(val) BSP_FLD32(val,8, 15)
867#define TMS570_DCAN_IF3DATA_Data1_GET(reg) BSP_FLD32GET(reg,8, 15)
868#define TMS570_DCAN_IF3DATA_Data1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
869
870/* field: Data2 - Data 2 */
871#define TMS570_DCAN_IF3DATA_Data2(val) BSP_FLD32(val,16, 23)
872#define TMS570_DCAN_IF3DATA_Data2_GET(reg) BSP_FLD32GET(reg,16, 23)
873#define TMS570_DCAN_IF3DATA_Data2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
874
875/* field: Data3 - Data 3 */
876#define TMS570_DCAN_IF3DATA_Data3(val) BSP_FLD32(val,24, 31)
877#define TMS570_DCAN_IF3DATA_Data3_GET(reg) BSP_FLD32GET(reg,24, 31)
878#define TMS570_DCAN_IF3DATA_Data3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
879
880
881/*--------------------TMS570_DCAN_IF3DATB--------------------*/
882/* field: Data4 - Data 4 */
883#define TMS570_DCAN_IF3DATB_Data4(val) BSP_FLD32(val,0, 7)
884#define TMS570_DCAN_IF3DATB_Data4_GET(reg) BSP_FLD32GET(reg,0, 7)
885#define TMS570_DCAN_IF3DATB_Data4_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
886
887/* field: Data5 - Data 5 */
888#define TMS570_DCAN_IF3DATB_Data5(val) BSP_FLD32(val,8, 15)
889#define TMS570_DCAN_IF3DATB_Data5_GET(reg) BSP_FLD32GET(reg,8, 15)
890#define TMS570_DCAN_IF3DATB_Data5_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
891
892/* field: Data6 - Data 6 */
893#define TMS570_DCAN_IF3DATB_Data6(val) BSP_FLD32(val,16, 23)
894#define TMS570_DCAN_IF3DATB_Data6_GET(reg) BSP_FLD32GET(reg,16, 23)
895#define TMS570_DCAN_IF3DATB_Data6_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
896
897/* field: Data7 - Data 7 */
898#define TMS570_DCAN_IF3DATB_Data7(val) BSP_FLD32(val,24, 31)
899#define TMS570_DCAN_IF3DATB_Data7_GET(reg) BSP_FLD32GET(reg,24, 31)
900#define TMS570_DCAN_IF3DATB_Data7_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
901
902
903/*---------------------TMS570_DCAN_IF3UEy---------------------*/
904/* field: IF3UpdEn - IF3 Update Enabled (for all message objects) */
905/* Whole 32 bits */
906
907/*----------------------TMS570_DCAN_TIOC----------------------*/
908/* field: PU - CAN_TX Pullup/Pulldown select. This bit is only active when CAN_TX is configured to be an input. */
909#define TMS570_DCAN_TIOC_PU BSP_BIT32(18)
910
911/* field: PD - CAN_TX pull disable. This bit is only active when CAN_TX is configured to be an input. */
912#define TMS570_DCAN_TIOC_PD BSP_BIT32(17)
913
914/* field: OD - CAN_TX open drain enable. */
915#define TMS570_DCAN_TIOC_OD BSP_BIT32(16)
916
917/* field: Func - CAN_TX function. This bit changes the function of the CAN_TX pin. */
918#define TMS570_DCAN_TIOC_Func BSP_BIT32(3)
919
920/* field: Dir - CAN_TX data direction. */
921#define TMS570_DCAN_TIOC_Dir BSP_BIT32(2)
922
923/* field: Out - CAN_TX data out write. */
924#define TMS570_DCAN_TIOC_Out BSP_BIT32(1)
925
926
927/*----------------------TMS570_DCAN_RIOC----------------------*/
928/* field: PU - CAN_RX Pullup/Pulldown select. This bit is only active when CAN_RX is configured to be an input. */
929#define TMS570_DCAN_RIOC_PU BSP_BIT32(18)
930
931/* field: PD - CAN_RX pull disable. This bit is only active when CAN_RX is configured to be an input. */
932#define TMS570_DCAN_RIOC_PD BSP_BIT32(17)
933
934/* field: OD - CAN_RX open drain enable. */
935#define TMS570_DCAN_RIOC_OD BSP_BIT32(16)
936
937/* field: Func - CAN_RX function. This bit changes the function of the CAN_RX pin. */
938#define TMS570_DCAN_RIOC_Func BSP_BIT32(3)
939
940/* field: Dir - CAN_RX data direction. */
941#define TMS570_DCAN_RIOC_Dir BSP_BIT32(2)
942
943/* field: Out - CAN_RX data out write. */
944#define TMS570_DCAN_RIOC_Out BSP_BIT32(1)
945
946/* field: In - CAN_RX data in. */
947#define TMS570_DCAN_RIOC_In BSP_BIT32(0)
948
949
950
951#endif /* LIBBSP_ARM_TMS570_DCAN */
This header file provides utility macros for BSPs.
Definition: reg_dcan.h:54