PISO-CANFD series CAN FD card User Manual (version 1.0.0)
Page: 59
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: [email protected]
3.2.10. CANFD_SetFilter
Description
This function is used to configure the CAN port on a specified PISO-CANFD series
board to accept standard or extended frames depended on acceptance and mask
parameter setting.
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.
inFormat
[in] Specifies the CAN port to accept standard or extended remote frame and
data frames.
0: standard frame (
11-bit CAN ID
)
1: extended frame (
29-bit CAN ID
)
inAcceptance
C#
Int16 CANFD_SetFilter (
Byte BoardNo,
Byte Port,
Byte inFormat,
UInt32 inAcceptance,
UInt32 inMask
);