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

NAME

6       modbus_set_float_badc - set a float value in 2 registers using BADC
7       byte order
8

SYNOPSIS

10       void modbus_set_float_badc(float f, uint16_t *dest);
11

DESCRIPTION

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

RETURN VALUE

19       There is no return values.
20

SEE ALSO

22       modbus_get_float_badc(3) modbus_set_float_abcd(3)
23       modbus_set_float_cdab(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.6                  02/04/2022           MODBUS_SET_FLOAT_BAD(3)
Impressum