• Question about structs and unions
    Hello there, I've faced a problem that I couldn't solve. I hope you people can help me. I want to memcpy to a struct the datum in an array. I've done it before, and it goes like this: memcpy...
  • Question about structs and unions
    Hello there, I've faced a problem that I couldn't solve. I hope you people can help me. I want to memcpy to a struct the datum in an array. I've done it before, and it goes like this: memcpy...
  • Union + Struct - doubts
    Good moorning, I am trying to create a struct of date of this style: //Struct 1 union{ struct{ union{ struct{ bool interrupt_receive; bool fifo_mode; bool enable; bool bits_14_mode; ...
  • 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/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; ...