Leonora Tindall
d42b0ec6b3
Add MAC pause/unpause
...
Also adds associated error variants `CannotPause` and `BadResponse`, an
associated helper function `Error::bad_response`, and the internal
helper function `transact_expecting` which shortens function bodies for
functions implementing simple handshake-like commands, like `mac
resume`.
2019-12-31 14:48:51 -08:00
Leonora Tindall
fa31aab5cf
Add module reset and fix factory reset return
...
Previously, it returned a String but was documented to return bytes; it
now returns bytes.
2019-12-31 14:47:14 -08:00
Leonora Tindall
12cce7213b
Add factory reset functionality
2019-12-29 12:59:16 -08:00
Leonora Tindall
6318251226
Add `::system_version_bytes()` for uniformity
...
Other functions will return bytes, so it's weird to only be able to get
the version as a string.
2019-12-29 12:56:44 -08:00
Leonora Tindall
dd2102d973
Formalize release process
2019-12-29 12:47:18 -08:00
Leonora Tindall
84fa9e5e01
Cut 0.1 release
2019-12-29 12:44:39 -08:00
Leonora Tindall
6943fffe26
Add repository info.
2019-12-29 12:13:59 -08:00
Leonora Tindall
610ee12ebc
Add documentation PDFs
2019-12-29 12:12:03 -08:00
Leonora Tindall
a160d5902d
Remove unused IoSlice import
2019-12-29 12:06:45 -08:00
Leonora Tindall
106a2612bd
Add "blinky" main program
2019-12-29 11:58:52 -08:00
Leonora Tindall
8e52f10ffc
Better docs and rename transact()
2019-12-29 11:58:05 -08:00
Leonora Tindall
f4bd7b67e4
Add GNU GPL v3 license, and package metadata
2019-12-29 11:56:33 -08:00
Leonora Tindall
41c5a352b8
Add meta files
...
README, CHANGELOG, and CONTRIBUTING
2019-12-29 11:47:36 -08:00
Leonora Tindall
f2938ffe72
Abstract reading/writing into ::transact_command()
...
Also move end-trimming logic into ::read_line() to allow trimming
zeroes correctly.
2019-12-28 10:48:12 -08:00
Leonora Tindall
33f7fbcf21
Factor out line reading into ::read_line()
...
This function handles the per-buffer waiting time.
2019-12-28 09:04:52 -08:00
Leonora Tindall
8891b8b6bf
Basic SerialPort wrapper
...
No real functionality, just a basic version info check to make sure that
the device being communicated with is actually the RN2903.
2019-12-28 08:29:09 -08:00