Modules | |
Section iterator configuration | |
Data Structures | |
struct | nrf_section_t |
Single section description structure. More... | |
struct | nrf_section_set_t |
Set of the sections description structure. More... | |
struct | nrf_section_iter_t |
Section iterator structure. More... | |
Macros | |
#define | NRF_SECTION_SET_DEF(_name, _type, _count) |
Create a section set instance. More... | |
#define | NRF_SECTION_DEF_(_priority, _name, _type) NRF_SECTION_DEF(CONCAT_2(_name, _priority), _type); |
#define | NRF_SECTION_SET_DEF_(_priority, _name) |
#define | NRF_SECTION_SET_ITEM_REGISTER(_name, _priority, _var) NRF_SECTION_ITEM_REGISTER(CONCAT_2(_name, _priority), _var) |
Macro to declare a variable and register it in the section set. More... | |
Functions | |
void | nrf_section_iter_init (nrf_section_iter_t *p_iter, nrf_section_set_t const *p_set) |
Function for initializing the section set iterator. More... | |
void | nrf_section_iter_next (nrf_section_iter_t *p_iter) |
Function for incrementing iterator. More... | |
static void * | nrf_section_iter_get (nrf_section_iter_t const *p_iter) |
Function for getting the element pointed to by the iterator. More... | |
#define NRF_SECTION_SET_DEF | ( | _name, | |
_type, | |||
_count | |||
) |
Create a section set instance.
Section set is an ordered group of sections.
[in] | _name | Name of the section set. |
[in] | _type | Type of the elements stored in the section. |
[in] | _count | Number of the sections in the set. This parameter is ignored in case of GCC. |
#define NRF_SECTION_SET_DEF_ | ( | _priority, | |
_name | |||
) |
#define NRF_SECTION_SET_ITEM_REGISTER | ( | _name, | |
_priority, | |||
_var | |||
) | NRF_SECTION_ITEM_REGISTER(CONCAT_2(_name, _priority), _var) |
Macro to declare a variable and register it in the section set.
[in] | _name | Name of the section set. |
[in] | _priority | Priority of the desired section. |
[in] | _var | The variable to register in the given section. |
|
inlinestatic |
Function for getting the element pointed to by the iterator.
[in] | p_iter | Pointer to the iterator. |
Pointer | to the element or NULL if iterator points end of the set. |
void nrf_section_iter_init | ( | nrf_section_iter_t * | p_iter, |
nrf_section_set_t const * | p_set | ||
) |
Function for initializing the section set iterator.
[in] | p_iter | Pointer to the iterator. |
[in] | p_set | Pointer to the sections set. |
void nrf_section_iter_next | ( | nrf_section_iter_t * | p_iter | ) |
Function for incrementing iterator.
[in] | p_iter | Pointer to the iterator. |