I-7565M-FD USB to CAN/CAN FD converter User Manual (version 1.0.0)
Page: 58
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.6. Communication Functions
These functions are used to send/receive CAN/CAN FD messages through
I-7565M-FD
5.6.1 CANFD_SetCANTxMsg
This function is used to send a CAN/CAN FD message to the software transmitted
buffer of the assigned CAN port of the I-7565M-FD device.
Syntax:
C++
int CANFD_SetCANTxMsg(WORD i_wDevice_id, BYTE i_byCANPort, BYTE
i_byMode, DWORD i_dwID, BYTE i_byRTR, BYTE i_byFDF, BYTE i_byDlen, BYTE
*i_byData);
C#
Int32 CANFD_SetCANTxMsg(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);
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