[−][src]Struct embedded_nrf24l01::RxMode
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
fn device(&mut self) -> &mut Self::Inner
[src]
fn flush_rx(&mut self) -> Result<(), <Self::Inner as Device>::Error>
[src]
fn flush_tx(&mut self) -> Result<(), <Self::Inner as Device>::Error>
[src]
fn get_frequency(&mut self) -> Result<u8, <Self::Inner as Device>::Error>
[src]
fn set_frequency(
&mut self,
freq_offset: u8
) -> Result<(), <Self::Inner as Device>::Error>
[src]
&mut self,
freq_offset: u8
) -> Result<(), <Self::Inner as Device>::Error>
fn set_rf(
&mut self,
rate: &DataRate,
power: u8
) -> Result<(), <Self::Inner as Device>::Error>
[src]
&mut self,
rate: &DataRate,
power: u8
) -> Result<(), <Self::Inner as Device>::Error>
fn set_crc(
&mut self,
mode: CrcMode
) -> Result<(), <Self::Inner as Device>::Error>
[src]
&mut self,
mode: CrcMode
) -> Result<(), <Self::Inner as Device>::Error>
fn set_interrupt_mask(
&mut self,
data_ready_rx: bool,
data_sent_tx: bool,
max_retransmits_tx: bool
) -> Result<(), <Self::Inner as Device>::Error>
[src]
&mut self,
data_ready_rx: bool,
data_sent_tx: bool,
max_retransmits_tx: bool
) -> Result<(), <Self::Inner as Device>::Error>
fn set_pipes_rx_enable(
&mut self,
bools: &[bool; 6]
) -> Result<(), <Self::Inner as Device>::Error>
[src]
&mut self,
bools: &[bool; 6]
) -> Result<(), <Self::Inner as Device>::Error>
fn set_rx_addr(
&mut self,
pipe_no: usize,
addr: &[u8]
) -> Result<(), <Self::Inner as Device>::Error>
[src]
&mut self,
pipe_no: usize,
addr: &[u8]
) -> Result<(), <Self::Inner as Device>::Error>
fn set_tx_addr(
&mut self,
addr: &[u8]
) -> Result<(), <Self::Inner as Device>::Error>
[src]
&mut self,
addr: &[u8]
) -> Result<(), <Self::Inner as Device>::Error>
fn set_auto_retransmit(
&mut self,
delay: u8,
count: u8
) -> Result<(), <Self::Inner as Device>::Error>
[src]
&mut self,
delay: u8,
count: u8
) -> Result<(), <Self::Inner as Device>::Error>
fn get_auto_ack(&mut self) -> Result<[bool; 6], <Self::Inner as Device>::Error>
[src]
fn set_auto_ack(
&mut self,
bools: &[bool; 6]
) -> Result<(), <Self::Inner as Device>::Error>
[src]
&mut self,
bools: &[bool; 6]
) -> Result<(), <Self::Inner as Device>::Error>
fn get_address_width(&mut self) -> Result<u8, <Self::Inner as Device>::Error>
[src]
fn get_interrupts(
&mut self
) -> Result<(bool, bool, bool), <Self::Inner as Device>::Error>
[src]
&mut self
) -> Result<(bool, bool, bool), <Self::Inner as Device>::Error>
fn clear_interrupts(&mut self) -> Result<(), <Self::Inner as Device>::Error>
[src]
fn set_pipes_rx_lengths(
&mut self,
lengths: &[Option<u8>; 6]
) -> Result<(), <Self::Inner as Device>::Error>
[src]
&mut self,
lengths: &[Option<u8>; 6]
) -> Result<(), <Self::Inner as Device>::Error>
impl<D: Device> Debug for RxMode<D>
[src]
Auto Trait Implementations
impl<D> Send for RxMode<D> where
D: Send,
D: Send,
impl<D> Sync for RxMode<D> where
D: Sync,
D: Sync,
impl<D> Unpin for RxMode<D> where
D: Unpin,
D: 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, 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>,