Struct LoraE5

Source
pub struct LoraE5<const N: usize> { /* private fields */ }

Implementations§

Source§

impl<const N: usize> LoraE5<N>

Source

pub fn get_dev_eui(&mut self) -> Result<DevEui>

Source

pub fn get_app_eui(&mut self) -> Result<AppEui>

Source

pub fn set_app_eui(&mut self, app_eui: &AppEui) -> Result

Source

pub fn set_dev_eui(&mut self, dev_eui: &DevEui) -> Result

Source

pub fn set_app_key(&mut self, app_key: &AppKey) -> Result

Source

pub fn set_credentials(&mut self, credentials: &Credentials) -> Result

Source§

impl<const N: usize> LoraE5<N>

Source

pub fn open_usb(vid: u16, pid: u16) -> Result<Self>

Source

pub fn open_path<'a>(path: impl Into<Cow<'a, str>>) -> Result<Self>

Source

pub fn is_ok(&mut self) -> Result<bool>

Source

pub fn get_version(&mut self) -> Result<String>

Source

pub fn set_channel(&mut self, ch: u8, enable: bool) -> Result

Source

pub fn subband2_only(&mut self) -> Result

Source

pub fn set_region(&mut self, region: Region) -> Result

Source

pub fn set_mode(&mut self, mode: Mode) -> Result

Source

pub fn set_datarate(&mut self, dr: DR) -> Result

Source

pub fn join(&mut self) -> Result<JoinResponse>

Source

pub fn force_join(&mut self) -> Result<JoinResponse>

Source

pub fn set_port(&mut self, port: u8) -> Result

Source

pub fn send( &mut self, data: &[u8], port: u8, confirmed: bool, ) -> Result<Option<Downlink>>

Source

pub fn send_ascii( &mut self, data: &str, port: u8, confirmed: bool, ) -> Result<Option<Downlink>>

Auto Trait Implementations§

§

impl<const N: usize> Freeze for LoraE5<N>

§

impl<const N: usize> !RefUnwindSafe for LoraE5<N>

§

impl<const N: usize> Send for LoraE5<N>

§

impl<const N: usize> !Sync for LoraE5<N>

§

impl<const N: usize> Unpin for LoraE5<N>

§

impl<const N: usize> !UnwindSafe for LoraE5<N>

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<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, 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.