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

interfaces.c File Reference

#include "interfaces.h"
#include "..\includes\defines.h"
#include "..\includes\canapi.h"
#include "..\includes\irig.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "vector_canboard\vector_canboard.h"

Go to the source code of this file.

Enumerations

enum  { __IFACE, __CHAN }

Functions

int boardstartup (int handle, int which)
int boardprobe ()
int fakecrc (unsigned char *tocrc, int *fakedcrc)
int boardopenchannel (int which)
int boardread (int which, can_frame *out)
int boardwrite (int which, can_frame *in)
int boardupdatestatus (int which)
int boardchangestatus (int handle, int which, int status)
int boardshutdown (int which)

Variables

_if_channel channel [CAN_MAXCHANNELS]
int if_channel_count
int if_board_count
_reftsLinkrefts
_s_interface interfaces []


Enumeration Type Documentation

anonymous enum
 

Enumerator:
__IFACE 
__CHAN 

Definition at line 86 of file interfaces.c.


Function Documentation

int boardchangestatus int  handle,
int  which,
int  status
 

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 boardopenchannel int  which  ) 
 

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  which,
can_frame out
 

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  which  ) 
 

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 boardstartup int  handle,
int  which
 

Definition at line 91 of file interfaces.c.

References __CHAN, __IFACE, _s_interface::activecount, _if_channel::board, _if_board::boardtype, IF_FAILURE, and _s_interface::startupfunction.

Referenced by boardopenchannel(), and boardprobe().

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  which,
can_frame in
 

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 *  tocrc,
int *  fakedcrc
 

Definition at line 134 of file interfaces.c.

Referenced by vector_canboardread().


Variable Documentation

struct _if_channel channel[CAN_MAXCHANNELS]
 

Definition at line 93 of file defines.c.

int if_board_count
 

Definition at line 96 of file defines.c.

Referenced by can_probebus(), and vector_canboardprobe().

int if_channel_count
 

Definition at line 95 of file defines.c.

Referenced by can_openchannel(), can_probebus(), isinvalid(), and vector_canboardprobe().

struct _s_interface interfaces[]
 

Initial value:

Definition at line 50 of file interfaces.c.

struct _reftsLink* refts
 

Definition at line 98 of file defines.c.


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