can_peak_win32.c File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include "cancfg.h"
#include "can_driver.h"

Include dependency graph for can_peak_win32.c:

Go to the source code of this file.

Defines

#define extra_PCAN_init_params
#define CAN_INIT_TYPE_ST_RTR   MSGTYPE_STANDARD | MSGTYPE_RTR

Functions

int TranslateBaudeRate (char *optarg)
void canInit (s_BOARD *board)
UNS8 canReceive_driver (CAN_HANDLE fd0, Message *m)
UNS8 canSend_driver (CAN_HANDLE fd0, Message *m)
CAN_HANDLE canOpen_driver (s_BOARD *board)
int canClose_driver (CAN_HANDLE fd0)


Define Documentation

#define CAN_INIT_TYPE_ST_RTR   MSGTYPE_STANDARD | MSGTYPE_RTR

Definition at line 52 of file can_peak_win32.c.

#define extra_PCAN_init_params

Definition at line 36 of file can_peak_win32.c.

Referenced by canInit().


Function Documentation

int canClose_driver ( CAN_HANDLE  fd0  ) 

Definition at line 237 of file can_peak_win32.c.

void canInit ( s_BOARD board  ) 

Definition at line 70 of file can_peak_win32.c.

References struct_s_BOARD::baudrate, extra_PCAN_init_params, and TranslateBaudeRate().

Referenced by canOpen_driver(), canReceive_driver(), canSend_driver(), and initSensor().

Here is the call graph for this function:

CAN_HANDLE canOpen_driver ( s_BOARD board  ) 

Definition at line 205 of file can_peak_win32.c.

References canInit().

Here is the call graph for this function:

UNS8 canReceive_driver ( CAN_HANDLE  fd0,
Message m 
)

Definition at line 89 of file can_peak_win32.c.

References canInit(), Message::cob_id, Message::data, Message::len, Message::rtr, UNS8, and SHORT_CAN::w.

Here is the call graph for this function:

UNS8 canSend_driver ( CAN_HANDLE  fd0,
Message m 
)

Definition at line 159 of file can_peak_win32.c.

References CAN_INIT_TYPE_ST_RTR, canInit(), Message::cob_id, Message::data, Message::len, Message::rtr, UNS8, and SHORT_CAN::w.

Here is the call graph for this function:

int TranslateBaudeRate ( char *  optarg  ) 

Definition at line 55 of file can_peak_win32.c.


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