I have been tinkering with rs485 serial bus.
My message is 7 byte array with layout
uint8 address
uint8 command
int32 data
uint8 checksum
I now serialize and deserialize the int32 with bitshifting.
Would it be computationally more efficient to use a union of struct and array than to do the bitwise operations?