Browse Source

Add entries for modbus_rtu_[get|set]_delay in documentation index

Stéphane Raimbault 10 years ago
parent
commit
90df02156f
2 changed files with 3 additions and 0 deletions
  1. 2 0
      doc/libmodbus.txt
  2. 1 0
      src/modbus-rtu.c

+ 2 - 0
doc/libmodbus.txt

@@ -81,6 +81,8 @@ Set the serial mode::
     linkmb:modbus_rtu_get_rts[3]
     linkmb:modbus_rtu_set_rts[3]
     linkmb:modbus_rtu_set_custom_rts[3]
+    linkmb:modbus_rtu_get_rts_delay[3]
+    linkmb:modbus_rtu_set_rts_delay[3]
 
 
 TCP (IPv4) Context

+ 1 - 0
src/modbus-rtu.c

@@ -1262,6 +1262,7 @@ modbus_t* modbus_new_rtu(const char *device,
     /* Calculate estimated time in micro second to send one byte */
     ctx_rtu->onebyte_time = 1000000 * (1 + data_bit + (parity == 'N' ? 0 : 1) + stop_bit) / baud;
 
+    /* The internal function is used by default to set RTS */
     ctx_rtu->set_rts = _modbus_rtu_ioctl_rts;
 
     /* The delay before and after transmission when toggling the RTS pin */