5 modbus_rtu_get_rts - get the current RTS mode in RTU
10 int modbus_rtu_get_rts(modbus_t *ctx);
15 The *modbus_rtu_get_rts()* function shall get the current Request To Send mode
16 of the libmodbus context `ctx`. The possible returned values are:
18 - `MODBUS_RTU_RTS_NONE`
20 - `MODBUS_RTU_RTS_DOWN`
22 This function can only be used with a context using a RTU backend.
26 The function shall return the current RTS mode if successful. Otherwise it
27 shall return -1 and set errno to one of the values defined below.
31 - *EINVAL*, the libmodbus backend is not RTU.
35 - [modbus_rtu_set_rts](modbus_rtu_set_rts.md)