nico@215: nico@215: nico@215: CanFestival: drivers/win32/drivers_win32.cpp File Reference nico@215: nico@215: nico@215: nico@215: nico@215:
nico@215:
nico@215:
nico@215:
nico@215: nico@215:

drivers_win32.cpp File Reference

#include <windows.h>
nico@215: #include "canfestival.h"
nico@215: #include "timer.h"
nico@215: #include "timers_driver.h"
nico@215: nico@215:

nico@215: Include dependency graph for drivers_win32.cpp:

nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:

nico@215: Go to the source code of this file. nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: etisserant@240: nico@215: nico@215:

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
nico@215:


Define Documentation

etisserant@240: nico@215:
nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
#define DLL_CALL (funcname   )    (*_##funcname)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 32 of file drivers_win32.cpp. nico@215:

nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215:
#define FCT_PTR_INIT   =NULL
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 33 of file drivers_win32.cpp. nico@215:

nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
#define myTEXT (str   )    str
nico@215:
nico@215:
nico@215: 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:

nico@215:


Typedef Documentation

etisserant@240: etisserant@240:
etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
typedef int(*) CANCLOSE_DRIVER_PROC(void *inst)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 43 of file drivers_win32.cpp. nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
typedef void*(*) CANOPEN_DRIVER_PROC(s_BOARD *board)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 42 of file drivers_win32.cpp. nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
typedef UNS8(*) CANRECEIVE_DRIVER_PROC(void *inst, Message *m)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 40 of file drivers_win32.cpp. nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
typedef UNS8(*) CANSEND_DRIVER_PROC(void *inst, const Message *m)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 41 of file drivers_win32.cpp. nico@215:

nico@215:

nico@215:


Function Documentation

etisserant@240: nico@215:
nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
int canClose (CO_Data d  ) 
nico@215:
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: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
CAN_HANDLE canOpen (s_BOARD board,
CO_Data 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:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: etisserant@240: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
UNS8 canReceive (CAN_PORT  fd0,
Message 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:

nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: etisserant@240: nico@215: nico@215: nico@215: nico@215: nico@215:
void* canReceiveLoop (CAN_PORT  fd0  ) 
nico@215:
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:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: etisserant@240: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
UNS8 canSend (CAN_PORT  fd0,
Message 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: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
LIB_HANDLE LoadCanDriver (char *  driver_name  ) 
nico@215:
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:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

nico@215:


Variable Documentation

etisserant@240: etisserant@240:
etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
driver_procs s_driver_procs
nico@215:
nico@215:
nico@215: 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:

nico@215:

etisserant@240:


Generated on Mon Jul 2 19:10:20 2007 for CanFestival by  nico@215: nico@215: doxygen 1.5.1
nico@215: nico@215: