modbus_get_float man page

modbus_get_float — get a float value

Synopsis

float modbus_get_float(const uint16_t *src);

Description

The modbus_get_float() function shall get a float from 4 bytes in Modbus format. The src array must be pointer on two 16 bits values, for example, if the first word is set to 0x4465 and the second to 0x229a, the float value read will be 916.540649.

Return Value

The modbus_get_float() function shall return a float.

See Also

modbus_set_float(3)

Authors

The libmodbus documentation was written by Stéphane Raimbault <stephane.raimbault@gmail.com[1]>

Notes

1.

stephane.raimbault@gmail.com

mailto:stephane.raimbault@gmail.com

Referenced By

libmodbus(7).

04/02/2014 libmodbus 3.0.6 Libmodbus Manual