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>
impl<'a, SPI, BUSY, DIO1, RST, DLY> LoRaInterface<'a, SPI, BUSY, DIO1, RST, DLY>
Sourcepub fn interface_id(profile: &RadioProfile) -> InterfaceId
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.
pub fn new( input: LoRaInterfaceInput<'a, SPI, BUSY, DIO1, RST, DLY>, ) -> Result<Self, LoRaConfigError>
pub fn id(&self) -> InterfaceId
Trait Implementations§
Source§impl<SPI, BUSY, DIO1, RST, DLY> Interface for LoRaInterface<'_, SPI, BUSY, DIO1, RST, DLY>
impl<SPI, BUSY, DIO1, RST, DLY> Interface for LoRaInterface<'_, SPI, BUSY, DIO1, RST, DLY>
const HW_MTU: usize = LORA_MAX_PAYLOAD
Source§const KIND: InterfaceKind = InterfaceKind::LoRa
const KIND: InterfaceKind = InterfaceKind::LoRa
The medium this interface speaks, which is also the namespace root of its id (
from_channel_tag).fn descriptor(&self) -> InterfaceDescriptor
Source§fn channel_tag(&self) -> &[u8] ⓘ
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 moreasync 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>
impl<'a, SPI, BUSY, DIO1, RST, DLY> Unpin for LoRaInterface<'a, SPI, BUSY, DIO1, RST, DLY>
impl<'a, SPI, BUSY, DIO1, RST, DLY> UnsafeUnpin for LoRaInterface<'a, SPI, BUSY, DIO1, RST, DLY>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more