Commit e42770aac2396ba720117e5da1618aff43810be7

Authored by Stéphane Raimbault
1 parent 26131384

Many small fixes and improvements to the documentation

doc/modbus_close.txt
... ... @@ -9,7 +9,7 @@ modbus_close - close a Modbus connection
9 9  
10 10 SYNOPSIS
11 11 --------
12   -*int modbus_close(*modbus_t 'ctx');*
  12 +*int modbus_close(modbus_t *'ctx');*
13 13  
14 14  
15 15 DESCRIPTION
... ...
doc/modbus_connect.txt
... ... @@ -9,7 +9,7 @@ modbus_connect - establish a Modbus connection
9 9  
10 10 SYNOPSIS
11 11 --------
12   -*int modbus_connect(*modbus_t 'ctx');*
  12 +*int modbus_connect(modbus_t *'ctx');*
13 13  
14 14  
15 15 DESCRIPTION
... ...
doc/modbus_flush.txt
... ... @@ -9,7 +9,7 @@ modbus_flush - flush non-transmitted data
9 9  
10 10 SYNOPSIS
11 11 --------
12   -*int modbus_flush(*modbus_t 'ctx');*
  12 +*int modbus_flush(modbus_t *'ctx');*
13 13  
14 14  
15 15 DESCRIPTION
... ...
doc/modbus_free.txt
... ... @@ -9,7 +9,7 @@ modbus_free - free a libmodbus context
9 9  
10 10 SYNOPSIS
11 11 --------
12   -*void modbus_free(*modbus_t 'ctx');*
  12 +*void modbus_free(modbus_t *'ctx');*
13 13  
14 14  
15 15 DESCRIPTION
... ...
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
... ... @@ -9,7 +9,7 @@ modbus_new_tcp - create a libmodbus context for TCP/IPv4
9 9  
10 10 SYNOPSIS
11 11 --------
12   -*modbus_t modbus_new_tcp(const char *'ip', int 'port');*
  12 +*modbus_t *modbus_new_tcp(const char *'ip', int 'port');*
13 13  
14 14  
15 15 DESCRIPTION
... ...
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
... ... @@ -9,7 +9,7 @@ modbus_receive - receive a indication request
9 9  
10 10 SYNOPSIS
11 11 --------
12   -*int modbus_receive(*modbus_t 'ctx', uint8_t *'req');*
  12 +*int modbus_receive(modbus_t *'ctx', uint8_t *'req');*
13 13  
14 14  
15 15 DESCRIPTION
... ...
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
... ... @@ -41,7 +41,7 @@ successful. Otherwise it shall return -1 and set errno.
41 41  
42 42 ERRORS
43 43 ------
44   -EINVAL::
  44 +*EINVAL*::
45 45 The exception code is invalid
46 46  
47 47  
... ...
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
... ... @@ -9,7 +9,7 @@ modbus_rtu_set_serial_mode - set the serial mode
9 9  
10 10 SYNOPSIS
11 11 --------
12   -*int modbus_rtu_set_serial_mode(*modbus_t 'ctx');*
  12 +*int modbus_rtu_set_serial_mode(modbus_t *'ctx');*
13 13  
14 14  
15 15 DESCRIPTION
... ...
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
... ... @@ -8,7 +8,7 @@ modbus_set_debug - set debug flag of the context
8 8  
9 9 SYNOPSIS
10 10 --------
11   -*void modbus_set_debug(*modbus_t 'ctx', int 'boolean');*
  11 +*void modbus_set_debug(modbus_t *'ctx', int 'boolean');*
12 12  
13 13  
14 14 DESCRIPTION
... ...
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
... ...