modbus_set_float.txt 762 B

123456789101112131415161718192021222324252627282930313233343536
  1. modbus_set_float(3)
  2. ===================
  3. NAME
  4. ----
  5. modbus_set_float - set a float value from 2 registers
  6. SYNOPSIS
  7. --------
  8. *void modbus_set_float(float 'f', uint16_t *'dest');*
  9. Warning, this function is *deprecated* since libmodbus v3.2.0 and has been
  10. replaced by *modbus_set_float_dcba()*.
  11. DESCRIPTION
  12. -----------
  13. The *modbus_set_float()* function shall set a float to 4 bytes in Modbus format
  14. (ABCD). The _dest_ array must be pointer on two 16 bits values to be able to
  15. store the full result of the conversion.
  16. RETURN VALUE
  17. ------------
  18. There is no return values.
  19. SEE ALSO
  20. --------
  21. linkmb:modbus_get_float[3]
  22. linkmb:modbus_set_float_dcba[3]
  23. AUTHORS
  24. -------
  25. The libmodbus documentation was written by Stéphane Raimbault
  26. <stephane.raimbault@gmail.com>