Enum DataPipe

Source
#[repr(u8)]
pub enum DataPipe { DP0 = 0, DP1 = 1, DP2 = 2, DP3 = 3, DP4 = 4, DP5 = 5, }
Expand description

Representation of the different data pipes through which data can be received.

An nRF24L01 configured as primary RX (PRX) will be able to receive data trough 6 different data pipes. One data pipe will have a unique address but share the same frequency channel. This means that up to 6 different nRF24L01 configured as primary TX (PTX) can communicate with one nRF24L01 configured as PRX, and the nRF24L01 configured as PRX will be able to distinguish between them.

The default assumed data pipe is 0.

Data pipe 0 has a unique 40 bit configurable address. Each of data pipe 1-5 has an 8 bit unique address and shares the 32 most significant address bits.

§Notes

In the PTX device data pipe 0 is used to received the acknowledgement, and therefore the receive address for data pipe 0 has to be equal to the transmit address to be able to receive the acknowledgement.

Variants§

§

DP0 = 0

Data pipe 0. Default pipe with a 40 bit configurable address. This pipe is used in TX mode when auto acknowledgement is enabled. On this channel the ACK messages are received.

§

DP1 = 1

Data pipe 1.

§

DP2 = 2

Data pipe 2.

§

DP3 = 3

Data pipe 3.

§

DP4 = 4

Data pipe 4.

§

DP5 = 5

Data pipe 5.

Trait Implementations§

Source§

impl Clone for DataPipe

Source§

fn clone(&self) -> DataPipe

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for DataPipe

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<u8> for DataPipe

Source§

fn from(t: u8) -> Self

Converts to this type from the input type.
Source§

impl Copy for DataPipe

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.