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

Turning off ACK in ESB on nRF52

Hello.

I am trying to turn off ACK in the example "esb_ptx". I have tried this in both SDK 12.2 and 14.0.

I try to turn off ACK like this:

static nrf_esb_payload_t        tx_payload = NRF_ESB_CREATE_PAYLOAD(0, 0x01, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00);
tx_payload.noack = 1;

This gives me the following compiler error when compiling with Keil:

..\..\..\main.c(31): error:  #77-D: this declaration has no storage class or type specifier  tx_payload.noack = 1;
..\..\..\main.c(31): error:  #147: declaration is incompatible with "nrf_esb_payload_t tx_payload"  (declared at line 30)
tx_payload.noack = 1;
..\..\..\main.c(31): error:  #65: expected a ";"

I have also tried the same without the NRF_ESB_CREATE_PAYLOAD macro.

The definition of the nsf_esb_payload can be found here.

What am I doing wrong?

Parents Reply Children
No Data
Related