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