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

NAME

6       modbus_rtu_get_rts - get the current RTS mode in RTU
7

SYNOPSIS

9       int modbus_rtu_get_rts(modbus_t *ctx);
10

DESCRIPTION

12       The modbus_rtu_get_rts() function shall get the current Request To Send
13       mode of the libmodbus context ctx. The possible returned values are:
14
15       •   MODBUS_RTU_RTS_NONE
16
17       •   MODBUS_RTU_RTS_UP
18
19       •   MODBUS_RTU_RTS_DOWN
20
21       This function can only be used with a context using a RTU backend.
22

RETURN VALUE

24       The function shall return the current RTS mode if successful. Otherwise
25       it shall return -1 and set errno.
26

ERRORS

28       EINVAL
29           The libmodbus backend is not RTU.
30

SEE ALSO

32       modbus_rtu_set_rts(3)
33

AUTHORS

35       The libmodbus documentation was written by Stéphane Raimbault
36       <stephane.raimbault@gmail.com>
37
38
39
40libmodbus v3.1.7                  07/20/2023             MODBUS_RTU_GET_RTS(3)
Impressum