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:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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.