[][src]Struct embedded_nrf24l01::StandbyMode

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

Represents Standby-I mode

This represents the state the device is in inbetween TX or RX mode.

Implementations

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

pub fn power_up(device: D) -> Result<Self, (D, D::Error)>[src]

Constructor

Puts the device into standy mode

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

Should be a no-op

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

Go into RX mode

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

Go into TX mode

Trait Implementations

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

type Inner = D

Underlying trait Device

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

Auto Trait Implementations

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

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

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