From fe1060b3393b3ae3891433cff33a14549590c0c5 Mon Sep 17 00:00:00 2001 From: James Jarvis Date: Thu, 16 Feb 2017 16:55:58 -0600 Subject: [PATCH] Added to man page and cfg header --- doc/mbusd.8.in | 6 ++++++ src/cfg.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/doc/mbusd.8.in b/doc/mbusd.8.in index a8daceb..a430935 100644 --- a/doc/mbusd.8.in +++ b/doc/mbusd.8.in @@ -37,6 +37,12 @@ Usage help. Instruct \fImbusd\fR not to fork itself (non-daemonize). .IP \fB-t\fR Enable RTS RS-485 data direction control (if not disabled while compile). +.IP "\fB-y \fIfile\fR" +Enable RS-485 direction data direction control by writing '1' to file +for transmitter enable and '0' to file for transmitter disable +.IP "\fB-Y \fIfile\fR" +Enable RS-485 direction data direction control by writing '0' to file +for transmitter enable and '1' to file for transmitter disable .IP "\fB-v \fIlevel\fR" Specifies log verbosity level. 0 enables logging of errors only, 1 also enables warnings and 2 enables information messages. diff --git a/src/cfg.h b/src/cfg.h index d3012f6..2416d2c 100644 --- a/src/cfg.h +++ b/src/cfg.h @@ -56,6 +56,8 @@ typedef struct char *ttymode; /* trx control type (0 - ADDC, 1 - by RTS, 2 - by sysfs GPIO with 1 activating transmit, 3 - by sysfs GPIO with 0 activating transmit) */ int trxcntl; + /* trx control sysfs file */ + char trxcntl_file[INTBUFSIZE + 1]; /* TCP server port number */ int serverport; /* maximum number of connections */