I-7565M-FD USB to CAN/CAN FD converter User Manual (version 1.0.0)
Page: 65
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.6.5 CANFD_SetCANHWSendMsg
This function is used to set the CAN/CAN FD message sending in the assigned
CAN port by using module hardware timer.
Syntax:
C++
int CANFD_SetCANHWSendMsg(WORD i_wDevice_id, BYTE i_byCANPort, BYTE
i_byMode, DWORD i_dwID, BYTE i_byRTR, i_byFDF, BYTE i_byDlen, BYTE
*i_byData, DWORD i_dwTimer, DWORD i_dwCounter);
C#
Int32 CANFD_SetCANHWSendMsg(UInt16 i_wDevice_id, Byte i_byCANPort, Byte
i_byMode, UInt32 i_dwID, Byte i_byRTR, Byte i_byFDF, Byte i_byDlen, [In, Out] Byte[]
i_byData, UInt32 i_dwTimer, UInt32 i_dwCounter);
Parameter:
i_wDevice_id
[in]
The assigned device ID of the I-7565M-FD device.
i_byCANPort
[in]
The assigned CAN port of the I-7565M-FD device.
i_byMode
[in]
CAN message mode.
0: 2.0A, 11-bit CAN ID
1: 2.0B, 29-bit CAN ID
i_dwID
[in]
CAN message ID parameter.
Valid Range:
2.0A (11-bit CAN ID) mode
0x000 ~ 0x7FF
2.0B (29-bit CAN ID) mode
0x00000000 ~ 0x1FFFFFFF
i_byRTR
[in]
CAN message RTR (Remote Transmission Request) parameter.
0: use data frame
1: use remote frame. (No effect for CAN FD frame)