nico@215: nico@215: nico@215: CanFestival: drivers/can_virtual/can_virtual.c File Reference nico@215: nico@215: nico@215: nico@215: nico@215:
nico@215:
nico@215:
nico@215:
nico@215: nico@215:

can_virtual.c File Reference

#include <stdio.h>
nico@215: #include <unistd.h>
nico@215: #include "can_driver.h"
nico@215: #include "def.h"
nico@215: nico@215:

nico@215: Include dependency graph for can_virtual.c:

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

Data Structures

struct  CANPipe

Defines

#define MAX_NB_CAN_PIPES   16
#define MyCase(fc)   case fc: printf(#fc);break;

Functions

UNS8 canReceive_driver (CAN_HANDLE fd0, Message *m)
void print_message (Message *m)
UNS8 canSend_driver (CAN_HANDLE fd0, Message *m)
CAN_HANDLE canOpen_driver (s_BOARD *board)
int canClose_driver (CAN_HANDLE fd0)

Variables

CANPipe canpipes [MAX_NB_CAN_PIPES] = {{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},}
nico@215:


Define Documentation

etisserant@240: nico@215:
nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215:
#define MAX_NB_CAN_PIPES   16
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 33 of file can_virtual.c. nico@215:

nico@215: Referenced by canOpen_driver(), and canSend_driver(). 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 MyCase (fc   )    case fc: printf(#fc);break;
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 52 of file can_virtual.c. nico@215:

nico@215: Referenced by print_message(). nico@215:

nico@215:

nico@215:


Function Documentation

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:
int canClose_driver (CAN_HANDLE  fd0  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 142 of file can_virtual.c. 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:
CAN_HANDLE canOpen_driver (s_BOARD board  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 121 of file can_virtual.c. nico@215:

nico@215: References canpipes, MAX_NB_CAN_PIPES, and CANPipe::used. 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_driver (CAN_HANDLE  fd0,
Message m 
)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 43 of file can_virtual.c. 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_driver (CAN_HANDLE  fd0,
Message m 
)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 81 of file can_virtual.c. nico@215:

nico@215: References canpipes, MAX_NB_CAN_PIPES, and print_message(). nico@215:

etisserant@240: Here is the call graph for this function:

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: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
void print_message (Message m  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 53 of file can_virtual.c. nico@215:

etisserant@240: References Message::cob_id, Message::data, Message::len, MyCase, NMT, NODE_GUARD, PDO1rx, PDO1tx, PDO2rx, PDO2tx, PDO3rx, PDO3tx, PDO4rx, PDO4tx, Message::rtr, SDOrx, SDOtx, SYNC, TIME_STAMP, and SHORT_CAN::w. nico@215:

nico@215: Referenced by canSend_driver(). nico@215:

nico@215:

nico@215:


Variable Documentation

etisserant@240: etisserant@240:
etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
CANPipe canpipes[MAX_NB_CAN_PIPES] = {{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},}
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 40 of file can_virtual.c. nico@215:

nico@215: Referenced by canOpen_driver(), and canSend_driver(). nico@215:

nico@215:

etisserant@240:


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