Classes | Defines | Typedefs | Functions | Variables
can_drv.h File Reference
#include "can_types.h"
#include "can_drv_ex.h"
Include dependency graph for can_drv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TDeviceStatus

Defines

#define CAN_100K_BIT   100
#define CAN_10K_BIT   10
#define CAN_125K_BIT   125
#define CAN_1M_BIT   1000
#define CAN_20K_BIT   20
#define CAN_250K_BIT   250
#define CAN_500K_BIT   500
#define CAN_50K_BIT   50
#define CAN_800K_BIT   800
#define CAN_CMD_ALL_CLEAR   0x0FFF
#define CAN_CMD_HW_FILTER_CLEAR   0x0010
#define CAN_CMD_NONE   0x0000
#define CAN_CMD_RXD_FIFOS_CLEAR   0x0002
#define CAN_CMD_RXD_OVERRUN_CLEAR   0x0001
#define CAN_CMD_SW_FILTER_CLEAR   0x0020
#define CAN_CMD_TXD_FIFOS_CLEAR   0x0008
#define CAN_CMD_TXD_OVERRUN_CLEAR   0x0004
#define CAN_CMD_TXD_PUFFERS_CLEAR   0x0040
#define CAN_STATUS_BUS_OFF   4
#define CAN_STATUS_ERROR   1
#define CAN_STATUS_OK   0
#define CAN_STATUS_PASSIV   3
#define CAN_STATUS_UNBEKANNT   5
#define CAN_STATUS_WARNING   2
#define DRV_CALLBACK_TYPE
#define DRV_NOT_LOAD   0
#define DRV_STATUS_CAN_OPEN   6
#define DRV_STATUS_CAN_RUN   8
#define DRV_STATUS_CAN_RUN_TX   7
#define DRV_STATUS_DEVICE_FOUND   5
#define DRV_STATUS_INIT   2
#define DRV_STATUS_NOT_INIT   1
#define DRV_STATUS_PORT_NOT_OPEN   3
#define DRV_STATUS_PORT_OPEN   4
#define EVENT_DISABLE_ALL   0xFF00
#define EVENT_DISABLE_PNP_CHANGE   0x0100
#define EVENT_DISABLE_RX_FILTER_MESSAGES   0x0400
#define EVENT_DISABLE_RX_MESSAGES   0x0800
#define EVENT_DISABLE_STATUS_CHANGE   0x0200
#define EVENT_ENABLE_ALL   0x00FF
#define EVENT_ENABLE_PNP_CHANGE   0x0001
#define EVENT_ENABLE_RX_FILTER_MESSAGES   0x0004
#define EVENT_ENABLE_RX_MESSAGES   0x0008
#define EVENT_ENABLE_STATUS_CHANGE   0x0002
#define FIFO_HW_OVERRUN   1
#define FIFO_HW_SW_OVERRUN   3
#define FIFO_OK   0
#define FIFO_STATUS_UNBEKANNT   4
#define FIFO_SW_OVERRUN   2
#define OP_CAN_NO_CHANGE   0
#define OP_CAN_RESET   3
#define OP_CAN_START   1
#define OP_CAN_START_LOM   4
#define OP_CAN_START_NO_RETRANS   5
#define OP_CAN_STOP   2
#define TIME_STAMP_HW   3
#define TIME_STAMP_HW_SW_UNIX   4
#define TIME_STAMP_HW_UNIX   2
#define TIME_STAMP_OFF   0
#define TIME_STAMP_SOFT   1

Typedefs

typedef int32_t(DRV_CALLBACK_TYPETCanDeviceClose )(uint32_t index)
typedef int32_t(DRV_CALLBACK_TYPETCanDeviceOpen )(uint32_t index, char *parameter)
typedef void(DRV_CALLBACK_TYPETCanDownDriver )(void)
typedef char *(DRV_CALLBACK_TYPETCanDrvHwInfo )(uint32_t index)
typedef char *(DRV_CALLBACK_TYPETCanDrvInfo )(void)
typedef uint32_t(DRV_CALLBACK_TYPETCanEventStatus )(void)
typedef int32_t(DRV_CALLBACK_TYPETCanGetDeviceStatus )(uint32_t index, struct TDeviceStatus *status)
typedef int32_t(DRV_CALLBACK_TYPETCanInitDriver )(char *options)
typedef int32_t(DRV_CALLBACK_TYPETCanReceive )(uint32_t index, struct TCanMsg *msg, int32_t count)
typedef void(DRV_CALLBACK_TYPETCanReceiveClear )(uint32_t index)
typedef uint32_t(DRV_CALLBACK_TYPETCanReceiveGetCount )(uint32_t index)
typedef void(DRV_CALLBACK_TYPETCanSetEvents )(uint16_t events)
typedef int32_t(DRV_CALLBACK_TYPETCanSetFilter )(uint32_t index, struct TMsgFilter *msg_filter)
typedef int32_t(DRV_CALLBACK_TYPETCanSetMode )(uint32_t index, unsigned char can_op_mode, uint16_t can_command)
typedef int32_t(DRV_CALLBACK_TYPETCanSetOptions )(char *options)
typedef void(DRV_CALLBACK_TYPETCanSetPnPEventCallback )(void(DRV_CALLBACK_TYPE *event)(uint32_t index, int32_t status))
typedef void(DRV_CALLBACK_TYPETCanSetRxEventCallback )(void(DRV_CALLBACK_TYPE *event)(uint32_t index, struct TCanMsg *msg, int32_t count))
typedef int32_t(DRV_CALLBACK_TYPETCanSetSpeed )(uint32_t index, uint16_t speed)
typedef int32_t(DRV_CALLBACK_TYPETCanSetSpeedUser )(uint32_t index, uint32_t value)
typedef void(DRV_CALLBACK_TYPETCanSetStatusEventCallback )(void(DRV_CALLBACK_TYPE *event)(uint32_t index, struct TDeviceStatus *device_status))
typedef int32_t(DRV_CALLBACK_TYPETCanTransmit )(uint32_t index, struct TCanMsg *msg, int32_t count)
typedef void(DRV_CALLBACK_TYPETCanTransmitClear )(uint32_t index)
typedef uint32_t(DRV_CALLBACK_TYPETCanTransmitGetCount )(uint32_t index)
typedef int32_t(DRV_CALLBACK_TYPETCanTransmitSet )(uint32_t index, uint16_t cmd, uint32_t time)

Functions

int32_t LoadDriver (const char *file_name)
void UnloadDriver (void)

Variables

TCanDeviceClose CanDeviceClose
TCanDeviceOpen CanDeviceOpen
TCanDownDriver CanDownDriver
TCanDrvHwInfo CanDrvHwInfo
TCanDrvInfo CanDrvInfo
TCanEventStatus CanEventStatus
TCanGetDeviceStatus CanGetDeviceStatus
TCanInitDriver CanInitDriver
TCanReceive CanReceive
TCanReceiveClear CanReceiveClear
TCanReceiveGetCount CanReceiveGetCount
TCanSetEvents CanSetEvents
TCanSetFilter CanSetFilter
TCanSetMode CanSetMode
TCanSetOptions CanSetOptions
TCanSetPnPEventCallback CanSetPnPEventCallback
TCanSetRxEventCallback CanSetRxEventCallback
TCanSetSpeed CanSetSpeed
TCanSetSpeedUser CanSetSpeedUser
TCanSetStatusEventCallback CanSetStatusEventCallback
TCanTransmit CanTransmit
TCanTransmitClear CanTransmitClear
TCanTransmitGetCount CanTransmitGetCount
TCanTransmitSet CanTransmitSet

Define Documentation

#define CAN_100K_BIT   100

Definition at line 27 of file can_drv.h.

#define CAN_10K_BIT   10

Definition at line 24 of file can_drv.h.

#define CAN_125K_BIT   125

Definition at line 28 of file can_drv.h.

#define CAN_1M_BIT   1000

Definition at line 32 of file can_drv.h.

#define CAN_20K_BIT   20

Definition at line 25 of file can_drv.h.

#define CAN_250K_BIT   250

Definition at line 29 of file can_drv.h.

#define CAN_500K_BIT   500

Definition at line 30 of file can_drv.h.

#define CAN_50K_BIT   50

Definition at line 26 of file can_drv.h.

#define CAN_800K_BIT   800

Definition at line 31 of file can_drv.h.

#define CAN_CMD_ALL_CLEAR   0x0FFF

Definition at line 60 of file can_drv.h.

#define CAN_CMD_HW_FILTER_CLEAR   0x0010

Definition at line 56 of file can_drv.h.

#define CAN_CMD_NONE   0x0000

Definition at line 51 of file can_drv.h.

#define CAN_CMD_RXD_FIFOS_CLEAR   0x0002

Definition at line 53 of file can_drv.h.

#define CAN_CMD_RXD_OVERRUN_CLEAR   0x0001

Definition at line 52 of file can_drv.h.

#define CAN_CMD_SW_FILTER_CLEAR   0x0020

Definition at line 57 of file can_drv.h.

#define CAN_CMD_TXD_FIFOS_CLEAR   0x0008

Definition at line 55 of file can_drv.h.

#define CAN_CMD_TXD_OVERRUN_CLEAR   0x0004

Definition at line 54 of file can_drv.h.

#define CAN_CMD_TXD_PUFFERS_CLEAR   0x0040

Definition at line 58 of file can_drv.h.

#define CAN_STATUS_BUS_OFF   4

Definition at line 79 of file can_drv.h.

#define CAN_STATUS_ERROR   1

Definition at line 76 of file can_drv.h.

#define CAN_STATUS_OK   0

Definition at line 75 of file can_drv.h.

#define CAN_STATUS_PASSIV   3

Definition at line 78 of file can_drv.h.

#define CAN_STATUS_UNBEKANNT   5

Definition at line 80 of file can_drv.h.

#define CAN_STATUS_WARNING   2

Definition at line 77 of file can_drv.h.

Definition at line 12 of file can_drv.h.

#define DRV_NOT_LOAD   0

Definition at line 64 of file can_drv.h.

#define DRV_STATUS_CAN_OPEN   6

Definition at line 70 of file can_drv.h.

#define DRV_STATUS_CAN_RUN   8

Definition at line 72 of file can_drv.h.

#define DRV_STATUS_CAN_RUN_TX   7

Definition at line 71 of file can_drv.h.

#define DRV_STATUS_DEVICE_FOUND   5

Definition at line 69 of file can_drv.h.

#define DRV_STATUS_INIT   2

Definition at line 66 of file can_drv.h.

#define DRV_STATUS_NOT_INIT   1

Definition at line 65 of file can_drv.h.

#define DRV_STATUS_PORT_NOT_OPEN   3

Definition at line 67 of file can_drv.h.

#define DRV_STATUS_PORT_OPEN   4

Definition at line 68 of file can_drv.h.

#define EVENT_DISABLE_ALL   0xFF00

Definition at line 100 of file can_drv.h.

#define EVENT_DISABLE_PNP_CHANGE   0x0100

Definition at line 96 of file can_drv.h.

#define EVENT_DISABLE_RX_FILTER_MESSAGES   0x0400

Definition at line 98 of file can_drv.h.

#define EVENT_DISABLE_RX_MESSAGES   0x0800

Definition at line 99 of file can_drv.h.

#define EVENT_DISABLE_STATUS_CHANGE   0x0200

Definition at line 97 of file can_drv.h.

#define EVENT_ENABLE_ALL   0x00FF

Definition at line 94 of file can_drv.h.

#define EVENT_ENABLE_PNP_CHANGE   0x0001

Definition at line 90 of file can_drv.h.

#define EVENT_ENABLE_RX_FILTER_MESSAGES   0x0004

Definition at line 92 of file can_drv.h.

#define EVENT_ENABLE_RX_MESSAGES   0x0008

Definition at line 93 of file can_drv.h.

#define EVENT_ENABLE_STATUS_CHANGE   0x0002

Definition at line 91 of file can_drv.h.

#define FIFO_HW_OVERRUN   1

Definition at line 84 of file can_drv.h.

#define FIFO_HW_SW_OVERRUN   3

Definition at line 86 of file can_drv.h.

#define FIFO_OK   0

Definition at line 83 of file can_drv.h.

#define FIFO_STATUS_UNBEKANNT   4

Definition at line 87 of file can_drv.h.

#define FIFO_SW_OVERRUN   2

Definition at line 85 of file can_drv.h.

#define OP_CAN_NO_CHANGE   0

Definition at line 44 of file can_drv.h.

#define OP_CAN_RESET   3

Definition at line 47 of file can_drv.h.

#define OP_CAN_START   1

Definition at line 45 of file can_drv.h.

#define OP_CAN_START_LOM   4

Definition at line 48 of file can_drv.h.

#define OP_CAN_START_NO_RETRANS   5

Definition at line 49 of file can_drv.h.

#define OP_CAN_STOP   2

Definition at line 46 of file can_drv.h.

#define TIME_STAMP_HW   3

Definition at line 38 of file can_drv.h.

#define TIME_STAMP_HW_SW_UNIX   4

Definition at line 39 of file can_drv.h.

#define TIME_STAMP_HW_UNIX   2

Definition at line 37 of file can_drv.h.

#define TIME_STAMP_OFF   0

Definition at line 35 of file can_drv.h.

#define TIME_STAMP_SOFT   1

Definition at line 36 of file can_drv.h.


Typedef Documentation

typedef int32_t(DRV_CALLBACK_TYPE * TCanDeviceClose)(uint32_t index)

Definition at line 163 of file can_drv.h.

typedef int32_t(DRV_CALLBACK_TYPE * TCanDeviceOpen)(uint32_t index, char *parameter)

Definition at line 162 of file can_drv.h.

typedef void(DRV_CALLBACK_TYPE * TCanDownDriver)(void)

Definition at line 160 of file can_drv.h.

typedef char*(DRV_CALLBACK_TYPE * TCanDrvHwInfo)(uint32_t index)

Definition at line 180 of file can_drv.h.

typedef char*(DRV_CALLBACK_TYPE * TCanDrvInfo)(void)

Definition at line 179 of file can_drv.h.

typedef uint32_t(DRV_CALLBACK_TYPE * TCanEventStatus)(void)

Definition at line 193 of file can_drv.h.

typedef int32_t(DRV_CALLBACK_TYPE * TCanGetDeviceStatus)(uint32_t index, struct TDeviceStatus *status)

Definition at line 183 of file can_drv.h.

typedef int32_t(DRV_CALLBACK_TYPE * TCanInitDriver)(char *options)

Definition at line 159 of file can_drv.h.

typedef int32_t(DRV_CALLBACK_TYPE * TCanReceive)(uint32_t index, struct TCanMsg *msg, int32_t count)

Definition at line 173 of file can_drv.h.

typedef void(DRV_CALLBACK_TYPE * TCanReceiveClear)(uint32_t index)

Definition at line 174 of file can_drv.h.

typedef uint32_t(DRV_CALLBACK_TYPE * TCanReceiveGetCount)(uint32_t index)

Definition at line 175 of file can_drv.h.

typedef void(DRV_CALLBACK_TYPE * TCanSetEvents)(uint16_t events)

Definition at line 192 of file can_drv.h.

typedef int32_t(DRV_CALLBACK_TYPE * TCanSetFilter)(uint32_t index, struct TMsgFilter *msg_filter)

Definition at line 181 of file can_drv.h.

typedef int32_t(DRV_CALLBACK_TYPE * TCanSetMode)(uint32_t index, unsigned char can_op_mode, uint16_t can_command)

Definition at line 165 of file can_drv.h.

typedef int32_t(DRV_CALLBACK_TYPE * TCanSetOptions)(char *options)

Definition at line 161 of file can_drv.h.

typedef void(DRV_CALLBACK_TYPE * TCanSetPnPEventCallback)(void(DRV_CALLBACK_TYPE *event)(uint32_t index, int32_t status))

Definition at line 185 of file can_drv.h.

typedef void(DRV_CALLBACK_TYPE * TCanSetRxEventCallback)(void(DRV_CALLBACK_TYPE *event)(uint32_t index, struct TCanMsg *msg, int32_t count))

Definition at line 189 of file can_drv.h.

typedef int32_t(DRV_CALLBACK_TYPE * TCanSetSpeed)(uint32_t index, uint16_t speed)

Definition at line 177 of file can_drv.h.

typedef int32_t(DRV_CALLBACK_TYPE * TCanSetSpeedUser)(uint32_t index, uint32_t value)

Definition at line 178 of file can_drv.h.

typedef void(DRV_CALLBACK_TYPE * TCanSetStatusEventCallback)(void(DRV_CALLBACK_TYPE *event)(uint32_t index, struct TDeviceStatus *device_status))

Definition at line 187 of file can_drv.h.

typedef int32_t(DRV_CALLBACK_TYPE * TCanTransmit)(uint32_t index, struct TCanMsg *msg, int32_t count)

Definition at line 168 of file can_drv.h.

typedef void(DRV_CALLBACK_TYPE * TCanTransmitClear)(uint32_t index)

Definition at line 169 of file can_drv.h.

typedef uint32_t(DRV_CALLBACK_TYPE * TCanTransmitGetCount)(uint32_t index)

Definition at line 170 of file can_drv.h.

typedef int32_t(DRV_CALLBACK_TYPE * TCanTransmitSet)(uint32_t index, uint16_t cmd, uint32_t time)

Definition at line 171 of file can_drv.h.


Function Documentation

int32_t LoadDriver ( const char *  file_name)

Definition at line 86 of file include/tinycan/can_drv_linux.c.

void UnloadDriver ( void  )

Definition at line 180 of file include/tinycan/can_drv_linux.c.


Variable Documentation

Definition at line 59 of file include/tinycan/can_drv_linux.c.

Definition at line 58 of file include/tinycan/can_drv_linux.c.

Definition at line 56 of file include/tinycan/can_drv_linux.c.

Definition at line 71 of file include/tinycan/can_drv_linux.c.

Definition at line 70 of file include/tinycan/can_drv_linux.c.

Definition at line 78 of file include/tinycan/can_drv_linux.c.

Definition at line 73 of file include/tinycan/can_drv_linux.c.

Definition at line 55 of file include/tinycan/can_drv_linux.c.

Definition at line 65 of file include/tinycan/can_drv_linux.c.

Definition at line 66 of file include/tinycan/can_drv_linux.c.

Definition at line 67 of file include/tinycan/can_drv_linux.c.

Definition at line 77 of file include/tinycan/can_drv_linux.c.

Definition at line 72 of file include/tinycan/can_drv_linux.c.

Definition at line 60 of file include/tinycan/can_drv_linux.c.

Definition at line 57 of file include/tinycan/can_drv_linux.c.

Definition at line 74 of file include/tinycan/can_drv_linux.c.

Definition at line 76 of file include/tinycan/can_drv_linux.c.

Definition at line 68 of file include/tinycan/can_drv_linux.c.

Definition at line 69 of file include/tinycan/can_drv_linux.c.

Definition at line 75 of file include/tinycan/can_drv_linux.c.

Definition at line 61 of file include/tinycan/can_drv_linux.c.

Definition at line 62 of file include/tinycan/can_drv_linux.c.

Definition at line 63 of file include/tinycan/can_drv_linux.c.

Definition at line 64 of file include/tinycan/can_drv_linux.c.



tinycan
Author(s): M.Fischer
autogenerated on Thu Jun 6 2019 20:39:28