[][src]Struct embedded_nrf24l01::RxMode

pub struct RxMode<D: Device> { /* fields omitted */ }

Represents RX Mode

Implementations

impl<D: Device> RxMode<D>[src]

pub fn standby(self) -> StandbyMode<D>[src]

Disable CE so that you can switch into TX mode.

pub fn can_read(&mut self) -> Result<Option<u8>, D::Error>[src]

Is there any incoming data to read? Return the pipe number.

This function acknowledges all interrupts even if there are more received packets, so the caller must repeat the call until the function returns None before waiting for the next RX interrupt.

pub fn has_carrier(&mut self) -> Result<bool, D::Error>[src]

Is an in-band RF signal detected?

The internal carrier detect signal must be high for 40μs (NRF24L01+) or 128μs (NRF24L01) before the carrier detect register is set. Note that changing from standby to receive mode also takes 130μs.

pub fn is_empty(&mut self) -> Result<bool, D::Error>[src]

Is the RX queue empty?

pub fn is_full(&mut self) -> Result<bool, D::Error>[src]

Is the RX queue full?

pub fn read(&mut self) -> Result<Payload, D::Error>[src]

Read the next received packet

Trait Implementations

impl<D: Device> Configuration for RxMode<D>[src]

type Inner = D

Underlying trait Device

impl<D: Device> Debug for RxMode<D>[src]

Auto Trait Implementations

impl<D> Send for RxMode<D> where
    D: Send

impl<D> Sync for RxMode<D> where
    D: Sync

impl<D> Unpin for RxMode<D> where
    D: 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.