Commit 90df02156f67ef8d9d2a5009c238acc8e08869e5

Authored by Stéphane Raimbault
1 parent cf22eabc

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

doc/libmodbus.txt
@@ -81,6 +81,8 @@ Set the serial mode:: @@ -81,6 +81,8 @@ Set the serial mode::
81 linkmb:modbus_rtu_get_rts[3] 81 linkmb:modbus_rtu_get_rts[3]
82 linkmb:modbus_rtu_set_rts[3] 82 linkmb:modbus_rtu_set_rts[3]
83 linkmb:modbus_rtu_set_custom_rts[3] 83 linkmb:modbus_rtu_set_custom_rts[3]
  84 + linkmb:modbus_rtu_get_rts_delay[3]
  85 + linkmb:modbus_rtu_set_rts_delay[3]
84 86
85 87
86 TCP (IPv4) Context 88 TCP (IPv4) Context
src/modbus-rtu.c
@@ -1262,6 +1262,7 @@ modbus_t* modbus_new_rtu(const char *device, @@ -1262,6 +1262,7 @@ modbus_t* modbus_new_rtu(const char *device,
1262 /* Calculate estimated time in micro second to send one byte */ 1262 /* Calculate estimated time in micro second to send one byte */
1263 ctx_rtu->onebyte_time = 1000000 * (1 + data_bit + (parity == 'N' ? 0 : 1) + stop_bit) / baud; 1263 ctx_rtu->onebyte_time = 1000000 * (1 + data_bit + (parity == 'N' ? 0 : 1) + stop_bit) / baud;
1264 1264
  1265 + /* The internal function is used by default to set RTS */
1265 ctx_rtu->set_rts = _modbus_rtu_ioctl_rts; 1266 ctx_rtu->set_rts = _modbus_rtu_ioctl_rts;
1266 1267
1267 /* The delay before and after transmission when toggling the RTS pin */ 1268 /* The delay before and after transmission when toggling the RTS pin */