Struct embedded_nrf24l01::NRF24L01 [] [src]

pub struct NRF24L01<CE: OutputPin, CSN: OutputPin, 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

Methods

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

[src]

Construct a new driver instance.

[src]

Reads and validates content of the SETUP_AW register.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

Error from the SPI implementation

[src]

Set CE pin high

[src]

Set CE pin low

[src]

Send a command via SPI

[src]

Send W_REGISTER command

[src]

Send R_REGISTER command

[src]

Modify the (cached) CONFIG register and write if it has changed.

[src]

Helper; the receiving during RX and sending during TX require CE to be low. Read more

[src]

Read, and modify a register, and write it back if it has been changed.

Auto Trait Implementations

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

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