Loading...
Searching...
No Matches

Implementation of simulated CAN controller driver using SocketCAN on Linux. More...

Detailed Description

Implementation of simulated CAN controller driver using SocketCAN on Linux.

Files

file  can_params.h
 Default linux can config.
 
file  candev_linux.h
 Implementation of simulated CAN controller driver using SocketCAN on Linux.
 

Data Structures

struct  candev_conf
 Linux candev configuration. More...
 
struct  candev_linux
 The candev_linux struct. More...
 

Macros

#define CAN_MAX_SIZE_INTERFACE_NAME   (5)
 Maximum size of an interface name.
 
#define HAVE_CAN_CONF_T
 CAN device configuration type can_conf_t is redefined by native CAN.
 
#define CANDEV_LINUX_MAX_FILTERS_RX   (16)
 Max number of rx filters which can be set.
 
#define CANDEV_LINUX_DEFAULT_BITRATE   (500000)
 Default bitrate setup.
 
#define CANDEV_LINUX_DEFAULT_SPT   (875)
 Default sampling point setup.
 
#define HAVE_CAN_T
 CAN device type can_t is redefined by native CAN.
 

Typedefs

typedef struct candev_conf can_conf_t
 Linux candev configuration.
 
typedef struct candev_linux can_t
 The candev_linux struct.
 

Variables

can_conf_t candev_conf [CAN_DLL_NUMOF]
 Array containing socketCAN device names.
 

Macro Definition Documentation

◆ CAN_MAX_SIZE_INTERFACE_NAME

#define CAN_MAX_SIZE_INTERFACE_NAME   (5)

Maximum size of an interface name.

Definition at line 41 of file candev_linux.h.

◆ CANDEV_LINUX_DEFAULT_BITRATE

#define CANDEV_LINUX_DEFAULT_BITRATE   (500000)

Default bitrate setup.

Definition at line 65 of file candev_linux.h.

◆ CANDEV_LINUX_DEFAULT_SPT

#define CANDEV_LINUX_DEFAULT_SPT   (875)

Default sampling point setup.

Definition at line 72 of file candev_linux.h.

◆ CANDEV_LINUX_MAX_FILTERS_RX

#define CANDEV_LINUX_MAX_FILTERS_RX   (16)

Max number of rx filters which can be set.

Definition at line 58 of file candev_linux.h.

◆ HAVE_CAN_CONF_T

#define HAVE_CAN_CONF_T

CAN device configuration type can_conf_t is redefined by native CAN.

Definition at line 52 of file candev_linux.h.

◆ HAVE_CAN_T

#define HAVE_CAN_T

CAN device type can_t is redefined by native CAN.

Definition at line 87 of file candev_linux.h.