K
Kosio
-Hello,
I'm looking for a way to deconstruct a (32 bit) float value to four
(8 bit) char values. I then need a way to take those four (8 bit) char
values and construct a (32 bit) float value.
The reason I ask is that I am sending things across an rs485 serial
network, and the protocol is set up to send byte by byte. It sends one
(8 bit) char at a time. I would like to send a float across this
network in the form of four chars...
Any ideas, suggestions? (Btw: this is a C compiler for a cypress
microcontroller, not a C++ compiler)
Thanks,
Aaron
I'm looking for a way to deconstruct a (32 bit) float value to four
(8 bit) char values. I then need a way to take those four (8 bit) char
values and construct a (32 bit) float value.
The reason I ask is that I am sending things across an rs485 serial
network, and the protocol is set up to send byte by byte. It sends one
(8 bit) char at a time. I would like to send a float across this
network in the form of four chars...
Any ideas, suggestions? (Btw: this is a C compiler for a cypress
microcontroller, not a C++ compiler)
Thanks,
Aaron