modbus_get_byte_from_bits.txt 764 B

1234567891011121314151617181920212223242526272829303132333435
  1. modbus_get_byte_from_bits(3)
  2. ============================
  3. NAME
  4. ----
  5. modbus_get_byte_from_bits - get the value from many bits
  6. SYNOPSIS
  7. --------
  8. *uint8_t modbus_get_byte_from_bits(const uint8_t *'src', int 'index', unsigned int 'nb_bits');*
  9. DESCRIPTION
  10. -----------
  11. The *modbus_get_byte_from_bits()* function shall extract a value from many
  12. bits. All _nb_bits_ bits from _src_ at position _index_ will be read as a
  13. single value. To obtain a full byte, set nb_bits to 8.
  14. RETURN VALUE
  15. ------------
  16. The function shall return a byte containing the bits read.
  17. SEE ALSO
  18. --------
  19. linkmb:modbus_set_bits_from_byte[3]
  20. linkmb:modbus_set_bits_from_bytes[3]
  21. AUTHORS
  22. -------
  23. The libmodbus documentation was written by Stéphane Raimbault
  24. <stephane.raimbault@gmail.com>