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: DataRate
data rate, defaults to DataRate::R1Mbps
Both Transmitter and Receiver ends should use the same data rate.
channel: u8
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.
pa_level: PALevel
Powel level, defaults to PALevel::Min
.
max_retries: u8
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.
retry_delay: u8
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.
pipe0_address: [u8; 5]
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.