1MODBUS_GET_BYTE_FROM(3)        Libmodbus Manual        MODBUS_GET_BYTE_FROM(3)
2
3
4

NAME

6       modbus_get_byte_from_bits - get the value from many bits
7

SYNOPSIS

9       uint8_t modbus_get_byte_from_bits(const uint8_t *src, int index,
10       unsigned int nb_bits);
11

DESCRIPTION

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

RETURN VALUE

18       The modbus_get_byte_from_bits() function shall return a byte containing
19       the bits read.
20

SEE ALSO

22       modbus_set_bits_from_byte(3) modbus_set_bits_from_bytes(3)
23

AUTHORS

25       The libmodbus documentation was written by Stéphane Raimbault
26       <stephane.raimbault@gmail.com[1]>
27

NOTES

29        1. stephane.raimbault@gmail.com
30           mailto:stephane.raimbault@gmail.com
31
32
33
34libmodbus 3.0.8                   07/31/2019           MODBUS_GET_BYTE_FROM(3)
Impressum