Struct nrf24l01::TXConfig [] [src]

pub struct TXConfig {
    pub data_rate: DataRate,
    pub channel: u8,
    pub pa_level: PALevel,
    pub max_retries: u8,
    pub retry_delay: u8,
    pub pipe0_address: [u8; 5],
}

Transmitter mode configuration

Fields

data rate, defaults to DataRate::R1Mbps

Both Transmitter and Receiver ends should use the same data rate.

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.

Both Transmitter and Receiver ends should use the same channel.

Powel level, defaults to PALevel::Min.

Max number of retries before giving up when trying to send a packet.

0 <= max_retries <= 15. Default is 0. Any value above 15 is capped to 15.

Delay (in steps of 250µs) between retries.

Actual delay = 250 + retry_delay * 250 [µs]

0 <= retry_delay <= 15. Default is 0, recommended is > 1. Any value above 15 is capped to 15.

Destination address, should match an address on the receiver end.

This is also the address on which ACK packets are received. The address is in little endian order: the first byte is the least significant one.

Trait Implementations

impl Debug for TXConfig
[src]

[src]

Formats the value using the given formatter.

impl Default for TXConfig
[src]

[src]

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