Commit Graph

14 Commits

Author SHA1 Message Date
Quentin ADAM b086057ba0 add packet sending support 2020-05-19 01:33:28 +02:00
Quentin ADAM 1b380935a3 add RN2483 chip support 2020-05-19 01:29:32 +02:00
Leonora Tindall ccb9b89908
Add LoRa and FSK packet reception
Add a function to change the modulation mode and a function to receive
packets. Still needs a ton of work on various radio features and no
implementation of gfsk yet.
2020-01-01 11:32:35 -08:00
Leonora Tindall 34dd0902f2
Add NVM read/write functions
Including adding a wrapper type for NVM addresses to provide validation
that the wrong addresses aren't being sent to the device
2019-12-31 17:01:39 -08:00
Leonora Tindall acf059aa1a
Cargo fmt 2019-12-31 14:50:46 -08:00
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 a160d5902d
Remove unused IoSlice import 2019-12-29 12:06:45 -08:00
Leonora Tindall 8e52f10ffc
Better docs and rename transact() 2019-12-29 11:58:05 -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