Trait radio::State[][src]

pub trait State {
    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 and reading radio states

Note that drivers will internally configure and read radio states to manage radio operations.

Associated Types

type State[src]

Radio state

type Error[src]

Radio error type

Loading content...

Required methods

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

Set the radio to a specified state

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

Fetch the current radio state

Loading content...

Implementors

impl<St, Reg, Ch, Inf, Irq, E> State for Radio<St, Reg, Ch, Inf, Irq, E> where
    St: PartialEq + Debug + Clone,
    Reg: PartialEq + Debug + Clone,
    Ch: PartialEq + Debug + Clone,
    Inf: PartialEq + Debug + Clone,
    Irq: PartialEq + Debug + Clone,
    E: PartialEq + Debug + Clone
[src]

type State = St

type Error = E

Loading content...