29 #define MSCAN_A_DEV_NAME "/dev/mscana" 30 #define MSCAN_B_DEV_NAME "/dev/mscanb" 31 #define MSCAN_0_DEV_NAME "/dev/mscan0" 32 #define MSCAN_1_DEV_NAME "/dev/mscan1" 36 #define MSCAN_MAX_DATA_BYTES 8 38 #define MSCAN_MESS_ID_RTR (1 << 15) 39 #define MSCAN_MESS_ID_RTR_MASK (1 << 15) 40 #define MSCAN_MESS_ID_ID_MASK ((1 << 11)-1) 41 #define MSCAN_MESS_ID_HAS_RTR(id) (((id)&MSCAN_MESS_ID_RTR_MASK)==MSCAN_MESS_ID_RTR) 43 #define MSCAN_SET_RX_ID 1 44 #define MSCAN_GET_RX_ID 2 45 #define MSCAN_SET_RX_ID_MASK 3 46 #define MSCAN_GET_RX_ID_MASK 4 47 #define MSCAN_SET_TX_ID 5 48 #define MSCAN_GET_TX_ID 6 49 #define TOUCAN_MSCAN_INIT 7 50 #define MSCAN_SET_BAUDRATE 8 51 #define SET_TX_BUF_NO 9 57 uint16_t mess_time_stamp;
58 uint8_t mess_data[MSCAN_MAX_DATA_BYTES];
61 uint32_t toucan_tx_idx;
80 uint32_t ctrl_id_mask;
82 uint8_t ctrl_tx_buf_no;
83 uint32_t ctrl_can_bitrate;
84 void (*toucan_cb_fnc)(int16_t);
89 rtems_device_minor_number,
94 rtems_device_minor_number,
99 rtems_device_minor_number,
104 rtems_device_minor_number,
109 rtems_device_minor_number,
114 rtems_device_minor_number,
119 #define MSCAN_DRIVER_TABLE_ENTRY \ 120 { mscan_initialize, mscan_open, mscan_close, \ 121 mscan_read, mscan_write, mscan_control }
rtems_status_code
Classic API Status.
Definition: status.h:43
A CAN message represented of both forms.
Definition: can.h:66