[−][src]Struct esb::irq::EsbIrq
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]
OutgoingLen: ArrayLength<u8>,
IncomingLen: ArrayLength<u8>,
Timer: EsbTimer,
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]
OutgoingLen: ArrayLength<u8>,
IncomingLen: ArrayLength<u8>,
Timer: EsbTimer,
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]
OutgoingLen: ArrayLength<u8>,
IncomingLen: ArrayLength<u8>,
Timer: EsbTimer,
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]
OutgoingLen: ArrayLength<u8>,
IncomingLen: ArrayLength<u8>,
Timer: EsbTimer,
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,
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,
STATE: Unpin,
Timer: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,