Struct nrf24l01::RXConfig [] [src]

pub struct RXConfig {
    pub data_rate: DataRate,
    pub channel: u8,
    pub pa_level: PALevel,
    pub pipe0_address: [u8; 5],
    pub pipe1_address: Option<[u8; 5]>,
    pub pipe2_addr_lsb: Option<u8>,
    pub pipe3_addr_lsb: Option<u8>,
    pub pipe4_addr_lsb: Option<u8>,
    pub pipe5_addr_lsb: Option<u8>,
}

Receiver mode configuration

Fields

data rate, defaults to DataRate::R1Mbps.

channel, in the range [0, 125], defaults to 0.

The RF channel frequency F is set according to the formula:

F = 2400 + channel Mhz

Any channel value above 125 is capped to 125.

Powel level, defaults to PALevel::Min.

Pipe 0 address

This is the receiving base address.

Typically, this is the only address you need to set, unless you need a multiceiver configuration. In that case, you can enable up to five additional receiving pipes.

The address is in little endian order: the first byte is the least significant one.

You must provide a valid address for Pipe 0.

Pipe 1 address, defaults to None (disabled)

All pipes 2-5 share the 4 most significant bytes with the pipe 1 address, so you only need to provide the least significant byte to enable one of those pipes or set it to None to disable it (default).

Pipe 2 LSB, defaults to None (disabled)

Pipe 3 LSB, defaults to None (disabled)

Pipe 4 LSB, defaults to None (disabled)

Pipe 5 LSB, defaults to None (disabled)

Trait Implementations

impl Debug for RXConfig
[src]

[src]

Formats the value using the given formatter.

impl Default for RXConfig
[src]

[src]

Returns the "default value" for a type. Read more