embedded-nrf24l01 0.2.0

A driver for NRF24L01(+) transceivers on embedded-hal platforms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use core::fmt::Debug;

/// Wraps an SPI error
///
/// TODO: eliminate this?
#[derive(Debug)]
pub enum Error<SPIE: Debug> {
    /// Wrap an SPI error
    SpiError(SPIE),
}

impl<SPIE: Debug> From<SPIE> for Error<SPIE> {
    fn from(e: SPIE) -> Self {
        Error::SpiError(e)
    }
}