Hi All, i'm doing a little project that will read a can channel and so some math on it. I'm quite ok in reading a whole byte but my problem is that the channel i have to read is accross 3 bytes: The chennel is Big Endian Unsigned start bit 24 13 bit lenght, so if i'm not mistaken the data will be Most Significative BIT 0 of Byte 3 less Significative bit 4 of byte 5
therfore i will need to combine this data
3 4 5 byte 0 76543210 7654 bit 1 11111111 1111
And i'm a bit puzzeld in how to handle this in the easiest way starting from the 3 value of the buffer array that are
buff buff buff
There are libraries for with is easier to reat the data in this way ? Thanks.