nico@207: nico@207:
nico@207:#include <stdio.h>
#include <unistd.h>
#include "can_driver.h"
#include "def.h"
nico@207: Go to the source code of this file.
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,},} |
#define MAX_NB_CAN_PIPES 16 | nico@207:
nico@207: nico@207:
nico@207: Definition at line 33 of file can_virtual.c. nico@207:
#define MyCase | nico@207:( | nico@207:fc | nico@207:nico@207: | ) | nico@207:case fc: printf(#fc);break; | nico@207:
nico@207: nico@207:
nico@207: Definition at line 52 of file can_virtual.c. nico@207:
nico@207:
int canClose_driver | nico@207:( | nico@207:CAN_HANDLE | nico@207:fd0 | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 142 of file can_virtual.c. nico@207:
CAN_HANDLE canOpen_driver | nico@207:( | nico@207:s_BOARD * | nico@207:board | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 121 of file can_virtual.c. nico@207:
nico@207: References canpipes, MAX_NB_CAN_PIPES, and CANPipe::used. nico@207:
UNS8 canReceive_driver | nico@207:( | nico@207:CAN_HANDLE | 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 43 of file can_virtual.c. nico@207:
UNS8 canSend_driver | nico@207:( | nico@207:CAN_HANDLE | 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 81 of file can_virtual.c. nico@207:
nico@207: References canpipes, MAX_NB_CAN_PIPES, and print_message(). nico@207:
void print_message | nico@207:( | nico@207:Message * | nico@207:m | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 53 of file can_virtual.c. nico@207:
nico@207: 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@207:
nico@207:
CANPipe canpipes[MAX_NB_CAN_PIPES] = {{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},} | nico@207:
nico@207: nico@207:
nico@207: Definition at line 40 of file can_virtual.c. nico@207:
nico@207: