How to declare a 12bit variable at KEILC

Dear all: Would somebody can tell me how to declare a 12bits
variable in KeilC ? Now I only know use struct to do this. just like

struct OneHalf
{ unsigned int a: 12;
};

but I remember that some easy way exist. So anyone can tell me? Many thanks.

Parents Reply Children
No data
More questions in this forum