need to get values from a function with structure pointer argument and print on serial terminal
You can't just print a structure. After all, how is the program supposed to know how it is supposed to be displayed?

Do you want just the raw data, or do you want it formatted in a human readable form?

For just the raw data you need to cast the pointer to a type that can be printed as an array. For example:

Serial.write((uint8_t *)&amp;rs485Msg, sizeof(struct rs485_message_t));


To print it in a human readable form you will need to take each value that you want to see and print it separately with any data manipulation that you may want.  For example:

Serial.print("Checksum 0: ");
Serial.println(rs485Msg.CS0, HEX);


Another thing you can do is to change your structure into a class and inherit the Printable class.  You can then implement the size_t printTo(Print &amp;p); member function which sends the data to the p object for printing in the format you want.  Then you can just print it directly as you are trying to do in your code.