1MODBUS_RTU_SET_RTS_D(3)        libmodbus Manual        MODBUS_RTU_SET_RTS_D(3)
2
3
4

NAME

6       modbus_rtu_set_rts_delay - set the RTS delay in RTU
7

SYNOPSIS

9       int modbus_rtu_set_rts_delay(modbus_t *ctx, int us);
10

DESCRIPTION

12       The modbus_rtu_set_rts_delay() function shall set the Request To Send
13       delay period of the libmodbus context ctx.
14
15       This function can only be used with a context using a RTU backend.
16

RETURN VALUE

18       The modbus_rtu_set_rts_delay() function shall return 0 if successful.
19       Otherwise it shall return -1 and set errno.
20

ERRORS

22       EINVAL
23           The libmodbus backend is not RTU or a negative delay was specified.
24

SEE ALSO

26       modbus_rtu_get_rts_delay(3)
27

AUTHORS

29       Jimmy Bergström <jimmy@ekontroll.com>
30
31       The libmodbus documentation was written by Stéphane Raimbault
32       <stephane.raimbault@gmail.com>
33
34
35
36libmodbus v3.1.6                  07/21/2022           MODBUS_RTU_SET_RTS_D(3)
Impressum