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

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

Advertisement

5.5.3 CANHS_SetCANBaudSP

This function is used to set the operating CAN Bus baud rate and sample point of bit
timing setting in the assigned CAN port of the I-7565M-HS device.
Syntax:
C++
int CANHS_SetCANBaudSP(WORD i_wDevice_id, BYTE i_byCANPort, DWORD
i_dwBR, DWORD i_dwSP);
C#
Int32 CANHS_SetCANBaudSP(UInt16 i_wDevice_id, Byte i_byCANPort, UInt32
i_dwBR, UInt32 i_dwSP);
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_dwBR
[in]
The CAN Bus baud rate in the assigned CAN port of the I-7565M-HS
device.
Unit: bps (bit per second), 1000000 means 1000000 bps.
i_dwSP
[in]
The sample point of CAN baud rate bit timing in the assigned CAN port of
the I-7565M-HS device.
Unit: 0.01%, 7500 means 75.00%
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: 45

Advertisement

Table of Contents
loading

Table of Contents