41#define MSCAN_A_DEV_NAME "/dev/mscana"
42#define MSCAN_B_DEV_NAME "/dev/mscanb"
43#define MSCAN_0_DEV_NAME "/dev/mscan0"
44#define MSCAN_1_DEV_NAME "/dev/mscan1"
48#define MSCAN_MAX_DATA_BYTES 8
50#define MSCAN_MESS_ID_RTR (1 << 15)
51#define MSCAN_MESS_ID_RTR_MASK (1 << 15)
52#define MSCAN_MESS_ID_ID_MASK ((1 << 11)-1)
53#define MSCAN_MESS_ID_HAS_RTR(id) (((id)&MSCAN_MESS_ID_RTR_MASK)==MSCAN_MESS_ID_RTR)
55#define MSCAN_SET_RX_ID 1
56#define MSCAN_GET_RX_ID 2
57#define MSCAN_SET_RX_ID_MASK 3
58#define MSCAN_GET_RX_ID_MASK 4
59#define MSCAN_SET_TX_ID 5
60#define MSCAN_GET_TX_ID 6
61#define TOUCAN_MSCAN_INIT 7
62#define MSCAN_SET_BAUDRATE 8
63#define SET_TX_BUF_NO 9
69 uint16_t mess_time_stamp;
70 uint8_t mess_data[MSCAN_MAX_DATA_BYTES];
73 uint32_t toucan_tx_idx;
92 uint32_t ctrl_id_mask;
94 uint8_t ctrl_tx_buf_no;
95 uint32_t ctrl_can_bitrate;
96 void (*toucan_cb_fnc)(int16_t);
131#define MSCAN_DRIVER_TABLE_ENTRY \
132 { mscan_initialize, mscan_open, mscan_close, \
133 mscan_read, mscan_write, mscan_control }
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition: io.h:103
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
A CAN message represented of both forms.
Definition: can.h:66