![ICP DAS USA I-7565M-HS User Manual Download Page 45](http://html2.mh-extra.com/html/icp-das-usa/i-7565m-hs/i-7565m-hs_user-manual_3630632045.webp)
I-7565M-HS USB to CAN converter User Manual (version 1.0.0)
Page: 45
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
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.