pub fn data_pipe_available(&self) -> Option<DataPipe> {
        match (self.0 >> 1) & 0b111 {
            x @ 0..=5 => Some(x.into()),
            6 => panic!(),
            7 => None,
            _ => unreachable!(), // because we AND the value
        }
    }
/// Returns data pipe number for the payload availbe for reading
/// or None if RX FIFO is empty.
Returns data pipe number for the payload availbe for reading
or None if RX FIFO is empty.
Returns data pipe number for the payload availbe for reading or None if RX FIFO is empty .
pub fn data_pipe_available(&self) -> Option<DataPipe> {
        match (self.0 >> 1) & 0b111 {
            x @ 0..=5 => Some(x.into()),
            6 => panic!(),
            7 => None,
            _ => unreachable!(), // because we AND the value
        }
    }
pub fn data_pipe_available ( & self ) -> Option < DataPipe > { match ( self . 0 >> 1 ) & 0b111 { x @ 0 ..= 5 => Some ( x . into ( ) ) , 6 => panic ! ( ) , 7 => None , _ => unreachable ! ( ) , // because we AND the value } }
Returns data pipe number for the payload availbe for reading
or None if RX FIFO is empty.
Returns data pipe number for the payload availbe for reading or None if RX FIFO is empty .
&self
&self