1MODBUS_SET_FLOAT_CDA(3) libmodbus Manual MODBUS_SET_FLOAT_CDA(3)
2
3
4
6 modbus_set_float_cdab - set a float value in 2 registers using CDAB
7 byte order
8
10 void modbus_set_float_cdab(float f, uint16_t *dest);
11
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
19 There is no return values.
20
22 modbus_get_float_cdab(3) modbus_set_float_abcd(3)
23 modbus_set_float_badc(3) modbus_set_float_dcba(3)
24
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_CDA(3)