I have a product that is actually written in Ruby (currently 2.4).
However, I have discovered there is a preference to endian-ness.
When the bit offset is non-zero I have a limitation that only big endian
I have figured out if I were to reverse the bits, I could achieve a
little endian for my case.
I have a bit field 11 bits long with a bit offset of 3 (in the middle) and I
need these bits reversed.
I have googled and found a few different methods with different results
doing different things. Not what I need.
This data is part of a larger record that is transmitted via RF. So it is a
bit different than other topics I have read.