HW_TimerNo
:
[in] The assigned HWSendTimer No. (0~4)
AddMode
:
[in] CAN Data Value Addition Mode (0
:
Addition
;
1
:
Multiple)
DLAddVal
:
[in] CANL Data Addition Value every time
DHAddVal
:
[in] CANH Data Addition Value every time
Return Values :
Return 0 means success, others means failure.
Examples :
Int Ret;
BYTE CAN_No;
BYTE Mode, RTR, DLC, Data[8], HW_TimerNo;
DWORD ID;
CAN_No =1;
Mode =
1;
RTR =
0;
ID = 0x1;
DLC =
8;
Data[0]= 0x0;
Data[1]= 0x0;
Data[2]= 0x0;
Data[3]= 0x0;
Data[4]= 0x0;
Data[5]= 0x0;
Data[6]= 0x0;
Data[7]= 0x0;
//Send 200 CANMsg with 10ms period and Stop by using HWSendTimer-1
//CANL_Data Value will be added by 1 every time
//CANH_Data Value will be added by 2 every time
HW_TimerNo = 1;
Ret = VCI_EnableHWCyclicTxMsgNo_Ex(CAN_No, Mode, RTR, DLC, ID,
Data, 10, 200, HW_TimerNo, ADDITION_MODE, 1, 2);
I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 68