• 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...
  • Alignment of bit fields problem
    Hi, I'm working with at91sam7s256. Of course i'm using Keil. I want to align struct with bitfields one by one because a want to cast buffer on my struct and read data using that struct. the problem...
  • Large bit fields
    Hi, I'm using c51 on 8051. Is It possible to do a struct with large bit fields like: struct bit_st { int x :25; int y :22; int reserved :1; } (I know that int mean 16bit) Tnx, ...
  • union, bit field and bdata
    I want to fix (in C langage if possible) in bdata memory a word (u16). At the same address I want to use 2 bytes (u08) and always in the same area (0x20 and 0x21 addresses for example) to declare bits...
  • Structure with bit field
    Is it possible to assign a structure (in C) with defined bit-fields to a SFR that is not bit addressable to gain bit addressability ?