candev_linux.h File Reference

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

Detailed Description

Implementation of simulated CAN controller driver using SocketCAN on Linux.

Author
Hermann Lelong herma.nosp@m.nn@o.nosp@m.takey.nosp@m.s.co.nosp@m.m
Aurelien Gonce aurel.nosp@m.ien..nosp@m.gonce.nosp@m.@alt.nosp@m.ran.c.nosp@m.om
Vincent Dupont vince.nosp@m.nt@o.nosp@m.takey.nosp@m.s.co.nosp@m.m

Definition in file candev_linux.h.

#include <stdbool.h>
#include "can/candev.h"
#include "mutex.h"
+ Include dependency graph for candev_linux.h:

Go to the source code of this file.

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.