From 31ae9ef93dffe815e9397f4a718a8a577126f407 Mon Sep 17 00:00:00 2001 From: Stéphane Raimbault Date: Tue, 4 Aug 2015 16:05:39 +0200 Subject: [PATCH] Update documentation of modbus_rtu_set_rts --- doc/modbus_rtu_set_rts.txt | 8 ++++---- src/modbus-rtu-private.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/modbus_rtu_set_rts.txt b/doc/modbus_rtu_set_rts.txt index eabb25b..baccebf 100644 --- a/doc/modbus_rtu_set_rts.txt +++ b/doc/modbus_rtu_set_rts.txt @@ -18,11 +18,11 @@ The *modbus_rtu_set_rts()* function shall set the Request To Send mode to communicate on a RS485 serial bus. By default, the mode is set to `MODBUS_RTU_RTS_NONE` and no signal is issued before writing data on the wire. -To enable the RTS mode, the values `MODBUS_RTU_RTS_UP` or `MODBUS_RTU_RTS_DOWN` must -be used, these modes enable the RTS mode and set the polarity at the same +To enable the RTS mode, the values `MODBUS_RTU_RTS_UP` or `MODBUS_RTU_RTS_DOWN` +must be used, these modes enable the RTS mode and set the polarity at the same time. When `MODBUS_RTU_RTS_UP` is used, an ioctl call is made with RTS flag -enabled then data is written on the bus after a delay of 1ms, then another ioctl -call is made with the RTS flag disabled and again a delay of 1ms occurs. +enabled then data is written on the bus after a delay of 1 ms, then another +ioctl call is made with the RTS flag disabled and again a delay of 1 ms occurs. The `MODBUS_RTU_RTS_DOWN` mode applies the same procedure but with an inversed RTS flag. diff --git a/src/modbus-rtu-private.h b/src/modbus-rtu-private.h index a8cf9b6..ab328c9 100644 --- a/src/modbus-rtu-private.h +++ b/src/modbus-rtu-private.h @@ -26,7 +26,7 @@ #define _MODBUS_RTU_CHECKSUM_LENGTH 2 /* Time waited beetween the RTS switch before transmit data or after transmit - data before to read */ + data before to read (1 ms) */ #define _MODBUS_RTU_TIME_BETWEEN_RTS_SWITCH 1000 #if defined(_WIN32) -- libgit2 0.21.4