2012-12-13 02:08 PM
hello all
I can not
set up properly
filters
CAN
STM8S
I tried to put
any
value
on
CAN_FilterID1
.. 4 and
CAN_FilterIDMask1
but does not work
My goal is
to pass only
the
standard
ID
0x421
and
0x37A
The piece of
code is as follows
CAN_FilterNumber = 0; CAN_FilterActivation = ENABLE; CAN_FilterMode = CAN_FilterMode_IdList ; CAN_FilterScale = CAN_FilterScale_16bit; CAN_FilterID1=0; CAN_FilterID2=0; CAN_FilterID3=0; CAN_FilterID4=0; CAN_FilterIDMask1=0; CAN_FilterIDMask2=0; CAN_FilterIDMask3=0; CAN_FilterIDMask4=0; CAN_FilterInit(CAN_FilterNumber, CAN_FilterActivation, CAN_FilterMode, CAN_FilterScale,CAN_FilterID1, CAN_FilterID2, CAN_FilterID3, CAN_FilterID4,CAN_FilterIDMask1, CAN_FilterIDMask2, CAN_FilterIDMask3, CAN_FilterIDMask4); #can-bus-filter-stm8s-stm8-becan