I need to convert a bit-field structure from little-endian to big-endia architecture. What is the best way to do that, as there will be issues in byte boundaries, if I simply sw
You should not use bit-fields when the physical layout is important because it is implementation-defined in which order the larger word is populated.