1MODBUS_GET_BYTE_FROM(3) libmodbus Manual MODBUS_GET_BYTE_FROM(3)
2
3
4
6 modbus_get_byte_from_bits - get the value from many bits
7
9 uint8_t modbus_get_byte_from_bits(const uint8_t *src, int index,
10 unsigned int nb_bits);
11
13 The modbus_get_byte_from_bits() function shall extract a value from
14 many bits. All nb_bits bits from src at position index will be read as
15 a single value. To obtain a full byte, set nb_bits to 8.
16
18 The function shall return a byte containing the bits read.
19
21 modbus_set_bits_from_byte(3) modbus_set_bits_from_bytes(3)
22
24 The libmodbus documentation was written by Stéphane Raimbault
25 <stephane.raimbault@gmail.com>
26
27
28
29libmodbus v3.1.6 07/21/2022 MODBUS_GET_BYTE_FROM(3)