Canhs_Getcanrxmsg - 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.2 CANHS_GetCANRxMsg

This function is used to get a CAN message from the software received buffer of the
assigned CAN port of the I-7565M-HS device.
Syntax:
C++
int CANHS_GetCANRxMsg(WORD i_wDevice_id, BYTE i_byCANPort, BYTE*
o_byType, BYTE* o_byMode, DWORD* o_dwID, BYTE* o_byRTR, BYTE* o_byDlen,
BYTE *o_byData, DWORD *o_dw_TimeStamp_s, DWORD *o_dw_TimeStamp_us);
C#
Int32 CANHS_GetCANRxMsg(UInt16 i_wDevice_id, Byte i_byCANPort, out Byte
o_byType, out Byte o_byMode, out UInt32 o_dwID, out Byte o_byRTR, out Byte
o_byDlen, [In, Out] Byte[] o_byData, out UInt32 o_dw_TimeStamp_s, out UInt32
o_dw_TimeStamp_us);
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.
*o_byType
[out]
Received messages format.
0: receive a stand/extended CAN message
2: receive a event message.
Event message format:
Mode: 1 (2.0B CAN message format)
ID:
RTR:
Dlen:
Data: D0~D3  CAN Bus status in little-endian format
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
0xEEEEEEE
0 (No RTR)
0x08
(Please refer to appendix 7.3 for "CAN Status" definition.)
D4~D7  CAN Bus error counter in little-endian format
(Please refer to appendix 7.4 for "CAN Error Counter"
definition.)
Page: 64

Advertisement

Table of Contents
loading

Table of Contents