nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ ESB_CREATE_PAYLOAD

#define ESB_CREATE_PAYLOAD (   _pipe,
  ... 
)

#include <include/esb.h>

Value:
{ \
.pipe = _pipe, \
.length = NUM_VA_ARGS_LESS_1(_pipe, __VA_ARGS__), \
.data = { \
__VA_ARGS__ \
} \
}

Macro to create an initializer for a TX data packet.

This macro generates an initializer.

Parameters
[in]_pipeThe pipe to use for the data packet.
[in]...Comma separated list of character data to put in the TX buffer. Supported values consist of 1 to 63 characters.
Returns
Initializer that sets up the pipe, length, and byte array for content of the TX data.