Hi,
I'm confused about ESB settings. I'm trying to renew our board with new nRF520840 chip and we must need to provide backward compatibility that the existing board has nRF24L01.
In the ESB example of NRF5 SDK the pipe settings is set by:
static struct esb_payload tx_payload = ESB_CREATE_PAYLOAD(0, 0x01, 0x00, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08);
As I understand from the function definition Red is the pipe index, blue is the data size, greens are the pipe bytes. Is it correct?
In our nRF24 application the pipe settings are like below:
const uint64_t pipes[2] = { 0xABCDEFABCDLL, 0xAABBCCDDEELL }; // pipe[0] is for RX, pipe[1] is for TX
Data size Is 24 bytes. So do I need to set "blue" parameter to 24?
Is there only one pipe for both transmitting and receiving in new SDK (ESB)?
Look like new SDK is require 7 pipe bytes if I'm correct. How can I set 5 byte pipe number? Is it like ESB_CREATE_PAYLOAD(0, 24, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE); ?
Thanks in advance.