49#ifndef CONFIG_SECTION_ENABLE_ELEMENT_TABLE
50#define CONFIG_SECTION_ENABLE_ELEMENT_TABLE 0
53#define MAX_ELE_CNT CONFIG_MAX_ELEMENT_COUNT
54#define MESHX_NVS_STORE "meshx_store"
111#if CONFIG_SECTION_ENABLE_ELEMENT_TABLE
122#define REG_MESHX_ELEMENT_FN(_name, _type, _fn) \
123 __section(".element_table") const element_comp_table_t _name = { \
125 .element_comp_fn = &_fn, \
140#define REG_MESHX_ELEMENT_FN(_name, _type, _fn)
void * meshx_ptr_t
Definition meshx_ble_mesh_cmn_def.h:636
meshx_ctrl_evt_t
Enumeration for the BLE Mesh application control event.
Definition meshx_common.h:31
@ MESHX_CTRL_EVT_PROV_START
Definition meshx_common.h:35
@ MESHX_CTRL_EVT_PROV_COMP
Definition meshx_common.h:33
@ MESHX_CTRL_EVT_NODE_RESET
Definition meshx_common.h:32
@ MESHX_CTRL_EVT_IDENTIFY_STOP
Definition meshx_common.h:37
@ MESHX_CTRL_EVT_PROV_FAILED
Definition meshx_common.h:34
@ MESHX_CTRL_EVT_IDENTIFY_START
Definition meshx_common.h:36
struct element_comp_table element_comp_table_t
struct dev_struct dev_struct_t
Structure representing the device composition and elements.
meshx_err_t(* element_comp_fn_t)(dev_struct_t *pdev, uint16_t element_cnt)
MeshX Compostion init Function Pointer.
Definition meshx_common.h:99
struct meshx_app_store meshx_app_store_t
Structure to store mesh application data.
struct meshx_model_interface meshx_model_interface_t
Internal configuration settings for MeshX.
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:43
Logging interface for MeshX with color-coded output.
Structure representing the device composition and elements.
Definition meshx_common.h:69
void * composition
Definition meshx_common.h:72
meshx_app_store_t meshx_store
Definition meshx_common.h:75
size_t element_idx
Definition meshx_common.h:71
MESHX_ELEMENT * elements
Definition meshx_common.h:73
uint8_t uuid[16]
Definition meshx_common.h:70
size_t element_cnt
Definition meshx_common.h:74
Structure to store element composition functions.
Definition meshx_common.h:106
uint8_t idx
Definition meshx_common.h:107
element_comp_fn_t element_comp_fn
Definition meshx_common.h:108
Structure to store mesh application data.
Definition meshx_common.h:60
uint16_t net_key_id
Definition meshx_common.h:61
uint16_t node_addr
Definition meshx_common.h:62
Definition meshx_common.h:83
meshx_ptr_t meshx_sig
Definition meshx_common.h:85
meshx_ptr_t meshx_gen
Definition meshx_common.h:87
meshx_ptr_t meshx_pub
Definition meshx_common.h:86