PISO-CANFD series CAN FD card User Manual (version 1.0.0)
Page: 75
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: [email protected]
3.2.18. CANFD_SetFIFOStatus
Description
This function is used to clear the receive/ transmit data buffer of the CAN port on a
specified PISO-CANFD series board.
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.
FIFOState
[in] Specifies the receive/ transmit data buffer that needs to clear.
Bit
Symbol
Value Description
0
RXBUFF
receive buffer
0
No need to clear the receive buffer
1
clear the receive buffer
1
TXBUFF
transmit buffer
0
No need to clear the transmit buffer
1
clear the transmit buffer
C#
Int16 CANFD_SetFIFOStatus (
Byte BoardNo,
Byte Port,
Byte FIFOState
);