nico@215: nico@215:
nico@215:#include <windows.h>
#include "canfestival.h"
#include "timer.h"
#include "timers_driver.h"
nico@215: Include dependency graph for drivers_win32.cpp:
nico@215: Go to the source code of this file.
Data Structures | |
class | driver_procs |
struct | driver_data |
Defines | |
#define | DLL_CALL(funcname) (*_##funcname) |
#define | FCT_PTR_INIT =NULL |
#define | myTEXT(str) str |
Typedefs | |
typedef UNS8(*) | CANRECEIVE_DRIVER_PROC (void *inst, Message *m) |
typedef UNS8(*) | CANSEND_DRIVER_PROC (void *inst, const Message *m) |
typedef void *(*) | CANOPEN_DRIVER_PROC (s_BOARD *board) |
typedef int(*) | CANCLOSE_DRIVER_PROC (void *inst) |
Functions | |
LIB_HANDLE | LoadCanDriver (char *driver_name) |
UNS8 | canReceive (CAN_PORT fd0, Message *m) |
void * | canReceiveLoop (CAN_PORT fd0) |
UNS8 | canSend (CAN_PORT fd0, Message *m) |
CAN_HANDLE | canOpen (s_BOARD *board, CO_Data *d) |
int | canClose (CO_Data *d) |
Variables | |
driver_procs | s_driver_procs |
#define DLL_CALL | nico@215:( | nico@215:funcname | nico@215:nico@215: | ) | nico@215:(*_##funcname) | nico@215:
nico@215: nico@215:
nico@215: Definition at line 32 of file drivers_win32.cpp. nico@215:
#define FCT_PTR_INIT =NULL | nico@215:
nico@215: nico@215:
nico@215: Definition at line 33 of file drivers_win32.cpp. nico@215:
#define myTEXT | nico@215:( | nico@215:str | nico@215:nico@215: | ) | nico@215:str | nico@215:
nico@215: nico@215:
nico@215: Definition at line 91 of file drivers_win32.cpp. nico@215:
nico@215: Referenced by driver_procs::load_canfestival_driver(). nico@215:
nico@215:
typedef int(*) CANCLOSE_DRIVER_PROC(void *inst) | nico@215:
nico@215: nico@215:
nico@215: Definition at line 43 of file drivers_win32.cpp. nico@215:
etisserant@240: etisserant@240:
typedef void*(*) CANOPEN_DRIVER_PROC(s_BOARD *board) | nico@215:
nico@215: nico@215:
nico@215: Definition at line 42 of file drivers_win32.cpp. nico@215:
etisserant@240: etisserant@240:
typedef UNS8(*) CANRECEIVE_DRIVER_PROC(void *inst, Message *m) | nico@215:
nico@215: nico@215:
nico@215: Definition at line 40 of file drivers_win32.cpp. nico@215:
etisserant@240: etisserant@240:
typedef UNS8(*) CANSEND_DRIVER_PROC(void *inst, const Message *m) | nico@215:
nico@215: nico@215:
nico@215: Definition at line 41 of file drivers_win32.cpp. nico@215:
nico@215:
int canClose | nico@215:( | nico@215:CO_Data * | nico@215:d | nico@215:) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 194 of file drivers_win32.cpp. nico@215:
etisserant@240: References canClose(), struct_CO_Data::canHandle, driver_data::continue_receive_thread, DLL_CALL, EnterMutex(), CANPort::fd, driver_data::inst, LeaveMutex(), driver_procs::m_canClose, driver_data::receive_thread, CANPort::receiveTask, s_driver_procs, and WaitReceiveTaskEnd(). etisserant@240:
etisserant@240: Here is the call graph for this function:
etisserant@240: etisserant@240:
CAN_HANDLE canOpen | nico@215:( | nico@215:s_BOARD * | nico@215:board, | nico@215:|
nico@215: | nico@215: | CO_Data * | nico@215:d | nico@215: |
nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 172 of file drivers_win32.cpp. nico@215:
etisserant@240: References struct_s_BOARD::baudrate, struct_s_BOARD::busname, struct_CO_Data::canHandle, canOpen(), canports, canReceiveLoop(), driver_data::continue_receive_thread, CreateReceiveTask(), CANPort::d, driver_data::d, DLL_CALL, EnterMutex(), CANPort::fd, driver_data::inst, LeaveMutex(), driver_procs::m_canOpen, MAX_NB_CAN_PORTS, driver_data::receive_thread, s_driver_procs, and CANPort::used. etisserant@240:
etisserant@240: Here is the call graph for this function:
UNS8 canReceive | nico@215:( | etisserant@240:CAN_PORT | nico@215:fd0, | nico@215:|
nico@215: | nico@215: | Message * | nico@215:m | nico@215: |
nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 124 of file drivers_win32.cpp. nico@215:
nico@215: References driver_data::inst, driver_procs::m_canReceive, and s_driver_procs. nico@215:
nico@215: Referenced by canReceiveLoop(), and LoadCanDriver(). nico@215:
void* canReceiveLoop | nico@215:( | etisserant@240:CAN_PORT | nico@215:fd0 | nico@215:) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 134 of file drivers_win32.cpp. nico@215:
nico@215: References canDispatch(), canReceive(), driver_data::continue_receive_thread, driver_data::d, EnterMutex(), and LeaveMutex(). nico@215:
etisserant@240: Here is the call graph for this function:
UNS8 canSend | nico@215:( | etisserant@240:CAN_PORT | nico@215:fd0, | nico@215:|
nico@215: | nico@215: | Message * | nico@215:m | nico@215: |
nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 156 of file drivers_win32.cpp. nico@215:
nico@215: References canSend(), DLL_CALL, EnterMutex(), driver_data::inst, LeaveMutex(), driver_procs::m_canSend, s_driver_procs, and UNS8. nico@215:
etisserant@240: Here is the call graph for this function:
etisserant@240: etisserant@240:
LIB_HANDLE LoadCanDriver | nico@215:( | nico@215:char * | nico@215:driver_name | nico@215:) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 119 of file drivers_win32.cpp. nico@215:
nico@215: References canClose(), canOpen(), canReceive(), canSend(), DLSYM, driver_procs::load_canfestival_driver(), and s_driver_procs. nico@215:
etisserant@240: Here is the call graph for this function:
nico@215:
driver_procs s_driver_procs | nico@215:
nico@215: nico@215:
nico@215: Definition at line 117 of file drivers_win32.cpp. nico@215:
nico@215: Referenced by canClose(), canOpen(), canReceive(), canSend(), and LoadCanDriver(). nico@215:
etisserant@240: