MODBUS_SET_BITS_FROM(3)

πŸ“¦
version 3.1.6 Β· 3 versions
, in debian bookworm

πŸ’– MODBUS_SET_BITS_FROM_BYTE πŸ’–

okay bestie, welcome to the libmodbus manual, page MODBUS_SET_BITS_FROM(3). this one's a lil baby function and it's honestly so cute, let's get into it πŸŽ€


✨ 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 🌸

so, modbus_set_bits_from_byte() shall set many bits from a single byte. like, one (1) byte goes in, and a whole lil squad of bits comes out. 🫢

all 8 bits from the byte value get written into the dest array, starting at the index position. that's it. that's the whole vibe. every single one of the 8 bits, no skips, no cap. ✨


πŸ’œ RETURN VALUE πŸ’œ

there are no return values. it's void, bestie β€” it gives nothing back and honestly? iconic behaviour. it just does the thing and dips. πŸ’€


🌈 SEE ALSO 🌈


πŸ‘‘ AUTHORS πŸ‘‘

the libmodbus documentation was written by StΓ©phane Raimbault <stephane.raimbault@gmail.com> πŸŽ€


ngl this page is from libmodbus v3.1.6, dated 11/17/2025. that's the whole manual page bestie, go write some bits, slay, periodt πŸ’…βœ¨πŸ¦‹
πŸ“¦ where this page comes from