1 unstable release
0.1.0 | Oct 19, 2020 |
---|
#1078 in Embedded development
14KB
105 lines
Drogue IoT Grove SPI over UART
This crate implements an SPI interface over UART, as used by Grove's LoRaWAN board.
lib.rs
:
SPI over UART
The UARTSPI
struct implements an SPI interface on top of a UART
, using the protocol
used by Grove.
Protocol
When writing, this is:
| 'W' | <reg> | <len> | <data>... |
There is no response after a write request has been processed.
When reading, it is:
| 'R' | <reg> | <len> |
This will follow bytes, which is the data read from SPI.
Dependencies
~160KB