
11 Nov
2011
11 Nov
'11
12:19 p.m.
Hello Mike,
- union {
u32 enetaddr32;
u16 enetaddr16[3];
unsigned char enetaddr[6];
- };
This will work only as long the endianess is matching.
Picking single chars from enetaddr[] and combine them to a u32 register will be more independent from endianess.
If this goes in, I would like to see at least a comment about the problem.
Best Regards, Thomas