4 #define LIN_ID_MASK 0x3f
5 #define LIN_ID_MAX LIN_ID_MASK
6 #define LIN_CTRL_FRAME CAN_EFF_FLAG
8 #define LIN_DEFAULT_BAUDRATE 19200
10 #define LIN_CANFR_FLAGS_OFFS 6 /* Lower 6 bits in can_id correspond to LIN ID */
12 #define LIN_CACHE_RESPONSE (1 << (LIN_CANFR_FLAGS_OFFS))
13 #define LIN_CHECKSUM_EXTENDED (1 << (LIN_CANFR_FLAGS_OFFS + 1))
17 #define LIN_ERR_RX_TIMEOUT (1 << (LIN_CANFR_FLAGS_OFFS + 8))
18 #define LIN_ERR_CHECKSUM (1 << (LIN_CANFR_FLAGS_OFFS + 9))
19 #define LIN_ERR_FRAMING (1 << (LIN_CANFR_FLAGS_OFFS + 10))
21 #endif /* _LIN_BUS_H_ */