openxc / bitfield-c

Bit array parsing and encoding utility library in C
BSD 3-Clause "New" or "Revised" License
92 stars 51 forks source link

WHY get_bitfield count bit offset from left ? #19

Closed CmST0us closed 10 months ago

CmST0us commented 10 months ago

For example , I have a bit array: b0000 0011 1000 0000 when i use get_bitfield, for offset 7, and bit count of 3. what i need is b111, but I got 0