MODBUS_RTU_SET_RTS_D(3)
π MODBUS_RTU_SET_RTS_D π
okay bestie, so this is a page from the libmodbus Manual β yes, that libmodbus, the one that lives in section 3 of your man pages and talks to serial hardware like it owns the place. and we're talking about modbus_rtu_set_rts_delay today. it's giving "small function, big responsibility". let's get into it π«Ά
β¨ NAME β¨
modbus_rtu_set_rts_delay β set the RTS delay in RTU
no cap, that's literally the whole job description.
πΈ SYNOPSIS πΈ
int modbus_rtu_set_rts_delay(modbus_t *ctx, int us);
π¦ DESCRIPTION π¦
okay so the modbus_rtu_set_rts_delay() function shall set the Request To Send delay period of the libmodbus context ctx. that's it. that's the assignment. RTS delay = set. slay. π
and here's the tea, bestie: this function can only be used with a context using an RTU backend. that's the vibe check it has to pass. if your backend isn't RTU, it's not happening, periodt.
π RETURN VALUE π
0β it worked, we ate, no crumbs. π-1β it didn't work, and it setserrnoto tell you why. π
π ERRORS π
EINVALβ the libmodbus backend is not RTU, or a negative delay was specified. like, girl, you can't have negative time. that's not a thing. π
π₯ SEE ALSO π₯
modbus_rtu_get_rts_delay(3)β the sibling, the counterpart, the one that reads instead of writes. iykyk. π
π AUTHORS π
- Jimmy BergstrΓΆm <jimmy@ekontroll.com> π
- The libmodbus documentation was written by StΓ©phane Raimbault <stephane.raimbault@gmail.com> β¨
no notes, just respect for the people who wrote the docs so we could all understand our serial ports. icons only. π
and that's the page, bestie β written with libmodbus v3.1.6, dated 11/17/2025, in the section we call MODBUS_RTU_SET_RTS_D(3). go forth and set those delays. main character energy only. π π¦β
π¦ 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