pub fn open_sx127x(
wiring: &Wiring,
board: Board,
) -> Result<LinuxRadio, OpenError>Expand description
Opens an SX1276, SX1277, SX1278, or SX1279 module, such as an RFM95W, and resets it into LoRa mode.
§Arguments
wiring- the SPI device and the reset line.board- how the module wires the chip: its amplifier output and clock.
§Returns
The radio, reset and in standby, ready for Radio::configure.
§Errors
Returns OpenError::Unsupported on any platform but Linux, OpenError::Bus if the
SPI device or the reset line cannot be opened, and OpenError::Radio if no SX127x
answers.