mImoto
Full Member level 4
Hello,
I am using structs in my code. I don't know which is better or a more standar style about using functions with structs. In my case I pass by value to a function several bytes of a struct, not the entire struct. Do you seniors pass by value or by reference struct to functions when you don't need to pass much bytes?
i.e.
PORTS_PINS_Write_Port(MessageRx.BYTES.BYTE_4,
MessageRx.BYTES.BYTE_2);
thanks a lot and regards,
mimoto
I am using structs in my code. I don't know which is better or a more standar style about using functions with structs. In my case I pass by value to a function several bytes of a struct, not the entire struct. Do you seniors pass by value or by reference struct to functions when you don't need to pass much bytes?
i.e.
PORTS_PINS_Write_Port(MessageRx.BYTES.BYTE_4,
MessageRx.BYTES.BYTE_2);
thanks a lot and regards,
mimoto