PISO-CANFD series CAN FD card User Manual (version 1.0.0)
Page: 51
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: [email protected]
3.2.5. CANFD_SetBitRateWithSP
Description
This function is used to configure the CAN/CAN FD normal/data bit rate and sample
point of the CAN port on a specified PISO-CANFD series board. After setting, this CAN
port will be in configuration mode.
Syntax
Parameters
BoardNo
[in] Specifies the number of the PISO-CANFD series board to be read. The valid
range is 0 to 15.
Port
[in] Specifies the number of the CAN port, where:
1: CAN port 1
2: CAN port 2.
3: CAN port 3.
4: CAN port 4.
NormalBitRate
[in] The bit rate configured for the CAN and CAN FD normal arbitration phase in
the assigned CAN port of the PISO-CANFD series card.
Unit: bps (bit per second).
Valid Range: 10000 ~ 1000000 (10 kbps ~ 1000 kbps).
C#
Int16 CANFD_SetBitRateWithSP(
Byte BoardNo,
Byte Port,
Uint32 NormalBitRate,
Uint32 DataBitRate,
Uint16 NormalSP,
Uint16 DataSP
);