'\" t .\" Title: modbus_rtu_get_rts .\" Author: [see the "AUTHORS" section] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 02/28/2020 .\" Manual: libmodbus Manual .\" Source: libmodbus v3.1.6 .\" Language: English .\" .TH "MODBUS_RTU_GET_RTS" "3" "02/28/2020" "libmodbus v3\&.1\&.6" "libmodbus Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" modbus_rtu_get_rts \- get the current RTS mode in RTU .SH "SYNOPSIS" .sp \fBint modbus_rtu_get_rts(modbus_t *\fR\fB\fIctx\fR\fR\fB);\fR .SH "DESCRIPTION" .sp The \fBmodbus_rtu_get_rts()\fR function shall get the current Request To Send mode of the libmodbus context \fIctx\fR\&. The possible returned values are: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} MODBUS_RTU_RTS_NONE .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} MODBUS_RTU_RTS_UP .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} MODBUS_RTU_RTS_DOWN .RE .sp This function can only be used with a context using a RTU backend\&. .SH "RETURN VALUE" .sp The function shall return the current RTS mode if successful\&. Otherwise it shall return \-1 and set errno\&. .SH "ERRORS" .PP \fBEINVAL\fR .RS 4 The libmodbus backend is not RTU\&. .RE .SH "SEE ALSO" .sp \fBmodbus_rtu_set_rts\fR(3) .SH "AUTHORS" .sp The libmodbus documentation was written by Stéphane Raimbault