Hi,
I've been looking at bit manipulation and for that purpose looked into the
pic18F4550.h to find some examples. There is a bunch of definition along these
lines:
extern __sfr __at (0xF69) UIE;
typedef union {
struct {
unsigned URSTIE : 1;
unsigned UERRIE : 1;
unsigned ACTVIE : 1;
unsigned TRNIE : 1;
unsigned IDLEIE : 1;
unsigned STALLIE : 1;
unsigned SOFIE : 1;
unsigned : 1;
};
} __UIE_t;
extern volatile __UIE_t __at (0xF69) UIEbits;
Now what I would like to understand is why this is 'union/struct' instead of
just a 'struct'?
I'm not suggesting that there is anything wrong there, on the contrary,
there probably is a good reason for that and I'd like to be educated...
br Kusti
------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user