In many of the register definition include files, there are useful bitfield definitions. For example, from timerb.h:
typedef struct {
volatile unsigned
ccifg:1,
cov:1,
out:1,
cci:1,
ccie:1,
outmod:3,
cap:1,
clld:2,
scs:1,
ccis:2,
cm:2;
} __attribute__ ((packed)) tbcctl_t;
Can someone please point me to documentation or an example of
how to use these? I'm trying to port some IAR code to mspgcc
which uses their version of register bitfields.
I'm using the Win32 package from 20050422.
- Dan Miner
