1MODBUS_GET_FLOAT(3) libmodbus Manual MODBUS_GET_FLOAT(3)
2
3
4
6 modbus_get_float - get a float value from 2 registers
7
9 float modbus_get_float(const uint16_t *src);
10
11 Warning, this function is deprecated since libmodbus v3.2.0 and has
12 been replaced by modbus_get_float_dcba().
13
15 The modbus_get_float() function shall get a float from 4 bytes in
16 Modbus format (DCBA byte order). The src array must be a pointer on two
17 16 bits values, for example, if the first word is set to 0x4465 and the
18 second to 0x229a, the float value will be 916.540649.
19
21 The function shall return a float.
22
24 modbus_set_float(3) modbus_set_float_dcba(3) modbus_get_float_dcba(3)
25
27 The libmodbus documentation was written by Stéphane Raimbault
28 <stephane.raimbault@gmail.com>
29
30
31
32libmodbus v3.1.6 02/04/2022 MODBUS_GET_FLOAT(3)