49#ifndef LIBBSP_ARM_TMS570_DCAN
50#define LIBBSP_ARM_TMS570_DCAN
61 uint8_t reserved1 [4];
63 uint8_t reserved2 [96];
73 uint8_t reserved3 [4];
75 uint8_t reserved4 [24];
82 uint8_t reserved5 [8];
89 uint8_t reserved6 [8];
96 uint8_t reserved7 [8];
98 uint8_t reserved8 [112];
106#define TMS570_DCAN_CTL_WUBA BSP_BIT32(25)
109#define TMS570_DCAN_CTL_PDR BSP_BIT32(24)
112#define TMS570_DCAN_CTL_DE3 BSP_BIT32(20)
115#define TMS570_DCAN_CTL_DE2 BSP_BIT32(19)
118#define TMS570_DCAN_CTL_DE1 BSP_BIT32(18)
121#define TMS570_DCAN_CTL_IE1 BSP_BIT32(17)
124#define TMS570_DCAN_CTL_InitDbg BSP_BIT32(16)
127#define TMS570_DCAN_CTL_SWR BSP_BIT32(15)
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)
135#define TMS570_DCAN_CTL_ABO BSP_BIT32(9)
138#define TMS570_DCAN_CTL_IDS BSP_BIT32(8)
141#define TMS570_DCAN_CTL_Test BSP_BIT32(7)
144#define TMS570_DCAN_CTL_CCE BSP_BIT32(6)
147#define TMS570_DCAN_CTL_DAR BSP_BIT32(5)
150#define TMS570_DCAN_CTL_EIE BSP_BIT32(3)
153#define TMS570_DCAN_CTL_SIE BSP_BIT32(2)
156#define TMS570_DCAN_CTL_IE0 BSP_BIT32(1)
159#define TMS570_DCAN_CTL_Init BSP_BIT32(0)
164#define TMS570_DCAN_ES_PDA BSP_BIT32(10)
167#define TMS570_DCAN_ES_WakeUp_Pnd BSP_BIT32(9)
170#define TMS570_DCAN_ES_PER BSP_BIT32(8)
173#define TMS570_DCAN_ES_BOff BSP_BIT32(7)
176#define TMS570_DCAN_ES_EWarn BSP_BIT32(6)
179#define TMS570_DCAN_ES_EPass BSP_BIT32(5)
182#define TMS570_DCAN_ES_RxOK BSP_BIT32(4)
185#define TMS570_DCAN_ES_TxOK BSP_BIT32(3)
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)
195#define TMS570_DCAN_ERRC_RP BSP_BIT32(15)
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)
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)
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)
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)
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)
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)
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)
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)
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)
249#define TMS570_DCAN_TEST_RDA BSP_BIT32(9)
252#define TMS570_DCAN_TEST_EXL BSP_BIT32(8)
255#define TMS570_DCAN_TEST_Rx BSP_BIT32(7)
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)
263#define TMS570_DCAN_TEST_LBack BSP_BIT32(4)
266#define TMS570_DCAN_TEST_Silent BSP_BIT32(3)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
475#define TMS570_DCAN_IF1CMD_WR_RD BSP_BIT32(23)
478#define TMS570_DCAN_IF1CMD_Mask BSP_BIT32(22)
481#define TMS570_DCAN_IF1CMD_Arb BSP_BIT32(21)
484#define TMS570_DCAN_IF1CMD_Control BSP_BIT32(20)
487#define TMS570_DCAN_IF1CMD_ClrIntPnd BSP_BIT32(19)
490#define TMS570_DCAN_IF1CMD_TxRqst_NewDat BSP_BIT32(18)
493#define TMS570_DCAN_IF1CMD_Data_A BSP_BIT32(17)
496#define TMS570_DCAN_IF1CMD_Data_B BSP_BIT32(16)
499#define TMS570_DCAN_IF1CMD_Busy BSP_BIT32(15)
502#define TMS570_DCAN_IF1CMD_DMA_Active BSP_BIT32(14)
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)
512#define TMS570_DCAN_IF1MSK_MXtd BSP_BIT32(31)
515#define TMS570_DCAN_IF1MSK_MDir BSP_BIT32(30)
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)
525#define TMS570_DCAN_IF1ARB_MsgVal BSP_BIT32(31)
528#define TMS570_DCAN_IF1ARB_Xtd BSP_BIT32(30)
531#define TMS570_DCAN_IF1ARB_Dir BSP_BIT32(29)
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)
541#define TMS570_DCAN_IF1MCTL_NewDat BSP_BIT32(15)
544#define TMS570_DCAN_IF1MCTL_MsgLst BSP_BIT32(14)
547#define TMS570_DCAN_IF1MCTL_IntPnd BSP_BIT32(13)
550#define TMS570_DCAN_IF1MCTL_UMask BSP_BIT32(12)
553#define TMS570_DCAN_IF1MCTL_TxIE BSP_BIT32(11)
556#define TMS570_DCAN_IF1MCTL_RxIE BSP_BIT32(10)
559#define TMS570_DCAN_IF1MCTL_RmtEn BSP_BIT32(9)
562#define TMS570_DCAN_IF1MCTL_TxRqst BSP_BIT32(8)
565#define TMS570_DCAN_IF1MCTL_EoB BSP_BIT32(7)
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)
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)
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)
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)
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)
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)
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)
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)
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)
619#define TMS570_DCAN_IF2CMD_WR_RD BSP_BIT32(23)
622#define TMS570_DCAN_IF2CMD_Mask BSP_BIT32(22)
625#define TMS570_DCAN_IF2CMD_Arb BSP_BIT32(21)
628#define TMS570_DCAN_IF2CMD_Control BSP_BIT32(20)
631#define TMS570_DCAN_IF2CMD_ClrIntPnd BSP_BIT32(19)
634#define TMS570_DCAN_IF2CMD_TxRqst_NewDat BSP_BIT32(18)
637#define TMS570_DCAN_IF2CMD_Data_A BSP_BIT32(17)
640#define TMS570_DCAN_IF2CMD_Data_B BSP_BIT32(16)
643#define TMS570_DCAN_IF2CMD_Busy BSP_BIT32(15)
646#define TMS570_DCAN_IF2CMD_DMA_Active BSP_BIT32(14)
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)
656#define TMS570_DCAN_IF2MSK_MXtd BSP_BIT32(31)
659#define TMS570_DCAN_IF2MSK_MDir BSP_BIT32(30)
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)
669#define TMS570_DCAN_IF2ARB_MsgVal BSP_BIT32(31)
672#define TMS570_DCAN_IF2ARB_Xtd BSP_BIT32(30)
675#define TMS570_DCAN_IF2ARB_Dir BSP_BIT32(29)
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)
685#define TMS570_DCAN_IF2MCTL_NewDat BSP_BIT32(15)
688#define TMS570_DCAN_IF2MCTL_MsgLst BSP_BIT32(14)
691#define TMS570_DCAN_IF2MCTL_IntPnd BSP_BIT32(13)
694#define TMS570_DCAN_IF2MCTL_UMask BSP_BIT32(12)
697#define TMS570_DCAN_IF2MCTL_TxIE BSP_BIT32(11)
700#define TMS570_DCAN_IF2MCTL_RxIE BSP_BIT32(10)
703#define TMS570_DCAN_IF2MCTL_RmtEn BSP_BIT32(9)
706#define TMS570_DCAN_IF2MCTL_TxRqst BSP_BIT32(8)
709#define TMS570_DCAN_IF2MCTL_EoB BSP_BIT32(7)
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)
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)
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)
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)
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)
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)
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)
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)
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)
763#define TMS570_DCAN_IF3OBS_IF3_Upd BSP_BIT32(15)
766#define TMS570_DCAN_IF3OBS_IF3_SDB BSP_BIT32(12)
769#define TMS570_DCAN_IF3OBS_IF3_SDA BSP_BIT32(11)
772#define TMS570_DCAN_IF3OBS_IF3_SC BSP_BIT32(10)
775#define TMS570_DCAN_IF3OBS_IF3_SA BSP_BIT32(9)
778#define TMS570_DCAN_IF3OBS_IF3_SM BSP_BIT32(8)
781#define TMS570_DCAN_IF3OBS_Data_B BSP_BIT32(4)
784#define TMS570_DCAN_IF3OBS_Data_A BSP_BIT32(3)
787#define TMS570_DCAN_IF3OBS_Ctrl BSP_BIT32(2)
790#define TMS570_DCAN_IF3OBS_Arb BSP_BIT32(1)
793#define TMS570_DCAN_IF3OBS_Mask BSP_BIT32(0)
798#define TMS570_DCAN_IF3MSK_MXtd BSP_BIT32(31)
801#define TMS570_DCAN_IF3MSK_MDir BSP_BIT32(30)
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)
811#define TMS570_DCAN_IF3ARB_MsgVal BSP_BIT32(31)
814#define TMS570_DCAN_IF3ARB_Xtd BSP_BIT32(30)
817#define TMS570_DCAN_IF3ARB_Dir BSP_BIT32(29)
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)
827#define TMS570_DCAN_IF3MCTL_NewDat BSP_BIT32(15)
830#define TMS570_DCAN_IF3MCTL_MsgLst BSP_BIT32(14)
833#define TMS570_DCAN_IF3MCTL_IntPnd BSP_BIT32(13)
836#define TMS570_DCAN_IF3MCTL_UMask BSP_BIT32(12)
839#define TMS570_DCAN_IF3MCTL_TxIE BSP_BIT32(11)
842#define TMS570_DCAN_IF3MCTL_RxIE BSP_BIT32(10)
845#define TMS570_DCAN_IF3MCTL_RmtEn BSP_BIT32(9)
848#define TMS570_DCAN_IF3MCTL_TxRqst BSP_BIT32(8)
851#define TMS570_DCAN_IF3MCTL_EoB BSP_BIT32(7)
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)
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)
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)
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)
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)
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)
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)
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)
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)
909#define TMS570_DCAN_TIOC_PU BSP_BIT32(18)
912#define TMS570_DCAN_TIOC_PD BSP_BIT32(17)
915#define TMS570_DCAN_TIOC_OD BSP_BIT32(16)
918#define TMS570_DCAN_TIOC_Func BSP_BIT32(3)
921#define TMS570_DCAN_TIOC_Dir BSP_BIT32(2)
924#define TMS570_DCAN_TIOC_Out BSP_BIT32(1)
929#define TMS570_DCAN_RIOC_PU BSP_BIT32(18)
932#define TMS570_DCAN_RIOC_PD BSP_BIT32(17)
935#define TMS570_DCAN_RIOC_OD BSP_BIT32(16)
938#define TMS570_DCAN_RIOC_Func BSP_BIT32(3)
941#define TMS570_DCAN_RIOC_Dir BSP_BIT32(2)
944#define TMS570_DCAN_RIOC_Out BSP_BIT32(1)
947#define TMS570_DCAN_RIOC_In BSP_BIT32(0)
This header file provides utility macros for BSPs.
Definition: reg_dcan.h:54