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.
|
Common application definitions and includes for BLE Mesh Node. More...
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <meshx_err.h>
#include <meshx_config_internal.h>
#include <interface/logging/meshx_log.h>
#include "interface/meshx_platform.h"
#include "unit_test.h"
Go to the source code of this file.
Data Structures | |
struct | meshx_app_store |
Structure to store mesh application data. More... | |
struct | dev_struct |
Structure representing the device composition and elements. More... | |
struct | meshx_model_interface |
struct | element_comp_table |
Structure to store element composition functions. More... | |
Macros | |
#define | CONFIG_SECTION_ENABLE_ELEMENT_TABLE 0 |
Enable Element Table registration using Linker script. | |
#define | MAX_ELE_CNT CONFIG_MAX_ELEMENT_COUNT |
#define | MESHX_NVS_STORE "meshx_store" |
#define | REG_MESHX_ELEMENT_FN(_name, _type, _fn) |
Register an element composition function. | |
Typedefs | |
typedef struct meshx_app_store | meshx_app_store_t |
Structure to store mesh application data. | |
typedef struct dev_struct | dev_struct_t |
Structure representing the device composition and elements. | |
typedef struct meshx_model_interface | meshx_model_interface_t |
typedef meshx_err_t(* | element_comp_fn_t) (dev_struct_t *pdev, uint16_t element_cnt) |
MeshX Compostion init Function Pointer. | |
typedef struct element_comp_table | element_comp_table_t |
Common application definitions and includes for BLE Mesh Node.
Copyright © 2024 - 2025 MeshX
This header file contains common definitions, includes, and data structures used across the BLE Mesh Node application.
Definition in file meshx_common.h.
#define CONFIG_SECTION_ENABLE_ELEMENT_TABLE 0 |
Enable Element Table registration using Linker script.
Definition at line 34 of file meshx_common.h.
#define MAX_ELE_CNT CONFIG_MAX_ELEMENT_COUNT |
Definition at line 37 of file meshx_common.h.
#define MESHX_NVS_STORE "meshx_store" |
Definition at line 38 of file meshx_common.h.
#define REG_MESHX_ELEMENT_FN | ( | _name, | |
_type, | |||
_fn ) |
Register an element composition function.
This macro registers an element composition function to the element table.
_name | Name of the element composition function. |
_type | Type of the element. |
_fn | Element composition function. |
Definition at line 122 of file meshx_common.h.
typedef struct dev_struct dev_struct_t |
Structure representing the device composition and elements.
typedef meshx_err_t(* element_comp_fn_t) (dev_struct_t *pdev, uint16_t element_cnt) |
MeshX Compostion init Function Pointer.
[in] | pdev | Pointer to the device structure. |
[in] | element_cnt | Number of elements. |
Definition at line 81 of file meshx_common.h.
typedef struct element_comp_table element_comp_table_t |
typedef struct meshx_app_store meshx_app_store_t |
Structure to store mesh application data.
typedef struct meshx_model_interface meshx_model_interface_t |