#uart #spi #grove #driver #no-std

no-std drogue-grove-uart-spi

An implementation of Grove's SPI over UART protocol

1 unstable release

0.1.0 Oct 19, 2020

#902 in Embedded development

Apache-2.0

14KB
105 lines

Drogue IoT Grove SPI over UART

crates.io docs.rs Matrix

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.

Also see: https://github.com/Seeed-Studio/Grove_LoRa_433MHz_and_915MHz_RF/blob/master/examples/Grove_LoRa_firmware/Grove_LoRa_firmware.ino

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