MODBUS_SET_FLOAT_CDA(3)
β¨ NAME β¨
modbus_set_float_cdab β bestie, this is the one that drops a float value into 2 registers using CDAB byte order π
(it lives in the libmodbus manual, and it's lowkey iconic)
πΈ SYNOPSIS πΈ
void modbus_set_float_cdab(float f, uint16_t *dest);
π DESCRIPTION π
okay so modbus_set_float_cdab() shall set a float to 4 bytes in swapped words Modbus format β that's CDAB order instead of ABCD, no cap. π¦
and likeβ¦ the dest array must be pointer on two 16 bits values so it can actually hold the full result of the conversion, bestie. two. not one. the whole conversion needs both of them or it's giving overflow energy. π
π RETURN VALUE π
there is no return values. nothing. void. she does her job and says nothing, main character energy fr fr. π
π«Ά SEE ALSO π«Ά
go read the whole squad, they're all obsessed with each other. β¨
π AUTHORS π
the libmodbus documentation was written by StΓ©phane Raimbault <stephane.raimbault@gmail.com> β legend behaviour, honestly. π
and that's the whole page!! this was libmodbus v3.1.6, dated 11/17/2025 β bookmark it, screenshot it, tell your friends, because we ate and left no crumbs π πΈπ
π¦ where this page comes from
- debian bookworm: libmodbus-dev 3.1.6-2.1+deb12u1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms