Hi there,

is there any difference between using bit fields structure
and plain variable plus macros for dealing with bits?

Let's say I have a two bytes divided as follow

0 - 2: level
3 - 6: type
7 - 10: whatever
11 - 15: future

The two methods are

=== First Method ===
typedef struct {
uint16_t level: 3;
uint16_t type: 4;...