MODBUS_RTU_GET_RTS(3)
π MODBUS_RTU_GET_RTS(3) π
okay bestie, welcome to the libmodbus Manual page for modbus_rtu_get_rts β yes the title is shouty in all caps, that's just how man pages are, they woke up and chose drama π
β¨ NAME β¨
modbus_rtu_get_rts β get the current RTS mode in RTU
like. it literally tells you what RTS mode you're in rn. that's the whole job. queen behavior.
πΈ SYNOPSIS πΈ
int modbus_rtu_get_rts(modbus_t *ctx);
one function, one pointer, zero drama (well, almost β see ERRORS π)
π¦ DESCRIPTION π¦
so the modbus_rtu_get_rts() function shall get the current Request To Send mode of the libmodbus context ctx. it's giving "hey what's your RTS vibe rn" and the answer comes back as one of these three icons:
MODBUS_RTU_RTS_NONEMODBUS_RTU_RTS_UPMODBUS_RTU_RTS_DOWN
that's it, that's the whole menu, no secret fourth option, no deluxe combo, periodt π
heads up bestie: this function can only be used with a context using a RTU backend. it's an RTU-only girlie, she does not do other backends, no cap.
π RETURN VALUE π
if everything's cute: the function shall return the current RTS mode. slay β¨
if everything's NOT cute: it shall return -1 and set errno. yes we're getting a -1, yes we're checking errno, that's just the vibe check failing π
π₯ ERRORS π₯
EINVALβ the libmodbus backend is not RTU. she said "wrong backend bestie" and hung up π
π SEE ALSO π
modbus_rtu_set_rts(3)β the setter to this getter, they're a matched set, iykyk π
π AUTHORS π
the libmodbus documentation was written by StΓ©phane Raimbault <stephane.raimbault@gmail.com> β thank you for the lore, icon π«Ά
and that's the whole page fr fr!! this was libmodbus v3.1.6, dated 11/17/2025, and honestly? iconic of it. go forth and check your RTS mode, bestie πβ¨ππ¦
π¦ 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