Struct drone_sx1276::device::Device
[−]
[src]
pub struct Device<C: Conn, M: Mode> { /* fields omitted */ }
Semtech SX1276/77/78/79 device.
Methods
impl<C: Conn, M: Mode> Device<C, M>
[src]
pub fn init(&self)
[src]
Initializes connected pins.
pub fn into_tokens(self) -> C
[src]
Returns underlying connection bindings.
pub fn reset<T>(
self,
timer: T
) -> impl Future<Item = (Device<C, FskOok>, T), Error = ResetError<C, T>> where
C: Reset<T>,
[src]
self,
timer: T
) -> impl Future<Item = (Device<C, FskOok>, T), Error = ResetError<C, T>> where
C: Reset<T>,
Runs a reset procedure, and returns a future for its result. The mode will be set to LoRa on success.
impl<C: Conn> Device<C, FskOok>
[src]
pub fn new(tokens: C) -> Self
[src]
Creates a new Device
in FSK/OOK mode from provided tokens
.
pub unsafe fn into_lora(self) -> Device<C, Lora>
[src]
Converts into LoRa mode.
impl<C: Conn> Device<C, Lora>
[src]
pub unsafe fn into_fsk_ook(self) -> Device<C, FskOok>
[src]
Converts into FSK/OOK mode.
impl<C: Conn> Device<C, Undefined>
[src]
pub unsafe fn into_lora(self) -> Device<C, Lora>
[src]
Converts into LoRa mode.
pub unsafe fn into_fsk_ook(self) -> Device<C, FskOok>
[src]
Converts into FSK/OOK mode.
Trait Implementations
impl<C: Conn, M: Mode> Deref for Device<C, M>
[src]
type Target = C
The resulting type after dereferencing.
fn deref(&self) -> &C
[src]
Dereferences the value.