• constant bit-fields in struct
    Hi All,, How can i declare constant bit fields in a struct ?? struct mystruct{ unsigned char xx:6; unsigned char yy:2; }mystruct; Let us say i want mystruct.yy to be a constant 00, how can...
  • sizeof struct
    I have a struct with 2 members of type double and 1 member of type long. The sizeof() function returns 24. Normaly it should be 20(2*8bytes for the doubles and 4 bytes for the long). When I add...
  • bit field
    Hi All, I have a struct: union U { unsigned char c; struct { unsigned char bit0 : 1; unsigned char bit1 : 1; unsigned char bit2 : 1; . . . }S; }; } If I test multiple bits together...
  • sizeof() reporting wrong size of struct
    Using ARM and RTX on MCB2300, I have the following struct defined from an extern file storage array: typedef struct choreoEvent { U8 flags; U16 leftover; U8 disable; U16 cueid; U32 time; char name...
  • Problem using sizeof() with element of struct
    Hi all! I am experiencing the following problem: sizeof(EDA.stPARAM) returns 0x80 with CA.exe V2.41 which in my opinion is the correct result, but with CA.exe V2.50a it returns 0x82. Can somebody...