MeshX 0.3
This repository provides an implementation for Bluetooth Low Energy (BLE) Mesh network nodes. The project allows you to create BLE mesh nodes that can communicate with each other, enabling the development of smart home solutions or other IoT-based applications.
|
BLE Mesh Composition Initialization and Element Creation. More...
#include "meshx_common.h"
#include "meshx.h"
#include "interface/ble_mesh/server/meshx_ble_mesh_prov_srv.h"
#include "meshx_relay_server_element.h"
#include "meshx_relay_client_element.h"
#include "meshx_cwww_server_element.h"
#include "meshx_light_cwww_client_element.h"
Go to the source code of this file.
Typedefs | |
typedef meshx_err_t(* | root_model_getfn_t) (void *p_model) |
Functions | |
MESHX_MODEL * | get_root_sig_models (void) |
Returns the root models for BLE Mesh elements. | |
MESHX_MODEL * | get_root_ven_models (void) |
Returns the root models for BLE Mesh elements. | |
size_t | get_root_sig_models_count (void) |
Returns the count of the root models. | |
size_t | get_root_ven_models_count (void) |
Returns the count of the vendor root models. | |
meshx_err_t | meshx_create_element_composition (dev_struct_t *p_dev, meshx_config_t const *config) |
Creates the BLE Mesh element composition. | |
Variables | |
element_comp_fn_t | element_comp_fn [MESHX_ELEMENT_TYPE_MAX] |
static MESHX_MODEL * | meshx_sig_root_model_arr = NULL |
static MESHX_MODEL * | meshx_ven_root_model_arr = NULL |
static root_model_getfn_t | meshx_sig_root_model_getfn [] |
static root_model_getfn_t | meshx_ven_root_model_getfn [] = {} |
static uint16_t | meshx_sig_root_model_arr_len = MESHX_ARRAY_SIZE(meshx_sig_root_model_getfn) |
static uint16_t | meshx_ven_root_model_arr_len = MESHX_ARRAY_SIZE(meshx_ven_root_model_getfn) |
BLE Mesh Composition Initialization and Element Creation.
Copyright © 2024 - 2025 MeshX
This file contains functions and definitions for initializing BLE Mesh composition data and creating BLE Mesh elements for various configurations such as relay servers, relay clients, and CWWW (Cool White and Warm White) servers.
The file includes necessary headers and conditionally includes headers based on configuration macros. It defines macros for error handling and contains static variables for provisioning parameters and Light CTL state.
Definition in file composition.c.
typedef meshx_err_t(* root_model_getfn_t) (void *p_model) |
Definition at line 67 of file composition.c.
MESHX_MODEL * get_root_sig_models | ( | void | ) |
Returns the root models for BLE Mesh elements.
Definition at line 89 of file composition.c.
size_t get_root_sig_models_count | ( | void | ) |
Returns the count of the root models.
Definition at line 156 of file composition.c.
MESHX_MODEL * get_root_ven_models | ( | void | ) |
Returns the root models for BLE Mesh elements.
Definition at line 126 of file composition.c.
size_t get_root_ven_models_count | ( | void | ) |
Returns the count of the vendor root models.
Definition at line 166 of file composition.c.
meshx_err_t meshx_create_element_composition | ( | dev_struct_t * | p_dev, |
meshx_config_t const * | config ) |
Creates the BLE Mesh element composition.
Initializes the BLE Mesh elements for different configurations like relay servers, relay clients, and CWWW (Cool White and Warm White) servers.
[in] | p_dev | Pointer to the device structure containing element information. |
[in] | config | Pointer to the meshx configuration. |
Definition at line 182 of file composition.c.
element_comp_fn_t element_comp_fn[MESHX_ELEMENT_TYPE_MAX] |
Definition at line 46 of file composition.c.
|
static |
Root models for BLE Mesh elements.
Definition at line 64 of file composition.c.
|
static |
Definition at line 81 of file composition.c.
|
static |
Definition at line 70 of file composition.c.
|
static |
Definition at line 65 of file composition.c.
|
static |
Definition at line 82 of file composition.c.
|
static |
Definition at line 79 of file composition.c.