modbus_set_float.txt 681 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. DESCRIPTION
  10. -----------
  11. The *modbus_set_float()* function shall set a float to 4 bytes in Modbus format
  12. (ABCD). The _dest_ array must be pointer on two 16 bits values to be able to
  13. store the full result of the conversion.
  14. RETURN VALUE
  15. ------------
  16. There is no return values.
  17. SEE ALSO
  18. --------
  19. linkmb:modbus_set_float[3]
  20. linkmb:modbus_set_float_dcba[3]
  21. linkmb:modbus_get_float_dcba[3]
  22. AUTHORS
  23. -------
  24. The libmodbus documentation was written by Stéphane Raimbault
  25. <stephane.raimbault@gmail.com>