![ESD CAN - PCC Hardware Manual Download Page 43](http://html1.mh-extra.com/html/esd/can-pcc/can-pcc_hardware-manual_2426431043.webp)
CAN-PCC Software Manual Rev. 1.4
14
5.1.4 CANPC_set_acceptance
By means of this command a reception filter for CAN-data frames and remote-request frames can be
made. This filter can be generated for standard or extended-CAN identifiers. Only those frames are
received whose identifier bits are compliant to the acceptance filter.
The values of the bits which have been initialized with a '1' in the parameter
AccMask
... (acceptance
mask), have to comply to the values of the according bits in the parameter
AccCode
... (acceptance
code). A '0' in the parameter acceptance mask means that this bit is not checked.
Because the module does not support 29-bit identifiers, the identifiers are not checked. The parameters
AccCodeXtd
and
AccMaskXtd
have to be transmitted anyhow.
The
function
CANPC_set_acceptance
can be used parallel to the function
CANESD_enable_id
. Both functions are equal and can also be used alternatively.
int CANPC_set_acceptance(
unsigned int
AccCodeStd
,
unsigned int
AccMaskStd,
unsigned long
AccCodeXtd,
unsigned long
AccMaskXtd
)
Input parameters:
AccCodeStd
... acceptance-code standard [$0000...$07FF]
AccMaskStd
... acceptance-mask standard [$0000...$07FF]
AccCodeXtd
... acceptance-code extended [$00000000...$1FFFFFFF]
AccMaskXtd
... acceptance-mask extended [$00000000...$1FFFFFFF]
Output parameters:
0
... Command successfully executed
-4
... Timeout error on the CAN-PCC module when accessing the CAN
controller
Example:
The function call with the following parameters would allow all identifiers:
CANPC_set_acceptance( 0, 0, 0, 0)
Summary of Contents for CAN - PCC
Page 7: ...CAN PCC Hardware Manual Rev 1 2 2...
Page 15: ...CAN PCC Hardware Manual Rev 1 2 10...
Page 17: ...CAN PCC Hardware Manual Rev 1 2 12...
Page 19: ...CAN PCC Hardware Manual Rev 1 2 14...
Page 23: ...CAN PCC Hardware Manual Rev 1 2 18...
Page 26: ...CAN PCC Hardware Manual Rev 1 2 21 Circuit Diagrams 4 2 Circuit Diagrams...
Page 27: ...CAN PCC Software Manual Rev 1 4 CAN PCC Windows 3 11 API Software Manual...
Page 31: ...CAN PCC Software Manual Rev 1 4 2...