18#ifndef __MESHX_PLAT_SRV_CMN_H__
19#define __MESHX_PLAT_SRV_CMN_H__
212 uint16_t element_idx);
meshx_err_t meshx_plat_del_model_pub(meshx_ptr_t *p_pub)
Deletes the model and publication objects.
meshx_err_t meshx_plat_client_delete(meshx_ptr_t p_model, meshx_ptr_t *p_pub, meshx_ptr_t *p_cli)
Deletes a generic client model from BLE Mesh.
meshx_err_t meshx_plat_create_model_pub(meshx_ptr_t *p_pub, uint16_t nmax)
Creates and initializes model and publication structures.
meshx_err_t meshx_plat_add_element_to_composition(uint16_t index, meshx_ptr_t p_element_list, meshx_ptr_t p_sig_models, meshx_ptr_t p_ven_models, uint8_t sig_cnt, uint8_t ven_cnt)
Adds an element to the BLE Mesh composition.
meshx_err_t meshx_create_plat_composition(meshx_ptr_t *p_comp)
Creates a platform-specific BLE Mesh composition object.
meshx_err_t meshx_plat_client_create(meshx_ptr_t p_model, meshx_ptr_t *p_pub, meshx_ptr_t *p_cli, uint16_t model_id)
Creates and initializes a generic client model for BLE Mesh.
meshx_err_t meshx_platform_bt_init(meshx_uuid_addr_t uuid)
Initializes the Bluetooth subsystem of the MeshX platform.
meshx_err_t meshx_plat_composition_init(meshx_ptr_t p_composition, meshx_ptr_t p_elements, uint16_t cid, uint16_t pid, uint16_t element_idx)
Initializes a platform-specific BLE Mesh composition.
meshx_err_t meshx_get_model_id(meshx_ptr_t p_model, uint16_t *model_id)
Retrieve the model ID of a generic server model.
meshx_err_t meshx_is_group_subscribed(meshx_model_t *p_model, uint16_t addr)
Checks if a model is subscribed to a specific group address.
struct meshx_prov_params meshx_prov_params_t
Structure to hold provisioning parameters.
struct meshx_model meshx_model_t
meshx_err_t meshx_get_base_element_id(uint16_t *base_el_id)
Retrieves the base element ID for the BLE Mesh platform.
struct meshx_ctx meshx_ctx_t
Structure to hold context information for BLE Mesh operations.
meshx_err_t meshx_plat_ble_mesh_init(const meshx_prov_params_t *prov_cfg, meshx_ptr_t comp)
Initializes the BLE Mesh stack with the given provisioning parameters.
Common definitions for BLE Mesh models and opcodes in the MeshX framework.
void * meshx_ptr_t
Definition meshx_ble_mesh_cmn_def.h:636
uint8_t meshx_uuid_addr_t[16]
Definition meshx_ble_mesh_cmn_def.h:649
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:43
Structure to hold context information for BLE Mesh operations.
Definition meshx_ble_mesh_cmn.h:46
meshx_ptr_t p_ctx
Definition meshx_ble_mesh_cmn.h:52
uint16_t app_idx
Definition meshx_ble_mesh_cmn.h:47
uint32_t opcode
Definition meshx_ble_mesh_cmn.h:49
uint16_t net_idx
Definition meshx_ble_mesh_cmn.h:48
uint16_t src_addr
Definition meshx_ble_mesh_cmn.h:50
uint16_t dst_addr
Definition meshx_ble_mesh_cmn.h:51
Structure as Interface for meshx models.
Definition meshx_ble_mesh_cmn.h:35
meshx_ptr_t p_model
Definition meshx_ble_mesh_cmn.h:39
uint16_t pub_addr
Definition meshx_ble_mesh_cmn.h:38
uint16_t el_id
Definition meshx_ble_mesh_cmn.h:36
uint16_t model_id
Definition meshx_ble_mesh_cmn.h:37
Structure to hold provisioning parameters.
Definition meshx_ble_mesh_cmn.h:59
uint8_t * node_name
Definition meshx_ble_mesh_cmn.h:61
uint8_t * uuid
Definition meshx_ble_mesh_cmn.h:60
uint16_t freshboot_timeout_ms
Definition meshx_ble_mesh_cmn.h:62