TWAI Acceptance code & mask
Posted: Mon Nov 06, 2023 9:38 am
I see the acceptance code is Right side msb in the documentation
I want to filter on ID's in the 0x700 range
0x700 = 0111 0000 0000 left side msb
I've tried the following without luck....
acceptance_code = 0x700 << 21; // 0x38000000 = 0011 1000 0000 0000 0000 0000 0000 0000
acceptance_mask = 0b00000000111000000000000000000000; // 0x01800000
Any help? wanting id's in the 0x7xx range.
I want to filter on ID's in the 0x700 range
0x700 = 0111 0000 0000 left side msb
I've tried the following without luck....
acceptance_code = 0x700 << 21; // 0x38000000 = 0011 1000 0000 0000 0000 0000 0000 0000
acceptance_mask = 0b00000000111000000000000000000000; // 0x01800000
Any help? wanting id's in the 0x7xx range.