Vci_Recvcanmsg - ICP DAS USA I-7565-H1 User Manual

High performance usb/can converter
Table of Contents

Advertisement

5.6.2 VCI_RecvCANMsg

This function is used to receive CAN messages that are saved in
software buffer in the assigned CAN port.
Syntax :
int
VCI_RecvCANMsg (
BYTE
CAN_No,
PVCI_CAN_MSG
);
Parameter :
CAN_No:
[in] The assigned CAN port number.
pCANMsg:
[out] A structure pointer of _VCI_CAN_MSG is used to receive the
CAN message shown as below.
typedef struct _VCI_CAN_MSG{
BYTE Mode;
BYTE RTR;
BYTE DLC;
BYTE Reserved;
DWORD
DWORD
DWORD
BYTE Data[8];
} _VCI_CAN_MSG, *PVCI_CAN_MSG;
Mode
RTR
DLC
ID
TimeL
TimeH
Data[8]
Return Values :
Return 0 means success, others means failure.
I-7565-H1/H2 High Performance USB/CAN Converter User's Manual (Ver 1.7, Aug/2011) ------------- 60
pCANMsg
ID;
TimeL;
TimeH;
: CAN message Mode (0: 11-bit; 1: 29-bit)
: CAN message RTR (0: No RTR; 1: RTR)
: CAN message Data Length (0~8)
: CAN message ID
: CAN message Time-Stamp (Lo-DWORD)
: CAN message Time-Stamp (Hi-DWORD)
: CAN message Data Array

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-7565-h2

Table of Contents