[−][src]Struct embedded_nrf24l01::StandbyMode
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
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 StandbyMode<D>
[src]
Auto Trait Implementations
impl<D> Send for StandbyMode<D> where
D: Send,
D: Send,
impl<D> Sync for StandbyMode<D> where
D: Sync,
D: Sync,
impl<D> Unpin for StandbyMode<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>,