nico@207: nico@207:
nico@207:#include <windows.h>
#include "canfestival.h"
#include "timer.h"
#include "timers_driver.h"
nico@207: 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@207:( | nico@207:funcname | nico@207:nico@207: | ) | nico@207:(*_##funcname) | nico@207:
nico@207: nico@207:
nico@207: Definition at line 32 of file drivers_win32.cpp. nico@207:
#define FCT_PTR_INIT =NULL | nico@207:
nico@207: nico@207:
nico@207: Definition at line 33 of file drivers_win32.cpp. nico@207:
#define myTEXT | nico@207:( | nico@207:str | nico@207:nico@207: | ) | nico@207:str | nico@207:
nico@207: nico@207:
nico@207: Definition at line 91 of file drivers_win32.cpp. nico@207:
nico@207:
typedef int(*) CANCLOSE_DRIVER_PROC(void *inst) | nico@207:
nico@207: nico@207:
nico@207: Definition at line 43 of file drivers_win32.cpp. nico@207:
typedef void*(*) CANOPEN_DRIVER_PROC(s_BOARD *board) | nico@207:
nico@207: nico@207:
nico@207: Definition at line 42 of file drivers_win32.cpp. nico@207:
typedef UNS8(*) CANRECEIVE_DRIVER_PROC(void *inst, Message *m) | nico@207:
nico@207: nico@207:
nico@207: Definition at line 40 of file drivers_win32.cpp. nico@207:
typedef UNS8(*) CANSEND_DRIVER_PROC(void *inst, const Message *m) | nico@207:
nico@207: nico@207:
nico@207: Definition at line 41 of file drivers_win32.cpp. nico@207:
nico@207:
int canClose | nico@207:( | nico@207:CO_Data * | nico@207:d | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 194 of file drivers_win32.cpp. nico@207:
nico@207: 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(). nico@207:
CAN_HANDLE canOpen | nico@207:( | nico@207:s_BOARD * | nico@207:board, | nico@207:|
nico@207: | nico@207: | CO_Data * | nico@207:d | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 172 of file drivers_win32.cpp. nico@207:
nico@207: 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. nico@207:
UNS8 canReceive | nico@207:( | nico@207:CAN_PORT | nico@207:fd0, | nico@207:|
nico@207: | nico@207: | Message * | nico@207:m | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 124 of file drivers_win32.cpp. nico@207:
nico@207: References driver_data::inst, driver_procs::m_canReceive, and s_driver_procs. nico@207:
void* canReceiveLoop | nico@207:( | nico@207:CAN_PORT | nico@207:fd0 | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 134 of file drivers_win32.cpp. nico@207:
nico@207: References canDispatch(), canReceive(), driver_data::continue_receive_thread, driver_data::d, EnterMutex(), and LeaveMutex(). nico@207:
UNS8 canSend | nico@207:( | nico@207:CAN_PORT | nico@207:fd0, | nico@207:|
nico@207: | nico@207: | Message * | nico@207:m | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 156 of file drivers_win32.cpp. nico@207:
nico@207: References canSend(), DLL_CALL, EnterMutex(), driver_data::inst, LeaveMutex(), driver_procs::m_canSend, s_driver_procs, and UNS8. nico@207:
LIB_HANDLE LoadCanDriver | nico@207:( | nico@207:char * | nico@207:driver_name | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 119 of file drivers_win32.cpp. nico@207:
nico@207: References canClose(), canOpen(), canReceive(), canSend(), DLSYM, driver_procs::load_canfestival_driver(), and s_driver_procs. nico@207:
nico@207:
driver_procs s_driver_procs | nico@207:
nico@207: nico@207:
nico@207: Definition at line 117 of file drivers_win32.cpp. nico@207:
nico@207: