I-7565M-FD USB to CAN/CAN FD converter User Manual (version 1.0.0)
Page: 41
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.4.3 CANFD_OpenDevice
This function is used to open the necessary I-7565M-FD 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 CANFD_OpenDevice(WORD *o_wDevice_id, WORD i_wpid, DWORD i_wbid);
C#
Int32 CANFD_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-FD device.
i_wpid
[in]
The PID (product ID) of the I-7565M-FD device which needs to be open.
i_wbid
[in]
The BID (board ID) of the I-7565M-FD device which needs to be open.
Return Value:
Return 0 means success, others means failure.