Communication Functions; Canhs_Setcantxmsg - ICP DAS USA I-7565M-HS User Manual

Usb to can
Hide thumbs Also See for I-7565M-HS:
Table of Contents

Advertisement

5.6. Communication Functions

These functions are used to send/receive CAN messages through I-7565M-HS

5.6.1 CANHS_SetCANTxMsg

This function is used to send a CAN message to the software transmitted buffer of
the assigned CAN port of the I-7565M-HS device.
Syntax:
C++
int CANHS_SetCANTxMsg(WORD i_wDevice_id, BYTE i_byCANPort, BYTE
i_byMode, DWORD i_dwID, BYTE i_byRTR, BYTE i_byDlen, BYTE *i_byData);
C#
Int32 CANHS_SetCANTxMsg(UInt16 i_wDevice_id, Byte i_byCANPort, Byte
i_byMode, UInt32 i_dwID, Byte i_byRTR, Byte i_byDlen, [In, Out] Byte[] i_byData);
Parameter:
i_wDevice_id
[in]
The assigned device ID of the I-7565M-HS device.
i_byCANPort
[in]
The assigned CAN port of the I-7565M-HS 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 mode  0x000 ~ 0x7FF
2.0B mode  0x00000000 ~ 0x1FFFFFFF
i_byRTR
[in]
CAN message RTR (Remote Transmission Request) parameter.
I-7565M-HS USB to CAN converter User Manual (version 1.0.0)
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Page: 62

Advertisement

Table of Contents
loading

Table of Contents