-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build HTML documentation using Documenter.jl
also polished some docstrings and fixed a parameter name inconsistency
- Loading branch information
Showing
8 changed files
with
247 additions
and
63 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ deps/* | |
!deps/build.jl | ||
|
||
Manifest.toml | ||
docs/build/ |
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,2 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" |
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,3 @@ | ||
using Documenter, LibSerialPort | ||
|
||
makedocs(sitename="LibSerialPort.jl") |
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,78 @@ | ||
# LibSerialPort.jl – access serial ports | ||
|
||
```@docs | ||
LibSerialPort | ||
``` | ||
|
||
# Enumerating serial ports | ||
|
||
```@docs | ||
list_ports | ||
get_port_list | ||
print_port_metadata | ||
``` | ||
|
||
## Opening and configuring ports | ||
|
||
```@docs | ||
LibSerialPort.open(::AbstractString, ::Integer) | ||
SerialPort(::AbstractString) | ||
open(::SerialPort; ::SPMode) | ||
close(sp::SerialPort) | ||
set_speed | ||
set_frame | ||
set_flow_control | ||
isopen(sp::SerialPort) | ||
eof(sp::SerialPort) | ||
seteof | ||
get_port_settings | ||
print_port_settings | ||
set_read_timeout | ||
set_write_timeout | ||
clear_read_timeout | ||
clear_write_timeout | ||
sp_flush | ||
sp_drain | ||
sp_output_waiting | ||
``` | ||
|
||
# Read and write methods from Base | ||
|
||
Many of the read/write methods defined in `Base` that operate on an | ||
object of type `IO` can also be used with objects of type | ||
`SerialPort`. Therefore we repead the documentations of some of these | ||
here. (Note that some of the following docstings also refer to other | ||
methods that are not applicable to `SerialPort`.) | ||
|
||
```@docs | ||
Base.read(::IO, ::Any) | ||
Base.read! | ||
Base.readbytes! | ||
Base.readavailable | ||
Base.readline | ||
Base.readlines | ||
Base.eachline | ||
Base.write | ||
Base.print(::IO, ::Any) | ||
``` | ||
|
||
# Additional read methods | ||
|
||
```@docs | ||
read(::SerialPort) | ||
nonblocking_read(::SerialPort) | ||
bytesavailable(::SerialPort) | ||
``` | ||
|
||
# Other references | ||
|
||
The following are listed here only because they are referenced above: | ||
|
||
```@docs | ||
Base.ntoh | ||
Base.hton | ||
Base.ltoh | ||
Base.htol | ||
Base.stdout | ||
Base.string(xs...) | ||
``` |
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
Oops, something went wrong.