[][src]Trait radio_sx128x::_

pub trait _ {
    type State;
    type Error;
    fn set_state(&mut self, state: Self::State) -> Result<(), Self::Error>;
fn get_state(&mut self) -> Result<Self::State, Self::Error>; }

State trait for configuring radio states

Associated Types

type State

Channel information

type Error

Radio error type

Loading content...

Required methods

fn set_state(&mut self, state: Self::State) -> Result<(), Self::Error>

Set the radio to a specified state

fn get_state(&mut self) -> Result<Self::State, Self::Error>

Fetch the current radio state

Loading content...

Implementors

impl<Hal, CommsError, PinError> State for Sx128x<Hal, CommsError, PinError> where
    Hal: Hal<CommsError, PinError>, 
[src]

radio::State implementation for the SX128x

type State = State

type Error = Error<CommsError, PinError>

fn get_state(&mut self) -> Result<Self::State, Self::Error>[src]

Fetch device state

fn set_state(&mut self, state: Self::State) -> Result<(), Self::Error>[src]

Set device state

Loading content...