1 # modbus_get_byte_from_bits
5 modbus_get_byte_from_bits - get the value from many bits
10 uint8_t modbus_get_byte_from_bits(const uint8_t *src, int index, unsigned int nb_bits);
15 The *modbus_get_byte_from_bits()* function shall extract a value from many
16 bits. All `nb_bits` bits from `src` at position `index` will be read as a
17 single value. To obtain a full byte, set `nb_bits` to 8.
21 The function shall return a byte containing the bits read.
25 - [modbus_set_bits_from_byte](modbus_set_bits_from_byte.md)
26 - [modbus_set_bits_from_bytes](modbus_set_bits_from_bytes.md)