Struct radio_sx127x::Sx127x [−][src]
pub struct Sx127x<Base, CommsError, PinError, DelayError> { /* fields omitted */ }
Expand description
Sx127x device object
Operating functions are implemented as traits from the radio package
Implementations
impl<Spi, SpiError, CsPin, BusyPin, ReadyPin, ResetPin, PinError, Delay, DelayError> Sx127x<SpiWrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>, SpiError, PinError, DelayError> where
Spi: Transfer<u8, Error = SpiError> + Write<u8, Error = SpiError> + Transactional<u8, Error = SpiError>,
CsPin: OutputPin<Error = PinError>,
BusyPin: InputPin<Error = PinError>,
ReadyPin: InputPin<Error = PinError>,
ResetPin: OutputPin<Error = PinError>,
Delay: DelayMs<u32, Error = DelayError> + DelayUs<u32, Error = DelayError>,
SpiError: Debug + Sync + Send + 'static,
PinError: Debug + Sync + Send + 'static,
DelayError: Debug + Sync + Send + 'static,
impl<Spi, SpiError, CsPin, BusyPin, ReadyPin, ResetPin, PinError, Delay, DelayError> Sx127x<SpiWrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>, SpiError, PinError, DelayError> where
Spi: Transfer<u8, Error = SpiError> + Write<u8, Error = SpiError> + Transactional<u8, Error = SpiError>,
CsPin: OutputPin<Error = PinError>,
BusyPin: InputPin<Error = PinError>,
ReadyPin: InputPin<Error = PinError>,
ResetPin: OutputPin<Error = PinError>,
Delay: DelayMs<u32, Error = DelayError> + DelayUs<u32, Error = DelayError>,
SpiError: Debug + Sync + Send + 'static,
PinError: Debug + Sync + Send + 'static,
DelayError: Debug + Sync + Send + 'static,
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
Trait Implementations
Fetch pending interrupts from the device If the clear option is set, this will also clear any pending flags
type Irq = Interrupts
type Irq = Interrupts
Interrupt object
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
type Info = PacketInfo
type Info = PacketInfo
Packet received info
Check for transmission completion This method should be polled (or checked following and interrupt) to indicate sending has completed