瀏覽代碼

Update documentation of modbus_rtu_set_rts

Stéphane Raimbault 9 年之前
父節點
當前提交
31ae9ef93d
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 4 4
      doc/modbus_rtu_set_rts.txt
  2. 1 1
      src/modbus-rtu-private.h

+ 4 - 4
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.
 

+ 1 - 1
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)