I have below a list of ID's that I want accepted:
- ID1 = 11000100000 (0x620)
ID2 = 11000100001 (0x621)
ID3 = 11000111000 (0x638)
ID4 = 00111000100 (0x1C4)
Mask = 11111111101 (0x7FD)
Acceptance code = Any one of the ID's (I chose ID1)
I am convinced that Iv'e set it up wrong as I still get a bunch of ID's that I dont need. The documentation did say single filter but maybe its dual filter ?
Code: Select all
twai_filter_config_t filter = {
.acceptance_code = (0x620 << 21),
.acceptance_mask = ~(0x7FD << 21),
.single_filter = true
};