Debian Codegraph @

docs/modbus_rtu_set_rts_delay.md

raw symbols SCIP
1 # modbus_rtu_set_rts_delay
2
3 ## Name
4
5 modbus_rtu_set_rts_delay - set the RTS delay in RTU
6
7 ## Synopsis
8
9 ```c
10 int modbus_rtu_set_rts_delay(modbus_t *ctx, int us);
11 ```
12
13 ## Description
14
15 The `modbus_rtu_set_rts_delay()` function shall set the Request To Send delay
16 period of the libmodbus context 'ctx'.
17
18 This function can only be used with a context using a RTU backend.
19
20 ## Return value
21
22 The `modbus_rtu_set_rts_delay()` function shall return 0 if successful.
23 Otherwise it shall return -1 and set errno.
24
25 ## Errors
26
27 - *EINVAL*, the libmodbus backend is not RTU or a negative delay was specified.
28
29 ## See also
30
31 - [modbus_rtu_get_rts_delay](modbus_rtu_get_rts_delay.md)