Sometimes you want to extract a custom length bit message which can be non divisible by 8 or placed in the middle of data payload. This is my initial work toward decoding the messages according to j1939DA where 1 PGN could actually have several SPNs located at different bit positions and sometimes can have irregular length
How has this been tested?
Have written unit test that should cover cases:
Bit starts at non 0 index of data payload and the length of bits is divisible by 8
Same as 1 but not divisible by 8
Bit starts at non 0 index and its length is less than 8
Describe your changes
Sometimes you want to extract a custom length bit message which can be non divisible by 8 or placed in the middle of data payload. This is my initial work toward decoding the messages according to j1939DA where 1 PGN could actually have several SPNs located at different bit positions and sometimes can have irregular length
How has this been tested?
Have written unit test that should cover cases: