Struct radio_sx1231::Sx1231[][src]

pub struct Sx1231<Spi, CsPin, SpiError, PinError> { /* fields omitted */ }
Expand description

Sx1231 device object

Operating functions are implemented as traits from the radio package

Implementations

Create a new radio instance with the provided SPI implementation and pins

Return hardware resources for reuse

(re)apply device configuration

Fetch device silicon version

Trait Implementations

Set the channel for future receive or transmit operations

Channel information

Radio error type

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

Read a register value

Write a register value

Update a register value

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

Radio error

Fetch device modem mode

Set device modem mode

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

Performs the conversion.

Performs the conversion.

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.