Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

interfaces.h File Reference

#include "../includes/defines.h"
#include "../includes/canapi.h"

Go to the source code of this file.

Data Structures

struct  _if_board
struct  _if_channel
struct  _s_interface

Defines

#define CANBOARDXL   0
#define IF_SUCCESS   0
#define IF_FAILURE   1
#define IF_DEFAULT_RXQUEUE   256
#define IF_DEFAULT_BAUD   500000

Enumerations

enum  { d_canboardxl, d_cardone, d_cardtwo }

Functions

int boardprobe ()
int boardopenchannel (int)
int boardclosechannel (int)
int boardread (int, can_frame *)
int boardwrite (int, can_frame *)
int boardupdatestatus (int which)
int boardchangestatus (int, int, int)
int boardshutdown (int)
void boarddllmain ()
int fakecrc (unsigned char *, int *)


Define Documentation

#define CANBOARDXL   0
 

Definition at line 36 of file interfaces.h.

Referenced by vector_canboardprobe().

#define IF_DEFAULT_BAUD   500000
 

Definition at line 44 of file interfaces.h.

Referenced by vector_canboardprobe().

#define IF_DEFAULT_RXQUEUE   256
 

Definition at line 43 of file interfaces.h.

Referenced by vector_canboardprobe().

#define IF_FAILURE   1
 

Definition at line 41 of file interfaces.h.

Referenced by boardprobe(), boardstartup(), vector_canboardchangestatus(), vector_canboardopenchannel(), vector_canboardprobe(), vector_canboardstartup(), vector_canboardupdatestatus(), and vector_checkstatus().

#define IF_SUCCESS   0
 

Definition at line 40 of file interfaces.h.

Referenced by boardchangestatus(), boardopenchannel(), boardread(), boardwrite(), vector_baudrate_calc(), vector_canboardchangestatus(), vector_canboardopenchannel(), vector_canboardprobe(), vector_canboardstartup(), vector_canboardupdatestatus(), vector_canboardwrite(), and vector_checkstatus().


Enumeration Type Documentation

anonymous enum
 

Enumerator:
d_canboardxl 
d_cardone 
d_cardtwo 

Definition at line 120 of file interfaces.h.


Function Documentation

int boardchangestatus int  ,
int  ,
int 
 

Definition at line 187 of file interfaces.c.

References _if_channel::board, _if_board::boardtype, _s_interface::changestatusfunction, IF_SUCCESS, S_SUCCESS, and _s_interface::updatestatusfunction.

Referenced by can_setchanneloptions().

int boardclosechannel int   ) 
 

void boarddllmain  ) 
 

int boardopenchannel int   ) 
 

Definition at line 143 of file interfaces.c.

References __CHAN, _s_interface::activecount, _if_channel::board, boardstartup(), _if_board::boardtype, IF_SUCCESS, _if_channel::isopen, _s_interface::openchannelfunction, and _s_interface::updatestatusfunction.

Referenced by boardread(), boardwrite(), and can_openchannel().

int boardprobe  ) 
 

Definition at line 118 of file interfaces.c.

References __IFACE, _s_interface::activecount, boardstartup(), IF_FAILURE, and _s_interface::probefunction.

Referenced by can_probebus().

int boardread int  ,
can_frame
 

Definition at line 159 of file interfaces.c.

References _if_channel::board, boardopenchannel(), _if_board::boardtype, IF_SUCCESS, _s_interface::readfunction, and S_SUCCESS.

Referenced by can_readchannel().

int boardshutdown int   ) 
 

Definition at line 198 of file interfaces.c.

References _s_interface::activecount, _if_channel::board, _if_board::boardtype, _if_board::channelcount, _s_interface::closechannelfunction, _if_channel::index, S_SUCCESS, _s_interface::shutdownfunction, and _s_interface::updatestatusfunction.

Referenced by can_closechannel().

int boardupdatestatus int  which  ) 
 

Definition at line 181 of file interfaces.c.

References _if_channel::board, _if_board::boardtype, and _s_interface::updatestatusfunction.

Referenced by can_getchanneloptions().

int boardwrite int  ,
can_frame
 

Definition at line 170 of file interfaces.c.

References _if_channel::board, boardopenchannel(), _if_board::boardtype, IF_SUCCESS, S_SUCCESS, and _s_interface::writefunction.

Referenced by can_writechannel().

int fakecrc unsigned char *  ,
int * 
 

Definition at line 134 of file interfaces.c.

Referenced by vector_canboardread().


Generated on Wed Feb 22 13:31:27 2006 for CANapi by  doxygen 1.4.4