1 # modbus_rtu_get_rts_delay
5 modbus_rtu_get_rts_delay - get the current RTS delay in RTU
10 int modbus_rtu_get_rts_delay(modbus_t *ctx);
15 The `modbus_rtu_get_rts_delay()` function shall get the current Request To Send
16 delay period of the libmodbus context 'ctx'.
18 This function can only be used with a context using a RTU backend.
22 The function shall return the current RTS delay in microseconds if successful.
23 Otherwise it shall return -1 and set errno to one of the values defined below.
27 - *EINVAL*, the libmodbus backend is not RTU.
31 - [modbus_rtu_set_rts_delay](modbus_rtu_set_rts_delay.md)