'\" t
.\" Title: modbus_set_bits_from_bytes
.\" Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets vsnapshot
.\" Date: 10/15/2022
.\" Manual: libmodbus Manual
.\" Source: libmodbus v3.1.6
.\" Language: English
.\"
.TH "MODBUS_SET_BITS_FROM" "3" "10/15/2022" "libmodbus v3\&.1\&.6" "libmodbus Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
modbus_set_bits_from_bytes \- set many bits from an array of bytes
.SH "SYNOPSIS"
.sp
\fBvoid modbus_set_bits_from_bytes(uint8_t *\fR\fB\fIdest\fR\fR\fB, int \fR\fB\fIindex\fR\fR\fB, unsigned int \fR\fB\fInb_bits\fR\fR\fB, const uint8_t *\fR\fB\fItab_byte\fR\fR\fB);\fR
.SH "DESCRIPTION"
.sp
The \fBmodbus_set_bits_from_bytes\fR function shall set bits by reading an array of bytes\&. All the bits of the bytes read from the first position of the array \fItab_byte\fR are written as bits in the \fIdest\fR array starting at position \fIindex\fR\&.
.SH "RETURN VALUE"
.sp
There is no return values\&.
.SH "SEE ALSO"
.sp
\fBmodbus_set_bits_from_byte\fR(3) \fBmodbus_get_byte_from_bits\fR(3)
.SH "AUTHORS"
.sp
The libmodbus documentation was written by Stéphane Raimbault