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  candev_linux.h
 Implementation of simulated CAN controller driver using SocketCAN on Linux.
 
file  candev_linux_params.h
 Default linux can config.
 

Data Structures

struct  candev_linux_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 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.
 

Typedefs

typedef struct candev_linux_conf candev_linux_conf_t
 Linux candev configuration.
 
typedef struct candev_linux candev_linux_t
 The candev_linux struct.
 

Functions

int candev_linux_init (candev_linux_t *dev, const candev_linux_conf_t *conf)
 Device specific initialization function. More...
 

Variables

candev_linux_conf_t candev_linux_conf [CAN_DLL_NUMOF]
 Array containing socketCAN device names.
 

Function Documentation

◆ candev_linux_init()

int candev_linux_init ( candev_linux_t dev,
const candev_linux_conf_t conf 
)

Device specific initialization function.

Parameters
[in,out]devthe device to initialize
[in]confthe device configuration
Returns
0 on success