I have the following example buffers and trying to extract some data from this.
<Buffer 38 31 aa 5e>
<Buffer 1c b2 4e 5f>
<Buffer c4 c0 28 60>
<Buffer 04 7a 52 60>
<Buffer 14 17 cd 60>
The data is in the format
Byte 1 - UTC nanosecond LS byte
Byte 2 - UTC nanosecond
Byte 3 - UTC nanosecond
Byte 4 - bits 0-5 UTC nanosecond upper 6 bits, 6-7 raw bits for debugging
I get bit shifting when I need whole bytes together but never needed to concatenate this with bits of a byte too. Any help?