PISO-CANFD series CAN FD card User Manual (version 1.0.0)
Page: 60
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: [email protected]
[in] Specifies the “inAcceptance” that is used to determine which CAN IDs will
be accepted by the CAN controller.
inFormat
inAcceptance (hexadecimal) Range
standard frame (0)
000 to 7FF
extended frame (1)
00000000 to 1FFFFFFF
Note that inMask and inAcceptance arguments should verify:
inAcceptance & inMask == inAcceptance
inMask
[in] Specifies the “inMask” that is used to determine which bit from the CAN ID
will be checked by the CAN controller based on the value specified for the
“inAcceptance” parameter. If the bit of the “inMask” parameter is set to 1, it
means that the bit in the CAN ID in the same position needs to be checked, and
the ID bit value needs to match the value specified for the bit of the
“inAcceptance” parameter in the same position.
inFormat
inMask (hexadecimal) Range
standard frame (0)
000 to 7FF
extended frame (1)
00000000 to 1FFFFFFF
Note that inMask and inAcceptance arguments should verify:
inAcceptance & inMask == inAcceptance
The inMask and inAcceptance arguments defines a filter that accepts frame whose
identifier verifies:
“identifier & inMask == inAcceptance”
Return Value
If the function succeeds, the return value will be 0.
If the function fails, refer to Section 3.6 Error Code Definitions.