1MODBUS_SET_FLOAT(3)            libmodbus Manual            MODBUS_SET_FLOAT(3)
2
3
4

NAME

6       modbus_set_float - set a float value from 2 registers
7

SYNOPSIS

9       void modbus_set_float(float f, uint16_t *dest);
10
11       Warning, this function is deprecated since libmodbus v3.2.0 and has
12       been replaced by modbus_set_float_dcba().
13

DESCRIPTION

15       The modbus_set_float() function shall set a float to 4 bytes in Modbus
16       format (ABCD). The dest array must be pointer on two 16 bits values to
17       be able to store the full result of the conversion.
18

RETURN VALUE

20       There is no return values.
21

SEE ALSO

23       modbus_get_float(3) modbus_set_float_dcba(3)
24

AUTHORS

26       The libmodbus documentation was written by Stéphane Raimbault
27       <stephane.raimbault@gmail.com>
28
29
30
31libmodbus v3.1.7                  07/20/2023               MODBUS_SET_FLOAT(3)
Impressum