/* * File: kinetis_flexcan.h * Purpose: Register and bit definitions */ #ifndef __KINETIS_FLEXCAN_H #define __KINETIS_FLEXCAN_H #include #define FLEXCAN1_BASE (0x401D0000) #define FLEXCAN2_BASE (0x401D4000) #define FLEXCANb_MCR(b) (*(vuint32_t*)(b)) #define FLEXCANb_CTRL1(b) (*(vuint32_t*)(b+4)) #define FLEXCANb_TIMER(b) (*(vuint32_t*)(b+8)) #define FLEXCANb_RXMGMASK(b) (*(vuint32_t*)(b+0x10)) #define FLEXCANb_RX14MASK(b) (*(vuint32_t*)(b+0x14)) #define FLEXCANb_RX15MASK(b) (*(vuint32_t*)(b+0x18)) #define FLEXCANb_ECR(b) (*(vuint32_t*)(b+0x1C)) #define FLEXCANb_ESR1(b) (*(vuint32_t*)(b+0x20)) #define FLEXCANb_IMASK2(b) (*(vuint32_t*)(b+0x24)) #define FLEXCANb_IMASK1(b) (*(vuint32_t*)(b+0x28)) #define FLEXCANb_IFLAG2(b) (*(vuint32_t*)(b+0x2C)) #define FLEXCANb_IFLAG1(b) (*(vuint32_t*)(b+0x30)) #define FLEXCANb_CTRL2(b) (*(vuint32_t*)(b+0x34)) #define FLEXCANb_ESR2(b) (*(vuint32_t*)(b+0x38)) #define FLEXCANb_CRCR(b) (*(vuint32_t*)(b+0x44)) #define FLEXCANb_RXFGMASK(b) (*(vuint32_t*)(b+0x48)) #define FLEXCANb_RXFIR(b) (*(vuint32_t*)(b+0x4C)) #define FLEXCANb_RXIMR(b, n) (*(vuint32_t*)(b+0x880+(n*4))) #define FLEXCANb_GFWR(b, n) (*(vuint32_t*)(b+0x1E0)) #define FLEXCANb_MBn_CS(b, n) (*(vuint32_t*)(b+0x80+n*0x10)) #define FLEXCANb_MBn_ID(b, n) (*(vuint32_t*)(b+0x84+n*0x10)) #define FLEXCANb_MBn_WORD0(b, n) (*(vuint32_t*)(b+0x88+n*0x10)) #define FLEXCANb_MBn_WORD1(b, n) (*(vuint32_t*)(b+0x8C+n*0x10)) #define FLEXCANb_IDFLT_TAB(b, n) (*(vuint32_t*)(b+0xE0+(n*4))) #define FLEXCANb_MAXMB_SIZE(b) ((FLEXCANb_MCR(b)&0x7F)+1) // CANFD (confirmed valid) #define FLEXCANb_FDCTRL(b) (*(vuint32_t*)(b+0xC00)) #define FLEXCANb_FDCBT(b) (*(vuint32_t*)(b+0xC04)) #define FLEXCANb_CBT(b) (*(vuint32_t*)(b+0x50)) #define FLEXCANb_ERFCR(b) (*(vuint32_t*)(b+0xC0C)) #define FLEXCANb_DBG1(b) (*(vuint32_t*)(b+0x58)) #define FLEXCANb_DBG2(b) (*(vuint32_t*)(b+0x5C)) #define FLEXCAN_MCR_IDAM(x) (((x)&0x00000003)<<8) #define FLEXCAN_MCR_IDAM_MASK (0x00000300) #define FLEXCAN_MCR_IDAM_BIT_NO (8) #define FLEXCAN_MCR_AEN (0x00001000) #define FLEXCAN_MCR_LPRIO_EN (0x00002000) #define FLEXCAN_MCR_IRMQ (0x00010000) #define FLEXCAN_MCR_SRX_DIS (0x00020000) #define FLEXCAN_MCR_DOZE (0x00040000) #define FLEXCAN_MCR_WAK_SRC (0x00080000) #define FLEXCAN_MCR_LPM_ACK (0x00100000) #define FLEXCAN_MCR_WRN_EN (0x00200000) #define FLEXCAN_MCR_SLF_WAK (0x00400000) #define FLEXCAN_MCR_SUPV (0x00800000) #define FLEXCAN_MCR_FRZ_ACK (0x01000000) #define FLEXCAN_MCR_SOFT_RST (0x02000000) #define FLEXCAN_MCR_WAK_MSK (0x04000000) #define FLEXCAN_MCR_NOT_RDY (0x08000000) #define FLEXCAN_MCR_HALT (0x10000000) #define FLEXCAN_MCR_FEN (0x20000000) #define FLEXCAN_MCR_FRZ (0x40000000) #define FLEXCAN_MCR_MDIS (0x80000000) #define FLEXCAN_MCR_DMA (0x00008000) #define FLEXCAN_CTRL_PROPSEG(x) (((x)&0x00000007L)<<0) #define FLEXCAN_CTRL_LOM (0x00000008) #define FLEXCAN_CTRL_LBUF (0x00000010) #define FLEXCAN_CTRL_TSYNC (0x00000020) #define FLEXCAN_CTRL_BOFF_REC (0x00000040) #define FLEXCAN_CTRL_SMP (0x00000080) #define FLEXCAN_CTRL_RWRN_MSK (0x00000400) #define FLEXCAN_CTRL_TWRN_MSK (0x00000800) #define FLEXCAN_CTRL_LPB (0x00001000UL) #define FLEXCAN_CTRL_CLK_SRC (0x00002000) #define FLEXCAN_CTRL_ERR_MSK (0x00004000) #define FLEXCAN_CTRL_BOFF_MSK (0x00008000) #define FLEXCAN_CTRL_PSEG2(x) (((x)&0x00000007L)<<16) #define FLEXCAN_CTRL_PSEG1(x) (((x)&0x00000007L)<<19) #define FLEXCAN_CTRL_RJW(x) (((x)&0x00000003L)<<22) #define FLEXCAN_CTRL_PRESDIV(x) (((x)&0x000000FFL)<<24) #define FLEXCAN_CTRL2_ISOCANFDEN (BIT12) #define FLEXCAN_CTRL2_IMEUEN (BIT31) #define FLEXCAN_CTRL2_RFFN (0x0F000000UL) #define FLEXCAN_CTRL2_RFFN_BIT_NO (24) #define FLEXCAN_CTRL2_TASD (0x00F80000UL) #define FLEXCAN_CTRL2_TASD_BIT_NO (19) #define FLEXCAN_CTRL2_MRP (BIT18) #define FLEXCAN_CTRL2_RRS (BIT17) #define FLEXCAN_CTRL2_EACEN (BIT16) #define FLEXCAN_CTRL2_MUMASK (BIT1) #define FLEXCAN_CTRL2_FUMASK (BIT0) #define FLEXCAN_CTRL2_LOSTRLMSK (BIT2) #define FLEXCAN_CTRL2_LOSTRMMSK (BIT1) #define FLEXCAN_CTRL2_IMEUMASK (BIT0) #define FLEXCAN_set_rffn(ctrl2,rffn) ctrl2 = ((ctrl2) & ~FLEXCAN_CTRL2_RFFN) | ((rffn & 0xF)<>4) #define CAN_ERROR_ACTIVE 0 #define CAN_ERROR_PASSIVE 1 #define CAN_ERROR_BUS_OFF 2 /* Bit definition for FLEXCAN_ESR2 */ #define FLEXCAN_ESR2_IMB (0x00002000) #define FLEXCAN_ESR2_VPS (0x00004000) #define FLEXCAN_ESR2_LTM (0x007F0000UL) #define FLEXCAN_ESR2_LTM_BIT_NO (16) #define FLEXCAN_ESR2_LOSTRLF (0x00000004) #define FLEXCAN_ESR2_LOSTRMF (0x00000002) #define FLEXCAN_ESR2_IMEUF (0x00000001) #define FLEXCAN_get_LTM(esr2_value) (((esr2_value) & (FLEXCAN_ESR2_LTM))>>(FLEXCAN_ESR2_LTM_BIT_NO)) /* Bit definitions and macros for FLEXCAN_IMASK1 */ #define FLEXCAN_IMASK1_BUF0M (0x00000001) #define FLEXCAN_IMASK1_BUF1M (0x00000002) #define FLEXCAN_IMASK1_BUF2M (0x00000004) #define FLEXCAN_IMASK1_BUF3M (0x00000008) #define FLEXCAN_IMASK1_BUF4M (0x00000010) #define FLEXCAN_IMASK1_BUF5M (0x00000020) #define FLEXCAN_IMASK1_BUF6M (0x00000040) #define FLEXCAN_IMASK1_BUF7M (0x00000080) #define FLEXCAN_IMASK1_BUF8M (0x00000100) #define FLEXCAN_IMASK1_BUF9M (0x00000200) #define FLEXCAN_IMASK1_BUF10M (0x00000400) #define FLEXCAN_IMASK1_BUF11M (0x00000800) #define FLEXCAN_IMASK1_BUF12M (0x00001000) #define FLEXCAN_IMASK1_BUF13M (0x00002000) #define FLEXCAN_IMASK1_BUF14M (0x00004000) #define FLEXCAN_IMASK1_BUF15M (0x00008000) #define FLEXCAN_IMASK1_BUF16M (0x00010000) #define FLEXCAN_IMASK1_BUF17M (0x00020000) #define FLEXCAN_IMASK1_BUF18M (0x00040000) #define FLEXCAN_IMASK1_BUF19M (0x00080000) #define FLEXCAN_IMASK1_BUF20M (0x00100000) #define FLEXCAN_IMASK1_BUF21M (0x00200000) #define FLEXCAN_IMASK1_BUF22M (0x00400000) #define FLEXCAN_IMASK1_BUF23M (0x00800000) #define FLEXCAN_IMASK1_BUF24M (0x01000000) #define FLEXCAN_IMASK1_BUF25M (0x02000000) #define FLEXCAN_IMASK1_BUF26M (0x04000000) #define FLEXCAN_IMASK1_BUF27M (0x08000000) #define FLEXCAN_IMASK1_BUF28M (0x10000000) #define FLEXCAN_IMASK1_BUF29M (0x20000000) #define FLEXCAN_IMASK1_BUF30M (0x40000000) #define FLEXCAN_IMASK1_BUF31M (0x80000000) /* Bit definitions and macros for FLEXCAN_IFLAG1 */ #define FLEXCAN_IFLAG1_BUF0I (0x00000001) #define FLEXCAN_IFLAG1_BUF1I (0x00000002) #define FLEXCAN_IFLAG1_BUF2I (0x00000004) #define FLEXCAN_IFLAG1_BUF3I (0x00000008) #define FLEXCAN_IFLAG1_BUF4I (0x00000010) #define FLEXCAN_IFLAG1_BUF5I (0x00000020) #define FLEXCAN_IFLAG1_BUF6I (0x00000040) #define FLEXCAN_IFLAG1_BUF7I (0x00000080) #define FLEXCAN_IFLAG1_BUF8I (0x00000100) #define FLEXCAN_IFLAG1_BUF9I (0x00000200) #define FLEXCAN_IFLAG1_BUF10I (0x00000400) #define FLEXCAN_IFLAG1_BUF11I (0x00000800) #define FLEXCAN_IFLAG1_BUF12I (0x00001000) #define FLEXCAN_IFLAG1_BUF13I (0x00002000) #define FLEXCAN_IFLAG1_BUF14I (0x00004000) #define FLEXCAN_IFLAG1_BUF15I (0x00008000) #define FLEXCAN_IFLAG1_BUF16I (0x00010000) #define FLEXCAN_IFLAG1_BUF17I (0x00020000) #define FLEXCAN_IFLAG1_BUF18I (0x00040000) #define FLEXCAN_IFLAG1_BUF19I (0x00080000) #define FLEXCAN_IFLAG1_BUF20I (0x00100000) #define FLEXCAN_IFLAG1_BUF21I (0x00200000) #define FLEXCAN_IFLAG1_BUF22I (0x00400000) #define FLEXCAN_IFLAG1_BUF23I (0x00800000) #define FLEXCAN_IFLAG1_BUF24I (0x01000000) #define FLEXCAN_IFLAG1_BUF25I (0x02000000) #define FLEXCAN_IFLAG1_BUF26I (0x04000000) #define FLEXCAN_IFLAG1_BUF27I (0x08000000) #define FLEXCAN_IFLAG1_BUF28I (0x10000000) #define FLEXCAN_IFLAG1_BUF29I (0x20000000) #define FLEXCAN_IFLAG1_BUF30I (0x40000000) #define FLEXCAN_IFLAG1_BUF31I (0x80000000) /* Bit definitions and macros for FLEXCAN_MB_CS */ #define FLEXCAN_MB_CS_TIMESTAMP(x) (((x)&0x0000FFFF)<<0) #define FLEXCAN_MB_CS_TIMESTAMP_MASK (0x0000FFFFUL) #define FLEXCAN_MB_CS_LENGTH(x) (((x)&0x0000000F)<<16) #define FLEXCAN_MB_CS_RTR (0x00100000) #define FLEXCAN_MB_CS_IDE (0x00200000) #define FLEXCAN_MB_CS_SRR (0x00400000) #define FLEXCAN_MB_CS_CODE(x) (((x)&0x0000000F)<<24) #define FLEXCAN_MB_CS_CODE_MASK (0x0F000000UL) #define FLEXCAN_MB_CS_DLC_MASK (0x000F0000UL) #define FLEXCAN_MB_CODE_RX_INACTIVE (0) #define FLEXCAN_MB_CODE_RX_EMPTY (4) #define FLEXCAN_MB_CODE_RX_FULL (2) #define FLEXCAN_MB_CODE_RX_OVERRUN (6) #define FLEXCAN_MB_CODE_RX_BUSY (1) #define FLEXCAN_MB_CS_IDE_BIT_NO (21) #define FLEXCAN_MB_CS_RTR_BIT_NO (20) #define FLEXCAN_MB_CS_DLC_BIT_NO (16) #define FLEXCAN_MB_CODE_TX_INACTIVE (8) #define FLEXCAN_MB_CODE_TX_ABORT (9) #define FLEXCAN_MB_CODE_TX_ONCE (0x0C) #define FLEXCAN_MB_CODE_TX_RESPONSE (0x0A) #define FLEXCAN_MB_CODE_TX_RESPONSE_TEMPO (0x0E) #define FLEXCAN_get_code(cs) (((cs) & FLEXCAN_MB_CS_CODE_MASK)>>24) #define FLEXCAN_get_length(cs) (((cs) & FLEXCAN_MB_CS_DLC_MASK)>>16) #define FLEXCAN_get_timestamp(cs) (((cs) & FLEXCAN_MB_CS_TIMESTAMP_MASK)>>0) /* Bit definitions and macros for FLEXCAN_MB_ID */ #define FLEXCAN_MB_ID_STD_MASK (0x1FFC0000UL) #define FLEXCAN_MB_ID_EXT_MASK (0x1FFFFFFFUL) #define FLEXCAN_MB_ID_IDEXT(x) (((x)&0x0003FFFF)<<0) #define FLEXCAN_MB_ID_IDSTD(x) (((x)&0x000007FF)<<18) #define FLEXCAN_MB_ID_PRIO(x) (((x)&0x00000007)<<29) #define FLEXCAN_MB_ID_PRIO_BIT_NO (29) #define FLEXCAN_MB_ID_STD_BIT_NO (18) #define FLEXCAN_MB_ID_EXT_BIT_NO (0) /* Bit definitions and macros for FLEXCAN_MB_WORD0 */ #define FLEXCAN_MB_WORD0_DATA3(x) (((x)&0x000000FF)<<0) #define FLEXCAN_MB_WORD0_DATA2(x) (((x)&0x000000FF)<<8) #define FLEXCAN_MB_WORD0_DATA1(x) (((x)&0x000000FF)<<16) #define FLEXCAN_MB_WORD0_DATA0(x) (((x)&0x000000FF)<<24) /* Bit definitions and macros for FLEXCAN_MB_WORD1 */ #define FLEXCAN_MB_WORD1_DATA7(x) (((x)&0x000000FF)<<0) #define FLEXCAN_MB_WORD1_DATA6(x) (((x)&0x000000FF)<<8) #define FLEXCAN_MB_WORD1_DATA5(x) (((x)&0x000000FF)<<16) #define FLEXCAN_MB_WORD1_DATA4(x) (((x)&0x000000FF)<<24) /* Bit definitions and macros for FLEXCAN_RXIMR0 */ #define FLEXCAN_RXIMR0_MI0 (0x00000001) #define FLEXCAN_RXIMR0_MI1 (0x00000002) #define FLEXCAN_RXIMR0_MI2 (0x00000004) #define FLEXCAN_RXIMR0_MI3 (0x00000008) #define FLEXCAN_RXIMR0_MI4 (0x00000010) #define FLEXCAN_RXIMR0_MI5 (0x00000020) #define FLEXCAN_RXIMR0_MI6 (0x00000040) #define FLEXCAN_RXIMR0_MI7 (0x00000080) #define FLEXCAN_RXIMR0_MI8 (0x00000100) #define FLEXCAN_RXIMR0_MI9 (0x00000200) #define FLEXCAN_RXIMR0_MI10 (0x00000400) #define FLEXCAN_RXIMR0_MI11 (0x00000800) #define FLEXCAN_RXIMR0_MI12 (0x00001000) #define FLEXCAN_RXIMR0_MI13 (0x00002000) #define FLEXCAN_RXIMR0_MI14 (0x00004000) #define FLEXCAN_RXIMR0_MI15 (0x00008000) #define FLEXCAN_RXIMR0_MI16 (0x00010000) #define FLEXCAN_RXIMR0_MI17 (0x00020000) #define FLEXCAN_RXIMR0_MI18 (0x00040000) #define FLEXCAN_RXIMR0_MI19 (0x00080000) #define FLEXCAN_RXIMR0_MI20 (0x00100000) #define FLEXCAN_RXIMR0_MI21 (0x00200000) #define FLEXCAN_RXIMR0_MI22 (0x00400000) #define FLEXCAN_RXIMR0_MI23 (0x00800000) #define FLEXCAN_RXIMR0_MI24 (0x01000000) #define FLEXCAN_RXIMR0_MI25 (0x02000000) #define FLEXCAN_RXIMR0_MI26 (0x04000000) #define FLEXCAN_RXIMR0_MI27 (0x08000000) #define FLEXCAN_RXIMR0_MI28 (0x10000000) #define FLEXCAN_RXIMR0_MI29 (0x20000000) #define FLEXCAN_RXIMR0_MI30 (0x40000000) #define FLEXCAN_RXIMR0_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR1 */ #define FLEXCAN_RXIMR1_MI0 (0x00000001) #define FLEXCAN_RXIMR1_MI1 (0x00000002) #define FLEXCAN_RXIMR1_MI2 (0x00000004) #define FLEXCAN_RXIMR1_MI3 (0x00000008) #define FLEXCAN_RXIMR1_MI4 (0x00000010) #define FLEXCAN_RXIMR1_MI5 (0x00000020) #define FLEXCAN_RXIMR1_MI6 (0x00000040) #define FLEXCAN_RXIMR1_MI7 (0x00000080) #define FLEXCAN_RXIMR1_MI8 (0x00000100) #define FLEXCAN_RXIMR1_MI9 (0x00000200) #define FLEXCAN_RXIMR1_MI10 (0x00000400) #define FLEXCAN_RXIMR1_MI11 (0x00000800) #define FLEXCAN_RXIMR1_MI12 (0x00001000) #define FLEXCAN_RXIMR1_MI13 (0x00002000) #define FLEXCAN_RXIMR1_MI14 (0x00004000) #define FLEXCAN_RXIMR1_MI15 (0x00008000) #define FLEXCAN_RXIMR1_MI16 (0x00010000) #define FLEXCAN_RXIMR1_MI17 (0x00020000) #define FLEXCAN_RXIMR1_MI18 (0x00040000) #define FLEXCAN_RXIMR1_MI19 (0x00080000) #define FLEXCAN_RXIMR1_MI20 (0x00100000) #define FLEXCAN_RXIMR1_MI21 (0x00200000) #define FLEXCAN_RXIMR1_MI22 (0x00400000) #define FLEXCAN_RXIMR1_MI23 (0x00800000) #define FLEXCAN_RXIMR1_MI24 (0x01000000) #define FLEXCAN_RXIMR1_MI25 (0x02000000) #define FLEXCAN_RXIMR1_MI26 (0x04000000) #define FLEXCAN_RXIMR1_MI27 (0x08000000) #define FLEXCAN_RXIMR1_MI28 (0x10000000) #define FLEXCAN_RXIMR1_MI29 (0x20000000) #define FLEXCAN_RXIMR1_MI30 (0x40000000) #define FLEXCAN_RXIMR1_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR2 */ #define FLEXCAN_RXIMR2_MI0 (0x00000001) #define FLEXCAN_RXIMR2_MI1 (0x00000002) #define FLEXCAN_RXIMR2_MI2 (0x00000004) #define FLEXCAN_RXIMR2_MI3 (0x00000008) #define FLEXCAN_RXIMR2_MI4 (0x00000010) #define FLEXCAN_RXIMR2_MI5 (0x00000020) #define FLEXCAN_RXIMR2_MI6 (0x00000040) #define FLEXCAN_RXIMR2_MI7 (0x00000080) #define FLEXCAN_RXIMR2_MI8 (0x00000100) #define FLEXCAN_RXIMR2_MI9 (0x00000200) #define FLEXCAN_RXIMR2_MI10 (0x00000400) #define FLEXCAN_RXIMR2_MI11 (0x00000800) #define FLEXCAN_RXIMR2_MI12 (0x00001000) #define FLEXCAN_RXIMR2_MI13 (0x00002000) #define FLEXCAN_RXIMR2_MI14 (0x00004000) #define FLEXCAN_RXIMR2_MI15 (0x00008000) #define FLEXCAN_RXIMR2_MI16 (0x00010000) #define FLEXCAN_RXIMR2_MI17 (0x00020000) #define FLEXCAN_RXIMR2_MI18 (0x00040000) #define FLEXCAN_RXIMR2_MI19 (0x00080000) #define FLEXCAN_RXIMR2_MI20 (0x00100000) #define FLEXCAN_RXIMR2_MI21 (0x00200000) #define FLEXCAN_RXIMR2_MI22 (0x00400000) #define FLEXCAN_RXIMR2_MI23 (0x00800000) #define FLEXCAN_RXIMR2_MI24 (0x01000000) #define FLEXCAN_RXIMR2_MI25 (0x02000000) #define FLEXCAN_RXIMR2_MI26 (0x04000000) #define FLEXCAN_RXIMR2_MI27 (0x08000000) #define FLEXCAN_RXIMR2_MI28 (0x10000000) #define FLEXCAN_RXIMR2_MI29 (0x20000000) #define FLEXCAN_RXIMR2_MI30 (0x40000000) #define FLEXCAN_RXIMR2_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR3 */ #define FLEXCAN_RXIMR3_MI0 (0x00000001) #define FLEXCAN_RXIMR3_MI1 (0x00000002) #define FLEXCAN_RXIMR3_MI2 (0x00000004) #define FLEXCAN_RXIMR3_MI3 (0x00000008) #define FLEXCAN_RXIMR3_MI4 (0x00000010) #define FLEXCAN_RXIMR3_MI5 (0x00000020) #define FLEXCAN_RXIMR3_MI6 (0x00000040) #define FLEXCAN_RXIMR3_MI7 (0x00000080) #define FLEXCAN_RXIMR3_MI8 (0x00000100) #define FLEXCAN_RXIMR3_MI9 (0x00000200) #define FLEXCAN_RXIMR3_MI10 (0x00000400) #define FLEXCAN_RXIMR3_MI11 (0x00000800) #define FLEXCAN_RXIMR3_MI12 (0x00001000) #define FLEXCAN_RXIMR3_MI13 (0x00002000) #define FLEXCAN_RXIMR3_MI14 (0x00004000) #define FLEXCAN_RXIMR3_MI15 (0x00008000) #define FLEXCAN_RXIMR3_MI16 (0x00010000) #define FLEXCAN_RXIMR3_MI17 (0x00020000) #define FLEXCAN_RXIMR3_MI18 (0x00040000) #define FLEXCAN_RXIMR3_MI19 (0x00080000) #define FLEXCAN_RXIMR3_MI20 (0x00100000) #define FLEXCAN_RXIMR3_MI21 (0x00200000) #define FLEXCAN_RXIMR3_MI22 (0x00400000) #define FLEXCAN_RXIMR3_MI23 (0x00800000) #define FLEXCAN_RXIMR3_MI24 (0x01000000) #define FLEXCAN_RXIMR3_MI25 (0x02000000) #define FLEXCAN_RXIMR3_MI26 (0x04000000) #define FLEXCAN_RXIMR3_MI27 (0x08000000) #define FLEXCAN_RXIMR3_MI28 (0x10000000) #define FLEXCAN_RXIMR3_MI29 (0x20000000) #define FLEXCAN_RXIMR3_MI30 (0x40000000) #define FLEXCAN_RXIMR3_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR4 */ #define FLEXCAN_RXIMR4_MI0 (0x00000001) #define FLEXCAN_RXIMR4_MI1 (0x00000002) #define FLEXCAN_RXIMR4_MI2 (0x00000004) #define FLEXCAN_RXIMR4_MI3 (0x00000008) #define FLEXCAN_RXIMR4_MI4 (0x00000010) #define FLEXCAN_RXIMR4_MI5 (0x00000020) #define FLEXCAN_RXIMR4_MI6 (0x00000040) #define FLEXCAN_RXIMR4_MI7 (0x00000080) #define FLEXCAN_RXIMR4_MI8 (0x00000100) #define FLEXCAN_RXIMR4_MI9 (0x00000200) #define FLEXCAN_RXIMR4_MI10 (0x00000400) #define FLEXCAN_RXIMR4_MI11 (0x00000800) #define FLEXCAN_RXIMR4_MI12 (0x00001000) #define FLEXCAN_RXIMR4_MI13 (0x00002000) #define FLEXCAN_RXIMR4_MI14 (0x00004000) #define FLEXCAN_RXIMR4_MI15 (0x00008000) #define FLEXCAN_RXIMR4_MI16 (0x00010000) #define FLEXCAN_RXIMR4_MI17 (0x00020000) #define FLEXCAN_RXIMR4_MI18 (0x00040000) #define FLEXCAN_RXIMR4_MI19 (0x00080000) #define FLEXCAN_RXIMR4_MI20 (0x00100000) #define FLEXCAN_RXIMR4_MI21 (0x00200000) #define FLEXCAN_RXIMR4_MI22 (0x00400000) #define FLEXCAN_RXIMR4_MI23 (0x00800000) #define FLEXCAN_RXIMR4_MI24 (0x01000000) #define FLEXCAN_RXIMR4_MI25 (0x02000000) #define FLEXCAN_RXIMR4_MI26 (0x04000000) #define FLEXCAN_RXIMR4_MI27 (0x08000000) #define FLEXCAN_RXIMR4_MI28 (0x10000000) #define FLEXCAN_RXIMR4_MI29 (0x20000000) #define FLEXCAN_RXIMR4_MI30 (0x40000000) #define FLEXCAN_RXIMR4_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR5 */ #define FLEXCAN_RXIMR5_MI0 (0x00000001) #define FLEXCAN_RXIMR5_MI1 (0x00000002) #define FLEXCAN_RXIMR5_MI2 (0x00000004) #define FLEXCAN_RXIMR5_MI3 (0x00000008) #define FLEXCAN_RXIMR5_MI4 (0x00000010) #define FLEXCAN_RXIMR5_MI5 (0x00000020) #define FLEXCAN_RXIMR5_MI6 (0x00000040) #define FLEXCAN_RXIMR5_MI7 (0x00000080) #define FLEXCAN_RXIMR5_MI8 (0x00000100) #define FLEXCAN_RXIMR5_MI9 (0x00000200) #define FLEXCAN_RXIMR5_MI10 (0x00000400) #define FLEXCAN_RXIMR5_MI11 (0x00000800) #define FLEXCAN_RXIMR5_MI12 (0x00001000) #define FLEXCAN_RXIMR5_MI13 (0x00002000) #define FLEXCAN_RXIMR5_MI14 (0x00004000) #define FLEXCAN_RXIMR5_MI15 (0x00008000) #define FLEXCAN_RXIMR5_MI16 (0x00010000) #define FLEXCAN_RXIMR5_MI17 (0x00020000) #define FLEXCAN_RXIMR5_MI18 (0x00040000) #define FLEXCAN_RXIMR5_MI19 (0x00080000) #define FLEXCAN_RXIMR5_MI20 (0x00100000) #define FLEXCAN_RXIMR5_MI21 (0x00200000) #define FLEXCAN_RXIMR5_MI22 (0x00400000) #define FLEXCAN_RXIMR5_MI23 (0x00800000) #define FLEXCAN_RXIMR5_MI24 (0x01000000) #define FLEXCAN_RXIMR5_MI25 (0x02000000) #define FLEXCAN_RXIMR5_MI26 (0x04000000) #define FLEXCAN_RXIMR5_MI27 (0x08000000) #define FLEXCAN_RXIMR5_MI28 (0x10000000) #define FLEXCAN_RXIMR5_MI29 (0x20000000) #define FLEXCAN_RXIMR5_MI30 (0x40000000) #define FLEXCAN_RXIMR5_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR6 */ #define FLEXCAN_RXIMR6_MI0 (0x00000001) #define FLEXCAN_RXIMR6_MI1 (0x00000002) #define FLEXCAN_RXIMR6_MI2 (0x00000004) #define FLEXCAN_RXIMR6_MI3 (0x00000008) #define FLEXCAN_RXIMR6_MI4 (0x00000010) #define FLEXCAN_RXIMR6_MI5 (0x00000020) #define FLEXCAN_RXIMR6_MI6 (0x00000040) #define FLEXCAN_RXIMR6_MI7 (0x00000080) #define FLEXCAN_RXIMR6_MI8 (0x00000100) #define FLEXCAN_RXIMR6_MI9 (0x00000200) #define FLEXCAN_RXIMR6_MI10 (0x00000400) #define FLEXCAN_RXIMR6_MI11 (0x00000800) #define FLEXCAN_RXIMR6_MI12 (0x00001000) #define FLEXCAN_RXIMR6_MI13 (0x00002000) #define FLEXCAN_RXIMR6_MI14 (0x00004000) #define FLEXCAN_RXIMR6_MI15 (0x00008000) #define FLEXCAN_RXIMR6_MI16 (0x00010000) #define FLEXCAN_RXIMR6_MI17 (0x00020000) #define FLEXCAN_RXIMR6_MI18 (0x00040000) #define FLEXCAN_RXIMR6_MI19 (0x00080000) #define FLEXCAN_RXIMR6_MI20 (0x00100000) #define FLEXCAN_RXIMR6_MI21 (0x00200000) #define FLEXCAN_RXIMR6_MI22 (0x00400000) #define FLEXCAN_RXIMR6_MI23 (0x00800000) #define FLEXCAN_RXIMR6_MI24 (0x01000000) #define FLEXCAN_RXIMR6_MI25 (0x02000000) #define FLEXCAN_RXIMR6_MI26 (0x04000000) #define FLEXCAN_RXIMR6_MI27 (0x08000000) #define FLEXCAN_RXIMR6_MI28 (0x10000000) #define FLEXCAN_RXIMR6_MI29 (0x20000000) #define FLEXCAN_RXIMR6_MI30 (0x40000000) #define FLEXCAN_RXIMR6_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR7 */ #define FLEXCAN_RXIMR7_MI0 (0x00000001) #define FLEXCAN_RXIMR7_MI1 (0x00000002) #define FLEXCAN_RXIMR7_MI2 (0x00000004) #define FLEXCAN_RXIMR7_MI3 (0x00000008) #define FLEXCAN_RXIMR7_MI4 (0x00000010) #define FLEXCAN_RXIMR7_MI5 (0x00000020) #define FLEXCAN_RXIMR7_MI6 (0x00000040) #define FLEXCAN_RXIMR7_MI7 (0x00000080) #define FLEXCAN_RXIMR7_MI8 (0x00000100) #define FLEXCAN_RXIMR7_MI9 (0x00000200) #define FLEXCAN_RXIMR7_MI10 (0x00000400) #define FLEXCAN_RXIMR7_MI11 (0x00000800) #define FLEXCAN_RXIMR7_MI12 (0x00001000) #define FLEXCAN_RXIMR7_MI13 (0x00002000) #define FLEXCAN_RXIMR7_MI14 (0x00004000) #define FLEXCAN_RXIMR7_MI15 (0x00008000) #define FLEXCAN_RXIMR7_MI16 (0x00010000) #define FLEXCAN_RXIMR7_MI17 (0x00020000) #define FLEXCAN_RXIMR7_MI18 (0x00040000) #define FLEXCAN_RXIMR7_MI19 (0x00080000) #define FLEXCAN_RXIMR7_MI20 (0x00100000) #define FLEXCAN_RXIMR7_MI21 (0x00200000) #define FLEXCAN_RXIMR7_MI22 (0x00400000) #define FLEXCAN_RXIMR7_MI23 (0x00800000) #define FLEXCAN_RXIMR7_MI24 (0x01000000) #define FLEXCAN_RXIMR7_MI25 (0x02000000) #define FLEXCAN_RXIMR7_MI26 (0x04000000) #define FLEXCAN_RXIMR7_MI27 (0x08000000) #define FLEXCAN_RXIMR7_MI28 (0x10000000) #define FLEXCAN_RXIMR7_MI29 (0x20000000) #define FLEXCAN_RXIMR7_MI30 (0x40000000) #define FLEXCAN_RXIMR7_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR8 */ #define FLEXCAN_RXIMR8_MI0 (0x00000001) #define FLEXCAN_RXIMR8_MI1 (0x00000002) #define FLEXCAN_RXIMR8_MI2 (0x00000004) #define FLEXCAN_RXIMR8_MI3 (0x00000008) #define FLEXCAN_RXIMR8_MI4 (0x00000010) #define FLEXCAN_RXIMR8_MI5 (0x00000020) #define FLEXCAN_RXIMR8_MI6 (0x00000040) #define FLEXCAN_RXIMR8_MI7 (0x00000080) #define FLEXCAN_RXIMR8_MI8 (0x00000100) #define FLEXCAN_RXIMR8_MI9 (0x00000200) #define FLEXCAN_RXIMR8_MI10 (0x00000400) #define FLEXCAN_RXIMR8_MI11 (0x00000800) #define FLEXCAN_RXIMR8_MI12 (0x00001000) #define FLEXCAN_RXIMR8_MI13 (0x00002000) #define FLEXCAN_RXIMR8_MI14 (0x00004000) #define FLEXCAN_RXIMR8_MI15 (0x00008000) #define FLEXCAN_RXIMR8_MI16 (0x00010000) #define FLEXCAN_RXIMR8_MI17 (0x00020000) #define FLEXCAN_RXIMR8_MI18 (0x00040000) #define FLEXCAN_RXIMR8_MI19 (0x00080000) #define FLEXCAN_RXIMR8_MI20 (0x00100000) #define FLEXCAN_RXIMR8_MI21 (0x00200000) #define FLEXCAN_RXIMR8_MI22 (0x00400000) #define FLEXCAN_RXIMR8_MI23 (0x00800000) #define FLEXCAN_RXIMR8_MI24 (0x01000000) #define FLEXCAN_RXIMR8_MI25 (0x02000000) #define FLEXCAN_RXIMR8_MI26 (0x04000000) #define FLEXCAN_RXIMR8_MI27 (0x08000000) #define FLEXCAN_RXIMR8_MI28 (0x10000000) #define FLEXCAN_RXIMR8_MI29 (0x20000000) #define FLEXCAN_RXIMR8_MI30 (0x40000000) #define FLEXCAN_RXIMR8_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR9 */ #define FLEXCAN_RXIMR9_MI0 (0x00000001) #define FLEXCAN_RXIMR9_MI1 (0x00000002) #define FLEXCAN_RXIMR9_MI2 (0x00000004) #define FLEXCAN_RXIMR9_MI3 (0x00000008) #define FLEXCAN_RXIMR9_MI4 (0x00000010) #define FLEXCAN_RXIMR9_MI5 (0x00000020) #define FLEXCAN_RXIMR9_MI6 (0x00000040) #define FLEXCAN_RXIMR9_MI7 (0x00000080) #define FLEXCAN_RXIMR9_MI8 (0x00000100) #define FLEXCAN_RXIMR9_MI9 (0x00000200) #define FLEXCAN_RXIMR9_MI10 (0x00000400) #define FLEXCAN_RXIMR9_MI11 (0x00000800) #define FLEXCAN_RXIMR9_MI12 (0x00001000) #define FLEXCAN_RXIMR9_MI13 (0x00002000) #define FLEXCAN_RXIMR9_MI14 (0x00004000) #define FLEXCAN_RXIMR9_MI15 (0x00008000) #define FLEXCAN_RXIMR9_MI16 (0x00010000) #define FLEXCAN_RXIMR9_MI17 (0x00020000) #define FLEXCAN_RXIMR9_MI18 (0x00040000) #define FLEXCAN_RXIMR9_MI19 (0x00080000) #define FLEXCAN_RXIMR9_MI20 (0x00100000) #define FLEXCAN_RXIMR9_MI21 (0x00200000) #define FLEXCAN_RXIMR9_MI22 (0x00400000) #define FLEXCAN_RXIMR9_MI23 (0x00800000) #define FLEXCAN_RXIMR9_MI24 (0x01000000) #define FLEXCAN_RXIMR9_MI25 (0x02000000) #define FLEXCAN_RXIMR9_MI26 (0x04000000) #define FLEXCAN_RXIMR9_MI27 (0x08000000) #define FLEXCAN_RXIMR9_MI28 (0x10000000) #define FLEXCAN_RXIMR9_MI29 (0x20000000) #define FLEXCAN_RXIMR9_MI30 (0x40000000) #define FLEXCAN_RXIMR9_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR10 */ #define FLEXCAN_RXIMR10_MI0 (0x00000001) #define FLEXCAN_RXIMR10_MI1 (0x00000002) #define FLEXCAN_RXIMR10_MI2 (0x00000004) #define FLEXCAN_RXIMR10_MI3 (0x00000008) #define FLEXCAN_RXIMR10_MI4 (0x00000010) #define FLEXCAN_RXIMR10_MI5 (0x00000020) #define FLEXCAN_RXIMR10_MI6 (0x00000040) #define FLEXCAN_RXIMR10_MI7 (0x00000080) #define FLEXCAN_RXIMR10_MI8 (0x00000100) #define FLEXCAN_RXIMR10_MI9 (0x00000200) #define FLEXCAN_RXIMR10_MI10 (0x00000400) #define FLEXCAN_RXIMR10_MI11 (0x00000800) #define FLEXCAN_RXIMR10_MI12 (0x00001000) #define FLEXCAN_RXIMR10_MI13 (0x00002000) #define FLEXCAN_RXIMR10_MI14 (0x00004000) #define FLEXCAN_RXIMR10_MI15 (0x00008000) #define FLEXCAN_RXIMR10_MI16 (0x00010000) #define FLEXCAN_RXIMR10_MI17 (0x00020000) #define FLEXCAN_RXIMR10_MI18 (0x00040000) #define FLEXCAN_RXIMR10_MI19 (0x00080000) #define FLEXCAN_RXIMR10_MI20 (0x00100000) #define FLEXCAN_RXIMR10_MI21 (0x00200000) #define FLEXCAN_RXIMR10_MI22 (0x00400000) #define FLEXCAN_RXIMR10_MI23 (0x00800000) #define FLEXCAN_RXIMR10_MI24 (0x01000000) #define FLEXCAN_RXIMR10_MI25 (0x02000000) #define FLEXCAN_RXIMR10_MI26 (0x04000000) #define FLEXCAN_RXIMR10_MI27 (0x08000000) #define FLEXCAN_RXIMR10_MI28 (0x10000000) #define FLEXCAN_RXIMR10_MI29 (0x20000000) #define FLEXCAN_RXIMR10_MI30 (0x40000000) #define FLEXCAN_RXIMR10_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR11 */ #define FLEXCAN_RXIMR11_MI0 (0x00000001) #define FLEXCAN_RXIMR11_MI1 (0x00000002) #define FLEXCAN_RXIMR11_MI2 (0x00000004) #define FLEXCAN_RXIMR11_MI3 (0x00000008) #define FLEXCAN_RXIMR11_MI4 (0x00000010) #define FLEXCAN_RXIMR11_MI5 (0x00000020) #define FLEXCAN_RXIMR11_MI6 (0x00000040) #define FLEXCAN_RXIMR11_MI7 (0x00000080) #define FLEXCAN_RXIMR11_MI8 (0x00000100) #define FLEXCAN_RXIMR11_MI9 (0x00000200) #define FLEXCAN_RXIMR11_MI10 (0x00000400) #define FLEXCAN_RXIMR11_MI11 (0x00000800) #define FLEXCAN_RXIMR11_MI12 (0x00001000) #define FLEXCAN_RXIMR11_MI13 (0x00002000) #define FLEXCAN_RXIMR11_MI14 (0x00004000) #define FLEXCAN_RXIMR11_MI15 (0x00008000) #define FLEXCAN_RXIMR11_MI16 (0x00010000) #define FLEXCAN_RXIMR11_MI17 (0x00020000) #define FLEXCAN_RXIMR11_MI18 (0x00040000) #define FLEXCAN_RXIMR11_MI19 (0x00080000) #define FLEXCAN_RXIMR11_MI20 (0x00100000) #define FLEXCAN_RXIMR11_MI21 (0x00200000) #define FLEXCAN_RXIMR11_MI22 (0x00400000) #define FLEXCAN_RXIMR11_MI23 (0x00800000) #define FLEXCAN_RXIMR11_MI24 (0x01000000) #define FLEXCAN_RXIMR11_MI25 (0x02000000) #define FLEXCAN_RXIMR11_MI26 (0x04000000) #define FLEXCAN_RXIMR11_MI27 (0x08000000) #define FLEXCAN_RXIMR11_MI28 (0x10000000) #define FLEXCAN_RXIMR11_MI29 (0x20000000) #define FLEXCAN_RXIMR11_MI30 (0x40000000) #define FLEXCAN_RXIMR11_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR12 */ #define FLEXCAN_RXIMR12_MI0 (0x00000001) #define FLEXCAN_RXIMR12_MI1 (0x00000002) #define FLEXCAN_RXIMR12_MI2 (0x00000004) #define FLEXCAN_RXIMR12_MI3 (0x00000008) #define FLEXCAN_RXIMR12_MI4 (0x00000010) #define FLEXCAN_RXIMR12_MI5 (0x00000020) #define FLEXCAN_RXIMR12_MI6 (0x00000040) #define FLEXCAN_RXIMR12_MI7 (0x00000080) #define FLEXCAN_RXIMR12_MI8 (0x00000100) #define FLEXCAN_RXIMR12_MI9 (0x00000200) #define FLEXCAN_RXIMR12_MI10 (0x00000400) #define FLEXCAN_RXIMR12_MI11 (0x00000800) #define FLEXCAN_RXIMR12_MI12 (0x00001000) #define FLEXCAN_RXIMR12_MI13 (0x00002000) #define FLEXCAN_RXIMR12_MI14 (0x00004000) #define FLEXCAN_RXIMR12_MI15 (0x00008000) #define FLEXCAN_RXIMR12_MI16 (0x00010000) #define FLEXCAN_RXIMR12_MI17 (0x00020000) #define FLEXCAN_RXIMR12_MI18 (0x00040000) #define FLEXCAN_RXIMR12_MI19 (0x00080000) #define FLEXCAN_RXIMR12_MI20 (0x00100000) #define FLEXCAN_RXIMR12_MI21 (0x00200000) #define FLEXCAN_RXIMR12_MI22 (0x00400000) #define FLEXCAN_RXIMR12_MI23 (0x00800000) #define FLEXCAN_RXIMR12_MI24 (0x01000000) #define FLEXCAN_RXIMR12_MI25 (0x02000000) #define FLEXCAN_RXIMR12_MI26 (0x04000000) #define FLEXCAN_RXIMR12_MI27 (0x08000000) #define FLEXCAN_RXIMR12_MI28 (0x10000000) #define FLEXCAN_RXIMR12_MI29 (0x20000000) #define FLEXCAN_RXIMR12_MI30 (0x40000000) #define FLEXCAN_RXIMR12_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR13 */ #define FLEXCAN_RXIMR13_MI0 (0x00000001) #define FLEXCAN_RXIMR13_MI1 (0x00000002) #define FLEXCAN_RXIMR13_MI2 (0x00000004) #define FLEXCAN_RXIMR13_MI3 (0x00000008) #define FLEXCAN_RXIMR13_MI4 (0x00000010) #define FLEXCAN_RXIMR13_MI5 (0x00000020) #define FLEXCAN_RXIMR13_MI6 (0x00000040) #define FLEXCAN_RXIMR13_MI7 (0x00000080) #define FLEXCAN_RXIMR13_MI8 (0x00000100) #define FLEXCAN_RXIMR13_MI9 (0x00000200) #define FLEXCAN_RXIMR13_MI10 (0x00000400) #define FLEXCAN_RXIMR13_MI11 (0x00000800) #define FLEXCAN_RXIMR13_MI12 (0x00001000) #define FLEXCAN_RXIMR13_MI13 (0x00002000) #define FLEXCAN_RXIMR13_MI14 (0x00004000) #define FLEXCAN_RXIMR13_MI15 (0x00008000) #define FLEXCAN_RXIMR13_MI16 (0x00010000) #define FLEXCAN_RXIMR13_MI17 (0x00020000) #define FLEXCAN_RXIMR13_MI18 (0x00040000) #define FLEXCAN_RXIMR13_MI19 (0x00080000) #define FLEXCAN_RXIMR13_MI20 (0x00100000) #define FLEXCAN_RXIMR13_MI21 (0x00200000) #define FLEXCAN_RXIMR13_MI22 (0x00400000) #define FLEXCAN_RXIMR13_MI23 (0x00800000) #define FLEXCAN_RXIMR13_MI24 (0x01000000) #define FLEXCAN_RXIMR13_MI25 (0x02000000) #define FLEXCAN_RXIMR13_MI26 (0x04000000) #define FLEXCAN_RXIMR13_MI27 (0x08000000) #define FLEXCAN_RXIMR13_MI28 (0x10000000) #define FLEXCAN_RXIMR13_MI29 (0x20000000) #define FLEXCAN_RXIMR13_MI30 (0x40000000) #define FLEXCAN_RXIMR13_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR14 */ #define FLEXCAN_RXIMR14_MI0 (0x00000001) #define FLEXCAN_RXIMR14_MI1 (0x00000002) #define FLEXCAN_RXIMR14_MI2 (0x00000004) #define FLEXCAN_RXIMR14_MI3 (0x00000008) #define FLEXCAN_RXIMR14_MI4 (0x00000010) #define FLEXCAN_RXIMR14_MI5 (0x00000020) #define FLEXCAN_RXIMR14_MI6 (0x00000040) #define FLEXCAN_RXIMR14_MI7 (0x00000080) #define FLEXCAN_RXIMR14_MI8 (0x00000100) #define FLEXCAN_RXIMR14_MI9 (0x00000200) #define FLEXCAN_RXIMR14_MI10 (0x00000400) #define FLEXCAN_RXIMR14_MI11 (0x00000800) #define FLEXCAN_RXIMR14_MI12 (0x00001000) #define FLEXCAN_RXIMR14_MI13 (0x00002000) #define FLEXCAN_RXIMR14_MI14 (0x00004000) #define FLEXCAN_RXIMR14_MI15 (0x00008000) #define FLEXCAN_RXIMR14_MI16 (0x00010000) #define FLEXCAN_RXIMR14_MI17 (0x00020000) #define FLEXCAN_RXIMR14_MI18 (0x00040000) #define FLEXCAN_RXIMR14_MI19 (0x00080000) #define FLEXCAN_RXIMR14_MI20 (0x00100000) #define FLEXCAN_RXIMR14_MI21 (0x00200000) #define FLEXCAN_RXIMR14_MI22 (0x00400000) #define FLEXCAN_RXIMR14_MI23 (0x00800000) #define FLEXCAN_RXIMR14_MI24 (0x01000000) #define FLEXCAN_RXIMR14_MI25 (0x02000000) #define FLEXCAN_RXIMR14_MI26 (0x04000000) #define FLEXCAN_RXIMR14_MI27 (0x08000000) #define FLEXCAN_RXIMR14_MI28 (0x10000000) #define FLEXCAN_RXIMR14_MI29 (0x20000000) #define FLEXCAN_RXIMR14_MI30 (0x40000000) #define FLEXCAN_RXIMR14_MI31 (0x80000000) /* Bit definitions and macros for FLEXCAN_RXIMR15 */ #define FLEXCAN_RXIMR15_MI0 (0x00000001) #define FLEXCAN_RXIMR15_MI1 (0x00000002) #define FLEXCAN_RXIMR15_MI2 (0x00000004) #define FLEXCAN_RXIMR15_MI3 (0x00000008) #define FLEXCAN_RXIMR15_MI4 (0x00000010) #define FLEXCAN_RXIMR15_MI5 (0x00000020) #define FLEXCAN_RXIMR15_MI6 (0x00000040) #define FLEXCAN_RXIMR15_MI7 (0x00000080) #define FLEXCAN_RXIMR15_MI8 (0x00000100) #define FLEXCAN_RXIMR15_MI9 (0x00000200) #define FLEXCAN_RXIMR15_MI10 (0x00000400) #define FLEXCAN_RXIMR15_MI11 (0x00000800) #define FLEXCAN_RXIMR15_MI12 (0x00001000) #define FLEXCAN_RXIMR15_MI13 (0x00002000) #define FLEXCAN_RXIMR15_MI14 (0x00004000) #define FLEXCAN_RXIMR15_MI15 (0x00008000) #define FLEXCAN_RXIMR15_MI16 (0x00010000) #define FLEXCAN_RXIMR15_MI17 (0x00020000) #define FLEXCAN_RXIMR15_MI18 (0x00040000) #define FLEXCAN_RXIMR15_MI19 (0x00080000) #define FLEXCAN_RXIMR15_MI20 (0x00100000) #define FLEXCAN_RXIMR15_MI21 (0x00200000) #define FLEXCAN_RXIMR15_MI22 (0x00400000) #define FLEXCAN_RXIMR15_MI23 (0x00800000) #define FLEXCAN_RXIMR15_MI24 (0x01000000) #define FLEXCAN_RXIMR15_MI25 (0x02000000) #define FLEXCAN_RXIMR15_MI26 (0x04000000) #define FLEXCAN_RXIMR15_MI27 (0x08000000) #define FLEXCAN_RXIMR15_MI28 (0x10000000) #define FLEXCAN_RXIMR15_MI29 (0x20000000) #define FLEXCAN_RXIMR15_MI30 (0x40000000) #define FLEXCAN_RXIMR15_MI31 (0x80000000) /* Bit definitions for CRC register */ #define FLEXCAN_CRCR_MBCRC_BIT_NO (16) #define FLEXCAN_CRCR_MBCRC_MASK (0x007F0000) #define FLEXCAN_CRCR_CRC_BIT_NO (0) #define FLEXCAN_CRCR_CRC_MASK (0x00007FFF) /* Bit definition for Individual Matching Elements Update Register (IMEUR) */ #define FLEXCAN_IMEUR_IMEUP_MASK (0x0000007F) #define FLEXCAN_IMEUR_IMEUP_BIT_NO (0) #define FLEXCAN_IMEUR_IMEUREQ_MASK (0x00000100) #define FLEXCAN_IMEUR_IMEUACK_MASK (0x00000200) #define FLEXCAN_Set_IMEUP(imeur,imeup) imeur = (imeur & ~(FLEXCAN_IMEUR_IMEUP_MASK)) | (imeup & FLEXCAN_IMEUR_IMEUP_MASK) #define FLEXCAN_Get_IMEUP(imeur) (imeur & FLEXCAN_IMEUR_IMEUP_MASK) /* Bit definition for Lost Rx Frames Register (LRFR) */ #define FLEXCAN_LRFR_LOSTRLP_MASK (0x007F0000) #define FLEXCAN_LRFR_LFIFOMTC_MASK (0x00008000) #define FLEXCAN_LRFR_LOSTRMP_MASK (0x000001FF) #define FLEXCAN_LRFR_LOSTRLP_BIT_NO (16) #define FLEXCAN_LRFR_LFIFOMTC_BIT_NO (15) #define FLEXCAN_LRFR_LOSTRMP_BIT_NO (0) #define FLEXCAN_Get_LostMBLocked(lrfr) ((lrfr & FLEXCAN_LRFR_LOSTRLP_MASK)>>(FLEXCAN_LRFR_LOSTRLP_BIT_NO)) #define FLEXCAN_Get_LostMBUpdated(lrfr) ((lrfr & FLEXCAN_LRFR_LOSTRMP_MASK)) /* Bit definition for Memory Error Control Register */ #define FLEXCAN_MECR_NCEFAFRZ_MASK (0x00000080) #define FLEXCAN_MECR_RERRDIS_MASK (0x00000100) #define FLEXCAN_MECR_EXTERRIE_MAKS (0x00002000) #define FLEXCAN_MECR_FAERRIE_MAKS (0x00004000) #define FLEXCAN_MECR_HAERRIE_MAKS (0x00008000) #define FLEXCAN_MECR_CEI_MSK_MAKS (0x00010000) #define FLEXCAN_MECR_FANCEI_MSK_MAKS (0x00040000) #define FLEXCAN_MECR_HANCEI_MSK_MAKS (0x00080000) #define FLEXCAN_MECR_ECRWRDIS_MSK_MAKS (0x80000000) /* Bit definition for Error Report Address Register (RERRAR) */ #define FLEXCAN_RERRAR_NCE_MASK (0x01000000) #define FLEXCAN_RERRAR_SAID_MASK (0x00070000) #define FLEXCAN_ERRADDR_MASK (0x00003FFF) /* Bit definition for Error Report Syndrome Register (RERRSYNR) */ #define FLEXCAN_RERRSYNR_BE3_MASK (0x80000000) #define FLEXCAN_RERRSYNR_SYND3_MASK (0x1F000000) #define FLEXCAN_RERRSYNR_SYND3_BIT_NO (24) #define FLEXCAN_RERRSYNR_BE2_MASK (0x00800000) #define FLEXCAN_RERRSYNR_SYND2_MASK (0x001F0000) #define FLEXCAN_RERRSYNR_SYND2_BIT_NO (16) #define FLEXCAN_RERRSYNR_BE1_MASK (0x00008000) #define FLEXCAN_RERRSYNR_SYND1_MASK (0x00001F00) #define FLEXCAN_RERRSYNR_SYND1_BIT_NO (8) #define FLEXCAN_RERRSYNR_BE0_MASK (0x00000080) #define FLEXCAN_RERRSYNR_SYND0_MASK (0x0000001F) #define FLEXCAN_RERRSYNR_SYND0_BIT_NO (0) #define FLEXCAN_RERRSYNR_check_BEn_Bit(errsynr,n) (errsynr & FLEXCAN_RERRSYNR_BE##n##_MASK) #define FLEXCAN_RERRSYNR_get_SYNDn(errsynr,n) (errsynr & FLEXCAN_RERRSYNR_SYND##n##_MASK) #define FLEXCAN_RERRSYNR_check_SYNDn_Bit(errsynr,n) ((errsynr & FLEXCAN_RERRSYNR_SYND##n##_MASK)>>FLEXCAN_RERRSYNR_SYND##n##_BIT_NO) /* Bit definition for Error Status Register (ERRSR) */ #define FLEXCAN_ERRSR_CEIOF_MASK (0x00000001) #define FLEXCAN_ERRSR_FANCEIOF_MASK (0x00000004) #define FLEXCAN_ERRSR_HANCEIOF_MASK (0x00000008) #define FLEXCAN_ERRSR_CEIF_MASK (0x00010000) #define FLEXCAN_ERRSR_FANCEIF_MASK (0x00040000) #define FLEXCAN_ERRSR_HANCEIF_MASK (0x00080000) /********************************************************************/ #endif // __KINETIS_FLEXCAN_H