TWAI ACCEPTANCE CODE differences in soft and hardware documentation
- MacWyznawca
- Posts: 4
- Joined: Sun Apr 09, 2017 6:22 am
TWAI ACCEPTANCE CODE differences in soft and hardware documentation
I found big differences in the documentation of "TWAI ACCEPTANCE CODE" when using two masks. The SDK documentation says that both masks also filter after 4 bits from the first byte of the standard frame. However, the hardware documentation says that the first mask filters the whole byte, the second only the id. Who is right?
Jaromir K. Kopp (@MacWyznawca)
Deputy editor-in-chief. Soft & Hardware, iOS, HomeKit and macOS Divisions
Mój Mac (ISSN 2392-3156) <www.mojmac.pl> <www.prosteporadniki.pl>
Deputy editor-in-chief. Soft & Hardware, iOS, HomeKit and macOS Divisions
Mój Mac (ISSN 2392-3156) <www.mojmac.pl> <www.prosteporadniki.pl>
Re: TWAI ACCEPTANCE CODE differences in soft and hardware documentation
@MacWyznawca Both are right.
Also note, the SDK filter is not a one to one map to the register. The driver does a bswap32() in between.
The SDK diagram indicates that two 4-bits being filtered are bits [0:3] and bits [4:7] of the data byte for filter 1 onlyThe SDK documentation says that both masks also filter after 4 bits from the first byte of the standard frame.
Also note, the SDK filter is not a one to one map to the register. The driver does a bswap32() in between.
- MacWyznawca
- Posts: 4
- Joined: Sun Apr 09, 2017 6:22 am
Re: TWAI ACCEPTANCE CODE differences in soft and hardware documentation
Ah, I didn't notice in the SDK that it was about the same byte. Thank you.
Jaromir K. Kopp (@MacWyznawca)
Deputy editor-in-chief. Soft & Hardware, iOS, HomeKit and macOS Divisions
Mój Mac (ISSN 2392-3156) <www.mojmac.pl> <www.prosteporadniki.pl>
Deputy editor-in-chief. Soft & Hardware, iOS, HomeKit and macOS Divisions
Mój Mac (ISSN 2392-3156) <www.mojmac.pl> <www.prosteporadniki.pl>
Who is online
Users browsing this forum: Baidu [Spider] and 278 guests