Functions | Variables
can_drv_linux.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <dlfcn.h>
#include "can_drv.h"
Include dependency graph for src/can_drv_linux.c:

Go to the source code of this file.

Functions

int32_t DefCanDeviceClose (uint32_t index)
int32_t DefCanDeviceOpen (uint32_t index, char *parameter)
void DefCanDownDriver (void)
char * DefCanDrvHwInfo (uint32_t index)
char * DefCanDrvInfo (void)
uint32_t DefCanEventStatus (void)
int32_t DefCanGet (uint32_t index, uint16_t obj_index, uint16_t obj_sub_index, void *data, int32_t size)
int32_t DefCanGetDeviceStatus (uint32_t index, struct TDeviceStatus *status)
int32_t DefCanInitDriver (char *options)
int32_t DefCanReceive (uint32_t index, struct TCanMsg *msg, int32_t count)
void DefCanReceiveClear (uint32_t index)
uint32_t DefCanReceiveGetCount (uint32_t index)
int32_t DefCanSet (uint32_t index, uint16_t obj_index, uint16_t obj_sub_index, void *data, int32_t size)
void DefCanSetEvents (uint16_t events)
int32_t DefCanSetFilter (uint32_t index, struct TMsgFilter *msg_filter)
int32_t DefCanSetMode (uint32_t index, unsigned char can_op_mode, uint16_t can_command)
int32_t DefCanSetOptions (char *options)
void DefCanSetPnPEventCallback (void(*event)(uint32_tindex, int32_t status))
void DefCanSetRxEventCallback (void(*event)(uint32_tindex, struct TCanMsg *msg, int32_t count))
int32_t DefCanSetSpeed (uint32_t index, uint16_t speed)
int32_t DefCanSetSpeedUser (uint32_t index, uint32_t value1)
void DefCanSetStatusEventCallback (void(*event)(uint32_tindex, struct TDeviceStatus *device_status))
int32_t DefCanTransmit (uint32_t index, struct TCanMsg *msg, int32_t count)
void DefCanTransmitClear (uint32_t index)
uint32_t DefCanTransmitGetCount (uint32_t index)
int32_t DefCanTransmitSet (uint32_t index, uint16_t cmd, uint32_t time)
void DefDriverProcedure (int32_t func)
int32_t LoadDriver (const char *file_name)
void UnloadDriver (void)

Variables

TCanDeviceClose CanDeviceClose = DefCanDeviceClose
TCanDeviceOpen CanDeviceOpen = DefCanDeviceOpen
TCanDownDriver CanDownDriver = DefCanDownDriver
TCanDrvHwInfo CanDrvHwInfo = DefCanDrvHwInfo
TCanDrvInfo CanDrvInfo = DefCanDrvInfo
TCanEventStatus CanEventStatus = DefCanEventStatus
TCanGetDeviceStatus CanGetDeviceStatus = DefCanGetDeviceStatus
TCanInitDriver CanInitDriver = DefCanInitDriver
TCanReceive CanReceive = DefCanReceive
TCanReceiveClear CanReceiveClear = DefCanReceiveClear
TCanReceiveGetCount CanReceiveGetCount = DefCanReceiveGetCount
TCanSetEvents CanSetEvents = DefCanSetEvents
TCanSetFilter CanSetFilter = DefCanSetFilter
TCanSetMode CanSetMode = DefCanSetMode
TCanSetOptions CanSetOptions = DefCanSetOptions
TCanSetPnPEventCallback CanSetPnPEventCallback = DefCanSetPnPEventCallback
TCanSetRxEventCallback CanSetRxEventCallback = DefCanSetRxEventCallback
TCanSetSpeed CanSetSpeed = DefCanSetSpeed
TCanSetSpeedUser CanSetSpeedUser = DefCanSetSpeedUser
TCanSetStatusEventCallback CanSetStatusEventCallback = DefCanSetStatusEventCallback
TCanTransmit CanTransmit = DefCanTransmit
TCanTransmitClear CanTransmitClear = DefCanTransmitClear
TCanTransmitGetCount CanTransmitGetCount = DefCanTransmitGetCount
TCanTransmitSet CanTransmitSet = DefCanTransmitSet
void * DriverHandle = NULL

Function Documentation

int32_t DefCanDeviceClose ( uint32_t  index)
int32_t DefCanDeviceOpen ( uint32_t  index,
char *  parameter 
)
void DefCanDownDriver ( void  )
char* DefCanDrvHwInfo ( uint32_t  index)
char* DefCanDrvInfo ( void  )
uint32_t DefCanEventStatus ( void  )
int32_t DefCanGet ( uint32_t  index,
uint16_t  obj_index,
uint16_t  obj_sub_index,
void *  data,
int32_t  size 
)
int32_t DefCanGetDeviceStatus ( uint32_t  index,
struct TDeviceStatus status 
)
int32_t DefCanInitDriver ( char *  options)
int32_t DefCanReceive ( uint32_t  index,
struct TCanMsg msg,
int32_t  count 
)
void DefCanReceiveClear ( uint32_t  index)
uint32_t DefCanReceiveGetCount ( uint32_t  index)
int32_t DefCanSet ( uint32_t  index,
uint16_t  obj_index,
uint16_t  obj_sub_index,
void *  data,
int32_t  size 
)
void DefCanSetEvents ( uint16_t  events)
int32_t DefCanSetFilter ( uint32_t  index,
struct TMsgFilter msg_filter 
)
int32_t DefCanSetMode ( uint32_t  index,
unsigned char  can_op_mode,
uint16_t  can_command 
)
int32_t DefCanSetOptions ( char *  options)
void DefCanSetPnPEventCallback ( void(*)(uint32_tindex, int32_t status)  event)
void DefCanSetRxEventCallback ( void(*)(uint32_tindex, struct TCanMsg *msg, int32_t count)  event)
int32_t DefCanSetSpeed ( uint32_t  index,
uint16_t  speed 
)
int32_t DefCanSetSpeedUser ( uint32_t  index,
uint32_t  value1 
)
void DefCanSetStatusEventCallback ( void(*)(uint32_tindex, struct TDeviceStatus *device_status)  event)
int32_t DefCanTransmit ( uint32_t  index,
struct TCanMsg msg,
int32_t  count 
)
void DefCanTransmitClear ( uint32_t  index)
uint32_t DefCanTransmitGetCount ( uint32_t  index)
int32_t DefCanTransmitSet ( uint32_t  index,
uint16_t  cmd,
uint32_t  time 
)
void DefDriverProcedure ( int32_t  func)

Definition at line 221 of file src/can_drv_linux.c.

int32_t LoadDriver ( const char *  file_name)

Definition at line 86 of file src/can_drv_linux.c.

void UnloadDriver ( void  )

Definition at line 180 of file src/can_drv_linux.c.


Variable Documentation

Definition at line 59 of file src/can_drv_linux.c.

Definition at line 58 of file src/can_drv_linux.c.

Definition at line 56 of file src/can_drv_linux.c.

Definition at line 71 of file src/can_drv_linux.c.

Definition at line 70 of file src/can_drv_linux.c.

Definition at line 78 of file src/can_drv_linux.c.

Definition at line 73 of file src/can_drv_linux.c.

Definition at line 55 of file src/can_drv_linux.c.

Definition at line 65 of file src/can_drv_linux.c.

Definition at line 66 of file src/can_drv_linux.c.

Definition at line 67 of file src/can_drv_linux.c.

Definition at line 77 of file src/can_drv_linux.c.

Definition at line 72 of file src/can_drv_linux.c.

Definition at line 60 of file src/can_drv_linux.c.

Definition at line 57 of file src/can_drv_linux.c.

Definition at line 74 of file src/can_drv_linux.c.

Definition at line 76 of file src/can_drv_linux.c.

Definition at line 68 of file src/can_drv_linux.c.

Definition at line 69 of file src/can_drv_linux.c.

Definition at line 75 of file src/can_drv_linux.c.

Definition at line 61 of file src/can_drv_linux.c.

Definition at line 62 of file src/can_drv_linux.c.

Definition at line 63 of file src/can_drv_linux.c.

Definition at line 64 of file src/can_drv_linux.c.

void* DriverHandle = NULL

Definition at line 80 of file src/can_drv_linux.c.



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