Hi,
I am building a small GUI on Linux to enter paramters for control loops runnning on an ATMega128. As the protocol is bi-directionnal I thought I could use the same C functions on both sides to serialize/deserialize the data.
The way I send the data over the UART is that I just copy byte per byte the struct containing the data.
Unfortunately, the alignement on the PC is different, causing small items to be aligned on a 4byte boundary.
Did someone already solve this problem without having to duplicate the struct definition in some way ?
Thanks Martial