bit flied support by arduino

Hi.

Is not bit field not support by arduino???

just found that it exist, and I found it hand-it while playing with register field. Seem to make part of GNU compiler though...

or do I do it wrong:

int value = 0 : 3;

without this, I found a macro to do the same... unless there's a better way ?

//value to be add to 3it register
#define BIT_FIELD(field)   0xFFFFFFFF >> (32-field)
#define TRANSFER(x) (x&BIT_FIELD(8) <<16

Thanks.

Nitrof

AFAIK, bit fields can only be defined inside of a structure or union.