I-7565M-HS USB to CAN converter User Manual (version 1.0.0)
Page: 43
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.5. Module Configuration Functions
These functions are used to set/get the parameters or information of I-7565M-HS.
5.5.1 CANHS_SetCANOPMode
This function is used to enable/disable and set operating mode to normal or silent in
the assigned CAN port of the I-7565M-HS device.
Syntax:
C++
int CANHS_SetCANOPMode(WORD i_wDevice_id, BYTE i_byCANPort, WORD
i_wEnable, WORD i_wMode);
C#
Int32 CANHS_SetCANOPMode(UInt16 i_wDevice_id, Byte i_byCANPort, UInt16
i_wEnable, UInt16 i_wMode);
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_wEnable
[in]
Enable/disable the assigned CAN port of the I-7565M-HS device.
0: disable, 1: enable.
i_wMode
[in]
Set operating mode of the assigned CAN port of the I-7565M-HS device to
normal mode or silent mode.
0: normal mode, 1: silent mode.
Return Value:
Return 0 means success, others means failure.