Page 1 of 1

Filter in CAN

Posted: Mon Mar 21, 2011 10:13 am
by mculover
Hi Giovanni,

For filter message in CAN Driver, Chibi RTOS provide structure CANFilter to do that.

I know that cf_register1 and cf_register2 for CAN_FxR1 and CAN_FxR2 in each Filter Bank.

What are meaning of cf_register1 and cf_register2 in each mode ?.
How to use cf_register1 and cf_register2 in Identifier List Mode and Mask Mode ?.

Thanks for advance.
mculover

Re: Filter in CAN

Posted: Mon Mar 21, 2011 10:45 am
by Giovanni
HI Mculover,

I am afraid that there is no way around studying the STM32 Reference Manual, the matter is a bit complicated. The driver provides no mechanism to easily configure the filters, the initialization is performed at register level.

One of the next developments will be a visual configuration tool for the HAL but until then you have to configure them manually.

Giovanni

Re: Filter in CAN

Posted: Mon Mar 21, 2011 3:37 pm
by mculover
Hi Giovanni,

Thanks for reply.
I read reference manual many time, But not understand about filter bank.

Best Regards.,
mculover