---
name: "modbus_set_bits_from_byte"
section: "3"
platform: "linux"
package: "libmodbus-dev"
version: "3.1.6-2.1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/modbus_set_bits_from_byte"
---

# modbus\_set\_bits\_from\_byte(3)

set many bits from a single byte value

## NAME

modbus\_set\_bits\_from\_byte - set many bits from a single byte value

## SYNOPSIS

**void modbus\_set\_bits\_from\_byte(uint8\_t \****dest***, int** *index***, const uint8\_t** *value***);**

## DESCRIPTION

The **modbus\_set\_bits\_from\_byte()** function shall set many bits from a single byte. All 8 bits from the byte *value* will be written to *dest* array starting at *index* position.

## RETURN VALUE

There is no return values.

## SEE ALSO

[**modbus\_set\_bits\_from\_byte**(3)](/modbus_set_bits_from_byte/3.md) [**modbus\_set\_bits\_from\_bytes**(3)](/modbus_set_bits_from_bytes/3.md)

## AUTHORS

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