Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
modbus_get_slave(3) | ||
=================== | ||
|
||
|
||
NAME | ||
---- | ||
modbus_get_slave - get slave number in the context | ||
|
||
|
||
SYNOPSIS | ||
-------- | ||
*int modbus_get_slave(modbus_t *'ctx');* | ||
|
||
|
||
DESCRIPTION | ||
----------- | ||
The *modbus_get_slave()* function shall get the slave number in the libmodbus | ||
context. | ||
|
||
|
||
RETURN VALUE | ||
------------ | ||
The function shall return the slave number if successful. Otherwise it shall return -1 | ||
and set errno to one of the values defined below. | ||
|
||
|
||
ERRORS | ||
------ | ||
*EINVAL*:: | ||
The libmodbus context is undefined. | ||
|
||
|
||
SEE ALSO | ||
-------- | ||
linkmb:modbus_set_slave[3] | ||
|
||
|
||
AUTHORS | ||
------- | ||
The libmodbus documentation was written by Stéphane Raimbault | ||
<stephane.raimbault@gmail.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters