[][src]Struct embedded_nrf24l01::TxMode

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

Represents TX Mode and the associated TX Settling and Standby-II states

Timing

The datasheet states the follwing:

It is important to never keep the nRF24L01 in TX mode for more than 4ms at a time.

No effects have been observed when exceeding this limit. The warranty could get void.

Implementations

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

pub fn standby(self) -> Result<StandbyMode<D>, D::Error>[src]

Disable CE so that you can switch into RX mode.

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

Is TX FIFO empty?

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

Is TX FIFO full?

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

Does the TX FIFO have space?

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

Send asynchronously

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

Poll completion of one or multiple send operations and check whether transmission was successful.

This function behaves like wait_empty(), except that it returns whether sending was successful and that it provides an asynchronous interface.

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

Wait until TX FIFO is empty

If any packet cannot be delivered and the maximum amount of retries is reached, the TX FIFO is flushed and all other packets in the FIFO are lost.

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

Read the OBSERVE_TX register

Trait Implementations

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

type Inner = D

Underlying trait Device

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

Auto Trait Implementations

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

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

impl<D> Unpin for TxMode<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.