23 #ifndef CANDEV_LINUX_H
24 #define CANDEV_LINUX_H
30 #if defined(__linux__) || defined(DOXYGEN)
41 # define CAN_MAX_SIZE_INTERFACE_NAME (5)
52 # define HAVE_CAN_CONF_T
54 # if !defined(CANDEV_LINUX_MAX_FILTERS_RX) || defined(DOXYGEN)
56 # define CANDEV_LINUX_MAX_FILTERS_RX (16)
59 # if !defined(CANDEV_LINUX_DEFAULT_BITRATE) || defined(DOXYGEN)
61 # define CANDEV_LINUX_DEFAULT_BITRATE (500000)
64 # if !defined(CANDEV_LINUX_DEFAULT_SPT) || defined(DOXYGEN)
66 # define CANDEV_LINUX_DEFAULT_SPT (875)
Definitions for low-level CAN driver interface.
#define CAN_MAX_SIZE_INTERFACE_NAME
Maximum size of an interface name.
struct candev_conf can_conf_t
Linux candev configuration.
struct candev_linux can_t
The candev_linux struct.
#define CANDEV_LINUX_MAX_FILTERS_RX
Max number of rx filters which can be set.
Mutex for thread synchronization.
ESP CAN device configuration.
Controller Area Network filter.
Linux candev configuration.
char interface_name[CAN_MAX_SIZE_INTERFACE_NAME+1]
local interface name
const can_conf_t * conf
device configuration
candev_t candev
candev base structure
struct can_filter filters[CANDEV_LINUX_MAX_FILTERS_RX]
filter list
Structure to hold driver state.
Definitions of CAN device interface.
#define CAN_DLL_NUMOF
Maximum number of interfaces which can be registered on DLL.