modbus_get_float.txt 680 B

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