This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to communicate with ESB RF with nRF52840.

-HI.

I had previously implemented ESB RF communications with the nRF24l01 + and nRF24LU1 +.

Now we want to implement ESB RF communication with nRF52840 DK(PTX) and nRF24LU1+(PRX).

I am studying with reference to "esb_ptx" example of SDK_15.0.0.

When implementing it with nRF24LU1 +, I was able to set RF as below.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
hal_nrf_open_pipe((int)HAL_NRF_PIPE1, true);
// Set RF channel
hal_nrf_set_rf_channel(0x02);
// Set data rate
hal_nrf_set_datarate(HAL_NRF_250KBPS);
// Set CRC scheme
hal_nrf_set_crc_mode(HAL_NRF_CRC_16BIT);
// Set address width
hal_nrf_set_address_width(HAL_NRF_AW_5BYTES);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

However, in the nRF52840, I do not know how to code these settings for channels, pipes, addresses, and ACKs.

What should I do?

Thank you.