1MODBUS_GET_FLOAT_CDA(3) libmodbus Manual MODBUS_GET_FLOAT_CDA(3)
2
3
4
6 modbus_get_float_cdab - get a float value from 2 registers in CDAB byte
7 order
8
10 float modbus_get_float_cdab(const uint16_t *src);
11
13 The modbus_get_float_cdab() function shall get a float from 4 bytes
14 with swapped words (CDAB order instead of ABCD). The src array must be
15 a pointer on two 16 bits values, for example, if the first word is set
16 to F147 and the second to 0x0020, the float value will be read as
17 123456.0.
18
20 The function shall return a float.
21
23 modbus_set_float_cdab(3) modbus_get_float_abcd(3)
24 modbus_get_float_badc(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.7 07/20/2023 MODBUS_GET_FLOAT_CDA(3)