[][src]Struct esb::irq::EsbIrq

pub struct EsbIrq<OutgoingLen, IncomingLen, Timer, STATE> where
    OutgoingLen: ArrayLength<u8>,
    IncomingLen: ArrayLength<u8>,
    Timer: EsbTimer
{ /* fields omitted */ }

This is the primary RADIO-interrupt-side interface.

It is intended to be used inside of the RADIO interrupt, and allows for sending or receiving frames from the Application hardware.

Implementations

impl<OutgoingLen, IncomingLen, Timer, STATE> EsbIrq<OutgoingLen, IncomingLen, Timer, STATE> where
    OutgoingLen: ArrayLength<u8>,
    IncomingLen: ArrayLength<u8>,
    Timer: EsbTimer
[src]

pub fn into_disabled(self) -> EsbIrq<OutgoingLen, IncomingLen, Timer, Disabled>[src]

Puts the driver in the disabled state

impl<OutgoingLen, IncomingLen, Timer> EsbIrq<OutgoingLen, IncomingLen, Timer, Disabled> where
    OutgoingLen: ArrayLength<u8>,
    IncomingLen: ArrayLength<u8>,
    Timer: EsbTimer
[src]

pub fn into_ptx(self) -> EsbIrq<OutgoingLen, IncomingLen, Timer, StatePTX>[src]

Puts the driver in the PTX mode

pub fn into_prx(self) -> EsbIrq<OutgoingLen, IncomingLen, Timer, StatePRX>[src]

Puts the driver in the PRX mode in a idle state, the user must call start_receiving to enable the radio for receiving

impl<OutgoingLen, IncomingLen, Timer> EsbIrq<OutgoingLen, IncomingLen, Timer, StatePTX> where
    OutgoingLen: ArrayLength<u8>,
    IncomingLen: ArrayLength<u8>,
    Timer: EsbTimer
[src]

pub fn radio_interrupt(&mut self) -> Result<StatePTX, Error>[src]

Must be called inside the radio interrupt handler

impl<OutgoingLen, IncomingLen, Timer> EsbIrq<OutgoingLen, IncomingLen, Timer, StatePRX> where
    OutgoingLen: ArrayLength<u8>,
    IncomingLen: ArrayLength<u8>,
    Timer: EsbTimer
[src]

pub fn radio_interrupt(&mut self) -> Result<StatePRX, Error>[src]

Must be called inside the radio interrupt handler

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

Changes esb to the receiving state

pub fn stop_receiving(&mut self)[src]

Stops the receiving

Auto Trait Implementations

impl<OutgoingLen, IncomingLen, Timer, STATE> Send for EsbIrq<OutgoingLen, IncomingLen, Timer, STATE> where
    STATE: Send,
    Timer: Send

impl<OutgoingLen, IncomingLen, Timer, STATE> !Sync for EsbIrq<OutgoingLen, IncomingLen, Timer, STATE>

impl<OutgoingLen, IncomingLen, Timer, STATE> Unpin for EsbIrq<OutgoingLen, IncomingLen, Timer, STATE> where
    STATE: Unpin,
    Timer: 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> Same<T> for T

type Output = T

Should always be Self

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.