CANDEV_INIT
Initialized CAN device structure
Synopsis:
#include <hw/libcan.h>
typedef struct can_dev_init_entry
{
CANDEV_TYPE devtype;
int can_unit;
int dev_unit;
uint32_t msgq_size;
uint32_t waitq_size;
CANDEV_MODE mode;
} CANDEV_INIT;Description:
The CANDEV_INIT structure represents the initialized CAN device.
The members include:
- devtype
The CAN device type; either CANDEV_TYPE_RX or CANDEV_TYPE_TX.
- can_unit
The CAN unit number. Corresponds to the X in the /dev/canX/rxY path.
- dev_unit
The device unit number. Corresponds to the Y in the /dev/canX/rxY path.
- msgq_size
The maximum number of messages in the device's message queue. Once the message queue is full, the device starts dropping messages.
- waitq_size
The maximum number of clients that can be blocked waiting for a frame.
- mode
The CAN driver mode; either CANDEV_MODE_IO or CANDEV_MODE_RAW_FRAME.
Page updated:
