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

◆ esb_set_prefixes()

int esb_set_prefixes ( const uint8_t *  prefixes,
uint8_t  num_pipes 
)

#include <include/esb.h>

Set the number of pipes and the pipe prefix addresses.

This function configures the number of available pipes, enables the pipes, and sets their prefix addresses.

Parameters
[in]prefixesPrefixes for each pipe.
[in]num_pipesNumber of pipes. Must be less than or equal to
embed:rst:inline :kconfig:option:`CONFIG_ESB_PIPE_COUNT` 
.
Return values
0If successful. Otherwise, a (negative) error code is returned.