[][src]Struct embedded_nrf24l01::NRF24L01

pub struct NRF24L01<E: Debug, CE: OutputPin<Error = E>, CSN: OutputPin<Error = E>, SPI: SpiTransfer<u8>> { /* fields omitted */ }

Driver for the nRF24L01+

Never deal with this directly. Instead, you store one of the following types:

where D: Device

Implementations

impl<E: Debug, CE: OutputPin<Error = E>, CSN: OutputPin<Error = E>, SPI: SpiTransfer<u8, Error = SPIE>, SPIE: Debug> NRF24L01<E, CE, CSN, SPI>[src]

pub fn new(ce: CE, csn: CSN, spi: SPI) -> Result<StandbyMode<Self>, Error<SPIE>>[src]

Construct a new driver instance.

pub fn is_connected(&mut self) -> Result<bool, Error<SPIE>>[src]

Reads and validates content of the SETUP_AW register.

Trait Implementations

impl<E: Debug, CE: OutputPin<Error = E>, CSN: OutputPin<Error = E>, SPI: SpiTransfer<u8, Error = SPIE>, SPIE: Debug> Debug for NRF24L01<E, CE, CSN, SPI>[src]

impl<E: Debug, CE: OutputPin<Error = E>, CSN: OutputPin<Error = E>, SPI: SpiTransfer<u8, Error = SPIE>, SPIE: Debug> Device for NRF24L01<E, CE, CSN, SPI>[src]

type Error = Error<SPIE>

Error from the SPI implementation

Auto Trait Implementations

impl<E, CE, CSN, SPI> Send for NRF24L01<E, CE, CSN, SPI> where
    CE: Send,
    CSN: Send,
    SPI: Send

impl<E, CE, CSN, SPI> Sync for NRF24L01<E, CE, CSN, SPI> where
    CE: Sync,
    CSN: Sync,
    SPI: Sync

impl<E, CE, CSN, SPI> Unpin for NRF24L01<E, CE, CSN, SPI> where
    CE: Unpin,
    CSN: Unpin,
    SPI: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.