I'm trying to find another way to create a bit-field structure within a bit-field structure in C.
Somewhat like this:
typedef struct
{
int A : 16;
int B : 16;
} Struct1;
typedef struct
{
int A : 16;
Struct1 B : 32;
} Struct2;
But the C Compiler doesn't like it, and it has to be bit-field. A friend came up with using unions, but was wondering if someone knows another method besides using unions for this?
Thanks!