
PISO-CANFD series CAN FD card User Manual (version 1.0.0)
Page: 61
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: [email protected]
3.2.11. CANFD_SetOPMode
Description
This function is used to configure the operation mode of the CAN port on a specified
PISO-CANFD series board to CAN FD, CAN 2.0 and listen only 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.
OPMode
[in] Specifies the CAN port to CAN FD, CAN 2.0 and listen only mode.
OPMode
Operation Mode
Description
0
CAN FD
Supports mixing of CAN FD and Classic CAN
2.0 frames.
In this mode, the device will be on the CAN bus.
It can transmit and receive messages in CAN
FD mode; bit rate switching can be enabled and
up to 64 data bytes can be transmitted and
received.
C#
Int16 CANFD_SetOPMode(
Byte BoardNo,
Byte Port,
Byte OPMode
);