modbus_get_float_dcba.txt 827 B

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