/home/epimerde/documents/tc11/CanFestival-3/drivers/can_peak_win32/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"

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.


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().

CAN_HANDLE canOpen_driver ( s_BOARD board  ) 

Definition at line 205 of file can_peak_win32.c.

References canInit().

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.

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.

int TranslateBaudeRate ( char *  optarg  ) 

Definition at line 55 of file can_peak_win32.c.


Generated on Mon Jun 4 16:29:07 2007 for CanFestival by  doxygen 1.5.1