Commit 31ae9ef93dffe815e9397f4a718a8a577126f407
1 parent
42dbf067
Update documentation of modbus_rtu_set_rts
Showing
2 changed files
with
5 additions
and
5 deletions
doc/modbus_rtu_set_rts.txt
| ... | ... | @@ -18,11 +18,11 @@ The *modbus_rtu_set_rts()* function shall set the Request To Send mode to |
| 18 | 18 | communicate on a RS485 serial bus. By default, the mode is set to |
| 19 | 19 | `MODBUS_RTU_RTS_NONE` and no signal is issued before writing data on the wire. |
| 20 | 20 | |
| 21 | -To enable the RTS mode, the values `MODBUS_RTU_RTS_UP` or `MODBUS_RTU_RTS_DOWN` must | |
| 22 | -be used, these modes enable the RTS mode and set the polarity at the same | |
| 21 | +To enable the RTS mode, the values `MODBUS_RTU_RTS_UP` or `MODBUS_RTU_RTS_DOWN` | |
| 22 | +must be used, these modes enable the RTS mode and set the polarity at the same | |
| 23 | 23 | time. When `MODBUS_RTU_RTS_UP` is used, an ioctl call is made with RTS flag |
| 24 | -enabled then data is written on the bus after a delay of 1ms, then another ioctl | |
| 25 | -call is made with the RTS flag disabled and again a delay of 1ms occurs. | |
| 24 | +enabled then data is written on the bus after a delay of 1 ms, then another | |
| 25 | +ioctl call is made with the RTS flag disabled and again a delay of 1 ms occurs. | |
| 26 | 26 | The `MODBUS_RTU_RTS_DOWN` mode applies the same procedure but with an inversed |
| 27 | 27 | RTS flag. |
| 28 | 28 | ... | ... |
src/modbus-rtu-private.h
| ... | ... | @@ -26,7 +26,7 @@ |
| 26 | 26 | #define _MODBUS_RTU_CHECKSUM_LENGTH 2 |
| 27 | 27 | |
| 28 | 28 | /* Time waited beetween the RTS switch before transmit data or after transmit |
| 29 | - data before to read */ | |
| 29 | + data before to read (1 ms) */ | |
| 30 | 30 | #define _MODBUS_RTU_TIME_BETWEEN_RTS_SWITCH 1000 |
| 31 | 31 | |
| 32 | 32 | #if defined(_WIN32) | ... | ... |