modbus_set_bits_from_bytes - Man Page

set many bits from an array of bytes

Synopsis

void modbus_set_bits_from_bytes(uint8_t *dest, int index, unsigned int nb_bits, const uint8_t *tab_byte);

Description

The modbus_set_bits_from_bytes function shall set bits by reading an array of bytes. All the bits of the bytes read from the first position of the array tab_byte are written as bits in the dest array starting at position index.

Return Value

There is no return values.

See Also

modbus_set_bits_from_byte(3) modbus_get_byte_from_bits(3)

Authors

The libmodbus documentation was written by Stéphane Raimbault <stephane.raimbault@gmail.com>

Referenced By

libmodbus(7), modbus_get_byte_from_bits(3), modbus_set_bits_from_byte(3).

01/25/2024 libmodbus v3.1.7 libmodbus Manual