diff -r 6787754b251b -r b6572d0336c3 doc/doxygen/html/unix_8c.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/doxygen/html/unix_8c.html Mon Jun 04 17:59:50 2007 +0200 @@ -0,0 +1,320 @@ + +
+#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include "data.h"
#include "canfestival.h"
#include "timers_driver.h"
#include "can_driver.h"
+Go to the source code of this file.
Data Structures | |
struct | CANPort |
Defines | |
#define | DLL_CALL(funcname) (* funcname##_driver) |
#define | FCT_PTR_INIT =NULL |
#define | DLSYM(name) |
#define | MAX_NB_CAN_PORTS 16 |
Functions | |
UNS8 | UnLoadCanDriver (LIB_HANDLE handle) |
LIB_HANDLE | LoadCanDriver (char *driver_name) |
UNS8 | canSend (CAN_PORT port, Message *m) |
void | canReceiveLoop (CAN_PORT port) |
CAN_PORT | canOpen (s_BOARD *board, CO_Data *d) |
int | canClose (CO_Data *d) |
Variables | |
CANPort | canports [MAX_NB_CAN_PORTS] = {{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,}} |
#define DLL_CALL | +( | +funcname | ++ | ) | +(* funcname##_driver) | +
#define DLSYM | +( | +name | ++ | ) | ++ |
+Value:
*(void **) (&name##_driver) = dlsym(handle, #name"_driver");\ + if ((error = dlerror()) != NULL) {\ + fprintf (stderr, "%s\n", error);\ + UnLoadCanDriver(handle);\ + return NULL;\ + } +
+
int canClose | +( | +CO_Data * | +d | +) | ++ |
void canReceiveLoop | +( | +CAN_PORT | +port | +) | ++ |
+ +
+Definition at line 132 of file unix.c. +
+References canDispatch(), canReceive(), DLL_CALL, EnterMutex(), and LeaveMutex(). +
LIB_HANDLE LoadCanDriver | +( | +char * | +driver_name | +) | ++ |
UNS8 UnLoadCanDriver | +( | +LIB_HANDLE | +handle | +) | ++ |
+
+