The current documentation for ctypes bit fields is very limited and doesn't cover the definition order. AFAICT this is:
Little endian - LSB first -> MSB last
Big endian - MSB first -> LSB last
Native - ??? This is LSB first -> MSB last on x86 but is that just because it's a little endian architecture?
Documentation
The current documentation for ctypes bit fields is very limited and doesn't cover the definition order. AFAICT this is: Little endian - LSB first -> MSB last Big endian - MSB first -> LSB last Native - ??? This is LSB first -> MSB last on x86 but is that just because it's a little endian architecture?
For example:
Versus: