5.6.6 VCI_EnableHWCyclicTxMsgNo_Ex
This function is used to send CAN messages in the assigned CAN
port by using module hardware timer and it will be more precise than PC
software timer.
In FW v1.05 or newer, five HWSendTimer number (No
:
0~4) supported.
This function can be used to
assign the HWSendTimer No.0~4
and
adjust
CAN Data value
for CAN messages sending.
Syntax :
int
VCI_EnableHWCyclicTxMsgNo_Ex (
BYTE
CAN_No,
BYTE
Mode,
BYTE
RTR,
BYTE
DLC,
DWORD
ID,
BYTE
Data[8],
DWORD
TimePeriod,
DWORD
TransmitTimes,
BYTE
HW_TimerNo,
BYTE
AddMode,
DWORD
DLAddVal,
DWORD
DHAddVal
);
Parameter :
CAN_No
:
[in] The assigned CAN port number.
Mode
:
[in] CAN message Mode (0
:
11-bit
;
1
:
29-bit)
RTR
:
[in] CAN message RTR (0
:
No RTR
;
1
:
RTR)
DLC
:
[in] CAN message Data Length (0~8)
ID
:
[in] CAN message ID
Data[8]
:
[in] CAN message Data Array
TimePeriod
:
[in] The time period of module hardware timer for sending CAN
message. If the value is zero, this function doesn’t work.
TransmitTimes
:
[in] The count for sending CAN message. If the value is zero, it means
that CAN message will be sent periodically and permanently.
I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 67