Commit e42770aac2396ba720117e5da1618aff43810be7
1 parent
26131384
Many small fixes and improvements to the documentation
Showing
19 changed files
with
21 additions
and
20 deletions
doc/modbus_close.txt
doc/modbus_connect.txt
doc/modbus_flush.txt
doc/modbus_free.txt
doc/modbus_get_byte_timeout.txt
| ... | ... | @@ -9,7 +9,7 @@ modbus_get_byte_timeout - get timeout between bytes |
| 9 | 9 | |
| 10 | 10 | SYNOPSIS |
| 11 | 11 | -------- |
| 12 | -*void modbus_get_byte_timeout(*modbus_t 'ctx', struct timeval *'timeout');* | |
| 12 | +*void modbus_get_byte_timeout(modbus_t *'ctx', struct timeval *'timeout');* | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | DESCRIPTION | ... | ... |
doc/modbus_get_response_timeout.txt
| ... | ... | @@ -9,7 +9,7 @@ modbus_get_response_timeout - get timeout for response |
| 9 | 9 | |
| 10 | 10 | SYNOPSIS |
| 11 | 11 | -------- |
| 12 | -*void modbus_get_response_timeout(*modbus_t 'ctx', struct timeval *'timeout');* | |
| 12 | +*void modbus_get_response_timeout(modbus_t *'ctx', struct timeval *'timeout');* | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | DESCRIPTION | ... | ... |
doc/modbus_new_rtu.txt
| ... | ... | @@ -9,7 +9,7 @@ modbus_new_rtu - create a libmodbus context for RTU |
| 9 | 9 | |
| 10 | 10 | SYNOPSIS |
| 11 | 11 | -------- |
| 12 | -*modbus_t modbus_new_rtu(const char *'device', int 'baud', char 'parity', int 'data_bit', int 'stop_bit');* | |
| 12 | +*modbus_t *modbus_new_rtu(const char *'device', int 'baud', char 'parity', int 'data_bit', int 'stop_bit');* | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | ... | ... |
doc/modbus_new_tcp.txt
doc/modbus_new_tcp_pi.txt
| ... | ... | @@ -9,7 +9,7 @@ modbus_new_tcp_pi - create a libmodbus context for TCP Protocol Independent |
| 9 | 9 | |
| 10 | 10 | SYNOPSIS |
| 11 | 11 | -------- |
| 12 | -*modbus_t modbus_new_tcp_pi(const char *'node', const char *'service');* | |
| 12 | +*modbus_t *modbus_new_tcp_pi(const char *'node', const char *'service');* | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | DESCRIPTION | ... | ... |
doc/modbus_receive.txt
doc/modbus_receive_confirmation.txt
| ... | ... | @@ -9,7 +9,7 @@ modbus_receive_confirmation - receive a confirmation request |
| 9 | 9 | |
| 10 | 10 | SYNOPSIS |
| 11 | 11 | -------- |
| 12 | -*int modbus_receive_confirmation(*modbus_t 'ctx', uint8_t *'rsp');* | |
| 12 | +*int modbus_receive_confirmation(modbus_t *'ctx', uint8_t *'rsp');* | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | DESCRIPTION | ... | ... |
doc/modbus_receive_from.txt
| ... | ... | @@ -9,7 +9,7 @@ modbus_receive_from - receive a indication request from a socket |
| 9 | 9 | |
| 10 | 10 | SYNOPSIS |
| 11 | 11 | -------- |
| 12 | -*int modbus_receive_from(*modbus_t 'ctx', int sockfd, uint8_t *'req');* | |
| 12 | +*int modbus_receive_from(modbus_t *'ctx', int sockfd, uint8_t *'req');* | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | DESCRIPTION | ... | ... |
doc/modbus_reply_exception.txt
doc/modbus_rtu_get_serial_mode.txt
| ... | ... | @@ -9,7 +9,7 @@ modbus_rtu_get_serial_mode - get the current serial mode |
| 9 | 9 | |
| 10 | 10 | SYNOPSIS |
| 11 | 11 | -------- |
| 12 | -*int modbus_rtu_get_serial_mode(*modbus_t 'ctx');* | |
| 12 | +*int modbus_rtu_get_serial_mode(modbus_t *'ctx');* | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | DESCRIPTION |
| ... | ... | @@ -30,7 +30,8 @@ currently used by the libmodbus context: |
| 30 | 30 | automation because it can be used effectively over long distances and in |
| 31 | 31 | electrically noisy environments. |
| 32 | 32 | |
| 33 | -This function is only available on Linux kernels 2.6.28 onwards. | |
| 33 | +This function is only available on Linux kernels 2.6.28 onwards and can only be | |
| 34 | +used with a context using a RTU backend. | |
| 34 | 35 | |
| 35 | 36 | |
| 36 | 37 | RETURN VALUE | ... | ... |
doc/modbus_rtu_set_serial_mode.txt
doc/modbus_send_raw_request.txt
| ... | ... | @@ -9,7 +9,7 @@ modbus_send_raw_request - send a raw request |
| 9 | 9 | |
| 10 | 10 | SYNOPSIS |
| 11 | 11 | -------- |
| 12 | -*int modbus_send_raw_request(*modbus_t 'ctx', uint8_t *'raw_req, int 'raw_req_length');* | |
| 12 | +*int modbus_send_raw_request(modbus_t *'ctx', uint8_t *'raw_req, int 'raw_req_length');* | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | DESCRIPTION | ... | ... |
doc/modbus_set_byte_timeout.txt
| ... | ... | @@ -9,7 +9,7 @@ modbus_set_byte_timeout - set timeout between bytes |
| 9 | 9 | |
| 10 | 10 | SYNOPSIS |
| 11 | 11 | -------- |
| 12 | -*void modbus_set_byte_timeout(*modbus_t 'ctx', struct timeval *'timeout');* | |
| 12 | +*void modbus_set_byte_timeout(modbus_t *'ctx', struct timeval *'timeout');* | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | DESCRIPTION | ... | ... |
doc/modbus_set_debug.txt
doc/modbus_set_response_timeout.txt
| ... | ... | @@ -9,7 +9,7 @@ modbus_set_response_timeout - set timeout for response |
| 9 | 9 | |
| 10 | 10 | SYNOPSIS |
| 11 | 11 | -------- |
| 12 | -*void modbus_set_response_timeout(*modbus_t 'ctx', struct timeval *'timeout');* | |
| 12 | +*void modbus_set_response_timeout(modbus_t *'ctx', struct timeval *'timeout');* | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | DESCRIPTION | ... | ... |