modbus_get_float.txt 768 B

12345678910111213141516171819202122232425262728293031323334353637
  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. DESCRIPTION
  10. -----------
  11. The _modbus_get_float()_ function shall get a float from 4 bytes in Modbus
  12. format (ABCD order). The 'src' array must be pointer on two 16 bits values, for
  13. example, if the first word is set to 0x4465 and the second to 0x229a, the float
  14. value 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. linkmb:modbus_set_float_dcba[3]
  22. linkmb:modbus_get_float_dcba[3]
  23. AUTHORS
  24. -------
  25. The libmodbus documentation was written by Stéphane Raimbault
  26. <stephane.raimbault@gmail.com>