modbus_get_float.txt 868 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. modbus_get_float(3)
  2. ===================
  3. NAME
  4. ----
  5. modbus_get_float - get a float value from 2 registers
  6. SYNOPSIS
  7. --------
  8. *float modbus_get_float(const uint16_t *'src');*
  9. Warning, this function is *deprecated* since libmodbus v3.2.0 and has been
  10. replaced by *modbus_get_float_dcba()*.
  11. DESCRIPTION
  12. -----------
  13. The *modbus_get_float()* function shall get a float from 4 bytes in Modbus
  14. format (DCBA byte order). The _src_ array must be a pointer on two 16 bits
  15. values, for example, if the first word is set to 0x4465 and the second to
  16. 0x229a, the float value will be 916.540649.
  17. RETURN VALUE
  18. ------------
  19. The function shall return a float.
  20. SEE ALSO
  21. --------
  22. linkmb:modbus_set_float[3]
  23. linkmb:modbus_set_float_dcba[3]
  24. linkmb:modbus_get_float_dcba[3]
  25. AUTHORS
  26. -------
  27. The libmodbus documentation was written by Stéphane Raimbault
  28. <stephane.raimbault@gmail.com>