Skip to main content

LoRaInterface

Struct LoRaInterface 

Source
pub struct LoRaInterface<'a, SPI, BUSY, DIO1, RST, DLY> { /* private fields */ }

Implementations§

Source§

impl<'a, SPI, BUSY, DIO1, RST, DLY> LoRaInterface<'a, SPI, BUSY, DIO1, RST, DLY>

Source

pub fn interface_id(profile: &RadioProfile) -> InterfaceId

The id a radio on profile will carry — for the caller that stands its EmbassyInterfaceStatus up under the same key before building the interface.

Source

pub fn new( input: LoRaInterfaceInput<'a, SPI, BUSY, DIO1, RST, DLY>, ) -> Result<Self, LoRaConfigError>

Source

pub fn id(&self) -> InterfaceId

Trait Implementations§

Source§

impl<SPI, BUSY, DIO1, RST, DLY> Interface for LoRaInterface<'_, SPI, BUSY, DIO1, RST, DLY>
where SPI: SpiDevice, BUSY: Wait, DIO1: Wait, RST: OutputPin, DLY: DelayNs,

Source§

const HW_MTU: usize = LORA_MAX_PAYLOAD

Source§

const KIND: InterfaceKind = InterfaceKind::LoRa

The medium this interface speaks, which is also the namespace root of its id (from_channel_tag).
Source§

fn descriptor(&self) -> InterfaceDescriptor

Source§

fn channel_tag(&self) -> &[u8]

There is one hard contract for channel_tag(): distinct bytes across distinct concurrent communication channels, and the same bytes across every reconnect and reboot for that effective channel. Read more
Source§

async fn run<Seam: InterfaceSeam>(self, seam: Seam)

Auto Trait Implementations§

§

impl<'a, SPI, BUSY, DIO1, RST, DLY> !RefUnwindSafe for LoRaInterface<'a, SPI, BUSY, DIO1, RST, DLY>

§

impl<'a, SPI, BUSY, DIO1, RST, DLY> !Send for LoRaInterface<'a, SPI, BUSY, DIO1, RST, DLY>

§

impl<'a, SPI, BUSY, DIO1, RST, DLY> !Sync for LoRaInterface<'a, SPI, BUSY, DIO1, RST, DLY>

§

impl<'a, SPI, BUSY, DIO1, RST, DLY> !UnwindSafe for LoRaInterface<'a, SPI, BUSY, DIO1, RST, DLY>

§

impl<'a, SPI, BUSY, DIO1, RST, DLY> Freeze for LoRaInterface<'a, SPI, BUSY, DIO1, RST, DLY>
where SPI: Freeze, BUSY: Freeze, DIO1: Freeze, RST: Freeze, DLY: Freeze,

§

impl<'a, SPI, BUSY, DIO1, RST, DLY> Unpin for LoRaInterface<'a, SPI, BUSY, DIO1, RST, DLY>
where SPI: Unpin, BUSY: Unpin, DIO1: Unpin, RST: Unpin, DLY: Unpin,

§

impl<'a, SPI, BUSY, DIO1, RST, DLY> UnsafeUnpin for LoRaInterface<'a, SPI, BUSY, DIO1, RST, DLY>
where SPI: UnsafeUnpin, BUSY: UnsafeUnpin, DIO1: UnsafeUnpin, RST: UnsafeUnpin, DLY: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.