beautypg.com

B&B Electronics I-7565-H2 - Manual User Manual

Page 51

background image

Return 0 means success, others means failure.

Examples :
Int Ret;
BYTE CAN_No;
_VCI_CAN_MSG CAN_SendMsg;

CAN_No=1;
CAN_SendMsg.Mode = 1;
CAN_SendMsg.RTR =

0;

CAN_SendMsg.ID

= 0x1;

CAN_SendMsg.DLC =

8;

CAN_SendMsg.Data[0]= 0x12;
CAN_SendMsg.Data[1]= 0x34;
CAN_SendMsg.Data[2]= 0x56;
CAN_SendMsg.Data[3]= 0x78;
CAN_SendMsg.Data[4]= 0x90;
CAN_SendMsg.Data[5]= 0xAB;
CAN_SendMsg.Data[6]= 0xCD;
CAN_SendMsg.Data[7]= 0xEF;
Ret = VCI_SendCANMsg(CAN_No, &CAN_SendMsg); // Send CAN Msg

I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 51