Selaa lähdekoodia

Fixed a few minor doc typos

Jon Mills 9 vuotta sitten
vanhempi
commit
b4763407c5

+ 1 - 1
doc/modbus_connect.txt

@@ -14,7 +14,7 @@ SYNOPSIS
 
 DESCRIPTION
 -----------
-The *modbus_connect()* function shall etablish a connection to a Modbus server,
+The *modbus_connect()* function shall establish a connection to a Modbus server,
 a network or a bus using the context information of libmodbus context given in
 argument.
 

+ 1 - 1
doc/modbus_new_tcp.txt

@@ -18,7 +18,7 @@ The *modbus_new_tcp()* function shall allocate and initialize a modbus_t
 structure to communicate with a Modbus TCP IPv4 server.
 
 The _ip_ argument specifies the IP address of the server to which the client
-wants etablish a connection. A NULL value can be used to listen any addresses in
+wants to establish a connection. A NULL value can be used to listen any addresses in
 server mode.
 
 The _port_ argument is the TCP port to use. Set the port to

+ 1 - 1
doc/modbus_receive.txt

@@ -25,7 +25,7 @@ context _ctx_, see the function linkmb:modbus_set_socket[3].
 RETURN VALUE
 ------------
 The function shall store the indication request in _req_ and return the request
-length if sucessful. The returned request length can be zero if the indication
+length if successful. The returned request length can be zero if the indication
 request is ignored (eg. a query for another slave in RTU mode). Otherwise it
 shall return -1 and set errno.
 

+ 1 - 1
doc/modbus_rtu_set_rts.txt

@@ -23,7 +23,7 @@ must be used, these modes enable the RTS mode and set the polarity at the same
 time. When `MODBUS_RTU_RTS_UP` is used, an ioctl call is made with RTS flag
 enabled then data is written on the bus after a delay of 1 ms, then another
 ioctl call is made with the RTS flag disabled and again a delay of 1 ms occurs.
-The `MODBUS_RTU_RTS_DOWN` mode applies the same procedure but with an inversed
+The `MODBUS_RTU_RTS_DOWN` mode applies the same procedure but with an inverted
 RTS flag.
 
 This function can only be used with a context using a RTU backend.

+ 3 - 3
doc/modbus_set_error_recovery.txt

@@ -26,15 +26,15 @@ libmodbus functions and for handling them if necessary.
 When `MODBUS_ERROR_RECOVERY_LINK` is set, the library will attempt an
 reconnection after a delay defined by response timeout of the libmodbus context.
 This mode will try an infinite close/connect loop until success on send call and
-will just try one time to retablish the connection on select/read calls (if the
-connecton was down, the values to read are certainly not available anymore after
+will just try one time to re-establish the connection on select/read calls (if the
+connection was down, the values to read are certainly not available any more after
 reconnection, except for slave/server). This mode will also run flush requests
 after a delay based on the current response timeout in some situations (eg.
 timeout of select call). The reconnection attempt can hang for several seconds
 if the network to the remote target unit is down.
 
 When `MODBUS_ERROR_RECOVERY_PROTOCOL` is set, a sleep and flush sequence will be
-used to cleanup the ongoing communication, this can occurs when the message
+used to clean up the ongoing communication, this can occurs when the message
 length is invalid, the TID is wrong or the received function code is not the
 expected one. The response timeout delay will be used to sleep.
 

+ 1 - 1
doc/modbus_set_float_dcba.txt

@@ -14,7 +14,7 @@ SYNOPSIS
 
 DESCRIPTION
 -----------
-The *modbus_set_float_dcba()* function shall set a float to 4 bytes in inversed
+The *modbus_set_float_dcba()* function shall set a float to 4 bytes in inverted
 Modbus format (DCBA order). The _dest_ array must be pointer on two 16 bits
 values to be able to store the full result of the conversion.
 

+ 1 - 1
doc/modbus_tcp_listen.txt

@@ -32,7 +32,7 @@ EXAMPLE
 For detailed examples, see source files in tests directory:
 
 - unit-test-server.c, simple but handle only one connection
-- bandwith-server-many-up.c, handles several connections at once
+- bandwidth-server-many-up.c, handles several connections at once
 
 
 [source,c]

+ 1 - 1
doc/modbus_tcp_pi_listen.txt

@@ -52,7 +52,7 @@ mclose(s);
 modbus_free(ctx);
 -------------------
 
-- bandwith-server-many-up.c, handles several connections at once
+- bandwidth-server-many-up.c, handles several connections at once
 
 
 SEE ALSO