pub struct Sx127x<Hal> { /* private fields */ }
Expand description

Sx127x device object

Operating functions are implemented as traits from the radio package

Implementations

Create an Sx127x with the provided SPI implementation and pins

Create a new radio instance over an arbitrary base::Base implementation

Reset the device. This recalibrates and patches the device, however, still requires configuration.

(re)apply device configuration

Fetch device silicon version

Read a u8 value from the specified register

Write a u8 value to the specified register

Update the specified register with the provided (value & mask)

Trait Implementations

Set the LoRa mode channel for future receive or transmit operations

Channel information

Radio error type

Enumeration of DelayUs errors

Pauses execution for at minimum us microseconds. Pause can be longer if the implementation requires it due to precision/timing issues. Read more

Pauses execution for at minimum ms milliseconds. Pause can be longer if the implementation requires it due to precision/timing issues. Read more

Fetch pending interrupts from the device If the clear option is set, this will also clear any pending flags

Interrupt object

Radio error

Set transmit power (using the existing PaConfig)

Radio error type

Start receive mode

Check receive state

This returns true if a boolean indicating whether a packet has been received. The restart option specifies whether transient timeout or CRC errors should be internally handled (returning Ok(false)) or passed back to the caller as errors.

Fetch a received message

This copies data into the provided slice, updates the provided information object, and returns the number of bytes received on success

Packet received info

Radio error

Poll for the current channel RSSI This should only be called in receive mode

Radio error

Fetch device state

Set device state

Radio state

Radio error type

Start sending a packet

Check for transmission completion This method should be polled (or checked following and interrupt) to indicate sending has completed

Radio error

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.