5.8.3
VCI_Get_ISRCANData
This function is used to get the CAN message data when user-defined
ISR function is trigged.
Syntax :
int
VCI_Get_ISRCANData (
BYTE
ISRNo,
BYTE*
DLC,
BYTE
Data[8],
);
Parameter :
ISRNo
:
[in] The assigned ISR No. (Valid
:
0 ~ 7)
DLC
:
[out] The pointer is used to receive the CAN message data length.
Data
:
[out] The data buffer is used to receive the CAN message data.
Return Values :
Return 0 means success, others means failure.
Examples :
BYTE
ISR1_CANDataLen;
BYTE
ISR1_CANData[8]={0};
VCI_Get_ISRCANData
(ISRNO_1, &ISR1_CANDataLen, ISR1_CANData);
I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 76