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

NAME

6       modbus_set_float_cdab - set a float value in 2 registers using CDAB
7       byte order
8

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

19       There is no return values.
20

SEE ALSO

22       modbus_get_float_cdab(3) modbus_set_float_abcd(3)
23       modbus_set_float_badc(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                  07/21/2022           MODBUS_SET_FLOAT_CDA(3)
Impressum