Struct lorawan_device::Device
source · pub struct Device<R, C, RNG, const N: usize>where
R: PhyRxTx + Timings,
C: CryptoFactory + Default,
RNG: RngCore,{ /* private fields */ }
Implementations§
source§impl<R, C, RNG, const N: usize> Device<R, C, RNG, N>where
R: PhyRxTx + Timings,
C: CryptoFactory + Default,
RNG: RngCore,
impl<R, C, RNG, const N: usize> Device<R, C, RNG, N>where R: PhyRxTx + Timings, C: CryptoFactory + Default, RNG: RngCore,
pub fn new( region: Configuration, join_mode: JoinMode, radio: R, rng: RNG ) -> Device<R, C, RNG, N>
pub fn get_radio(&mut self) -> &mut R
pub fn get_credentials(&mut self) -> &mut Option<Credentials>
pub fn get_datarate(&mut self) -> DR
pub fn set_datarate(&mut self, datarate: DR)
pub fn ready_to_send_data(&self) -> bool
pub fn send( &mut self, data: &[u8], fport: u8, confirmed: bool ) -> Result<Response, Error<R::PhyError>>
pub fn get_fcnt_up(&self) -> Option<u32>
pub fn get_session_keys(&self) -> Option<&SessionKeys>
pub fn take_data_downlink( &mut self ) -> Option<DecryptedDataPayload<Vec<u8, 256>>>
pub fn handle_event( &mut self, event: Event<'_, R> ) -> Result<Response, Error<R::PhyError>>
Auto Trait Implementations§
impl<R, C, RNG, const N: usize> RefUnwindSafe for Device<R, C, RNG, N>where C: RefUnwindSafe, R: RefUnwindSafe, RNG: RefUnwindSafe,
impl<R, C, RNG, const N: usize> Send for Device<R, C, RNG, N>where C: Send, R: Send, RNG: Send,
impl<R, C, RNG, const N: usize> Sync for Device<R, C, RNG, N>where C: Sync, R: Sync, RNG: Sync,
impl<R, C, RNG, const N: usize> Unpin for Device<R, C, RNG, N>where C: Unpin, R: Unpin, RNG: Unpin,
impl<R, C, RNG, const N: usize> UnwindSafe for Device<R, C, RNG, N>where C: UnwindSafe, R: UnwindSafe, RNG: UnwindSafe,
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