1234567891011121314151617181920212223242526272829303132333435363738 |
- modbus_get_float_swapped(3)
- ===========================
- NAME
- ----
- modbus_get_float_swapped - get a float value from 2 byte swapped registers
- SYNOPSIS
- --------
- *float modbus_get_float_swapped(const uint16_t *'src');*
- DESCRIPTION
- -----------
- The _modbus_get_float_swapped()_ function shall get a float from 4 bytes in
- swapped Modbus format (DCBA order). The 'src' array must be pointer on two 16
- bits values, for example, if the first word is set to 0x9a22 and the second to
- 0x6544, the float value read will be 916.540649.
- RETURN VALUE
- ------------
- The _modbus_get_float_swapped()_ function shall return a float.
- SEE ALSO
- --------
- linkmb:modbus_set_float_swapped[3]
- linkmb:modbus_set_float[3]
- linkmb:modbus_get_float[3]
- AUTHORS
- -------
- The libmodbus documentation was written by Stéphane Raimbault
- <stephane.raimbault@gmail.com>
|