nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ NRF_RPC_AUTO_ARR

#define NRF_RPC_AUTO_ARR ( _name,
_array_key )

#include <nrf_rpc/include/nrf_rpc_common.h>

Value:
const uint8_t NRF_RPC_CONCAT(_name, _auto_arr_end) __used \
__attribute__((__section__(".nrf_rpc." _array_key ".c"))); \
const uint8_t *const _name __used \
__attribute__((__section__(".nrf_rpc." _array_key ".a"))) = \
&NRF_RPC_CONCAT(_name, _auto_arr_end)
#define NRF_RPC_CONCAT(_x, _y)
Macro for concatenating two tokens in macro expansion.
Definition nrf_rpc_common.h:40

Creates new automatically registered array.

Parameters
_nameName of the array. Can be used later for NRF_RPC_AUTO_ARR_FOR.
_array_keyString array unique key that will be used to add items with NRF_RPC_AUTO_ARR_ITEM.