• Struct in union
    Hi I have some problems with struct inside a union This is my code. union{ unsigned char id_byte[2]; struct { unsigned char DLC:4; unsigned char RTR:1; unsigned int identifier:11; }del_element;...
  • UNION and STRUCT
    I'd like to make a definition of union in one file and call it from others. Union needs to consists structures in it. Is it possible? Thank you, Goran
  • how can define a sfr var in a union or struct?
    How can define a union or a struct,and the member is a sfr register?such as pre union or struct { unsigned long dwData; unsigned char bData[4]; } /pre How can let the bData[4] used the sfr...
  • union/struct problem
    Hello, it works in devcpp (as c project) but not working in Keil. What is my fault. output must be "12345" but it is not. typedef union { u8 Reg8[5]; struct { u8 Select; u32 Value32; ...
  • The bit struct in union
    Hello! I want to set one byte by bit. the follow works. But: (1) Why this union takes 2 bytes? union BPS_FORMAT { struct { unsigned format :8; }getbyte; struct { unsigned StopBitLen :1;...