| 1 | # modbus_set_bits_from_bytes |
| 2 | |
| 3 | ## Name |
| 4 | |
| 5 | modbus_set_bits_from_bytes - set many bits from an array of bytes |
| 6 | |
| 7 | ## Synopsis |
| 8 | |
| 9 | ```c |
| 10 | void modbus_set_bits_from_bytes(uint8_t *dest, int index, unsigned int nb_bits, const uint8_t *tab_byte); |
| 11 | ``` |
| 12 | |
| 13 | ## Description |
| 14 | |
| 15 | The *modbus_set_bits_from_bytes* function shall set bits by reading an array of |
| 16 | bytes. All the bits of the bytes read from the first position of the array |
| 17 | `tab_byte` are written as bits in the `dest` array starting at position `index`. |
| 18 | |
| 19 | ## Return value |
| 20 | |
| 21 | There is no return value. |
| 22 | |
| 23 | ## See also |
| 24 | |
| 25 | - [modbus_set_bits_from_byte](modbus_set_bits_from_byte.md) |
| 26 | - [modbus_get_byte_from_bits](modbus_get_byte_from_bits.md) |