In hal_can_lld.h, struct CANFilter defines field 'filter' as uint32_t. If it's redefined as filter:16, the size of the structure reduces from 16 to 12 bytes; a worthwhile saving given that a number of structures may be required to define the filters.
Also in the same structure, the comment for field 'assignment' (affecting FFAR1 bit) is incorrect. Firstly, it's not 'filter mode'; it determines whether matching messages are directed to RxFIFO0 or RxFIFO1. Secondly, the comment says it must be set to zero in this version of the driver. However the receive handler looks as if this bit is indeed supported.
CAN structure size Topic is solved
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Who is online
Users browsing this forum: No registered users and 50 guests