Trait radio::Receive

source ·
pub trait Receive {
    type Error;
    type Info;

    fn start_receive(&mut self, channel: u16) -> Result<(), Self::Error>;
    fn get_received<'a>(
        &mut self,
        _: &'a mut [u8]
    ) -> Result<Option<(&'a [u8], Self::Info)>, Self::Error>; }
Expand description

Receive trait for radios that can receive packets

Required Associated Types§

Radio error

Packet received info

Required Methods§

Set receiving on the specified channel Returns an error if receive mode was not entered

Fetch a received packet if rx is complete Returns Some on complete, None while still receiving, or an error on failure

Implementors§