Canhs_Opendevice - ICP DAS USA I-7565M-HS User Manual

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

Advertisement

5.4.3 CANHS_OpenDevice

This function is used to open the necessary I-7565M-HS device. After using the pid
and bid to open the device, users can get a device ID and can use this ID with
"Communication" functions to send/receive CAN messages via device ID.
Syntax:
C++
int CANHS_OpenDevice(WORD *o_wDevice_id, WORD i_wpid, DWORD i_wbid);
C#
Int32 CANHS_OpenDevice(out UInt16 o_wDevice_id, UInt16 i_wpid, UInt32 i_wbid);
Parameter:
*o_wDevice_id
[out]
The pointer is used to receive a necessary device ID in the assigned pid and
vid of I-7565M-HS device.
i_wpid
[in]
The PID (product ID) of the I-7565M-HS device which needs to be open.
i_wbid
[in]
The BID (board ID) of the I-7565M-HS device which needs to be open.
Return Value:
Return 0 means success, others means failure.
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: 41

Advertisement

Table of Contents
loading

Table of Contents