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.
Loading...
Searching...
No Matches
meshx.h
Go to the documentation of this file.
1
9
10#ifndef __MESHX_H__
11#define __MESHX_H__
12
13#include <meshx_common.h>
14#include <meshx_nvs.h>
15#include <meshx_api.h>
16#include <meshx_err.h>
17#include <meshx_os_timer.h>
18#include <meshx_elements.h>
19#if CONFIG_TXCM_ENABLE
20#include <meshx_txcm.h>
21#endif /* CONFIG_TXCM_ENABLE */
23
24#if CONFIG_ENABLE_UNIT_TEST
25#include <unit_test.h>
26#endif /* CONFIG_ENABLE_UNIT_TEST */
27
37#define MESHX_ERR_PRINT_RET(_e_str, _err) \
38 if (_err != MESHX_SUCCESS) \
39 { \
40 MESHX_LOGE(MODULE_ID_COMMON, _e_str " (err 0x%x)", _err); \
41 return _err; \
42 }
43
44#define CID_ESP CONFIG_CID_ID
45
55
73
84
85#endif /* __MESHX_H__ */
struct element_comp element_comp_t
struct meshx_config meshx_config_t
meshx_err_t meshx_init(meshx_config_t const *config)
MeshX initialisation function.
Definition meshx.c:231
This file contains the API definitions for the MeshX application.
meshx_err_t(* meshx_app_data_cb_t)(const meshx_app_element_msg_header_t *msg_hdr, const meshx_data_payload_t *msg)
BLE Mesh application callback function.
Definition meshx_api.h:187
enum meshx_element_type meshx_element_type_t
Enumeration of BLE Mesh application API message types.
meshx_err_t(* meshx_app_ctrl_cb_t)(const meshx_ctrl_msg_header_t *msg_hdr, const meshx_ctrl_payload_t *msg)
BLE Mesh application control callback function.
Definition meshx_api.h:199
uint8_t meshx_uuid_addr_t[MESHX_UUID_ADDR_LEN]
Common application definitions and includes for BLE Mesh Node.
Header file for MeshX elements.
MeshX Error Codes.
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:39
Header file for MeshX Non-Volatile Storage (NVS) operations.
Header file for OS timer utilities.
Platform abstraction layer for MeshX.
MeshX Tx Control Module This header file contains the definitions and function prototypes for the Mes...
Structure for element composition.
Definition meshx.h:51
uint16_t element_cnt
Definition meshx.h:53
meshx_element_type_t type
Definition meshx.h:52
Structure for MeshX configuration.
Definition meshx.h:61
uint32_t meshx_nvs_save_period
Definition meshx.h:65
uint16_t cid
Definition meshx.h:62
unsigned meshx_log_level
Definition meshx.h:70
meshx_app_ctrl_cb_t app_ctrl_cb
Definition meshx.h:69
meshx_app_data_cb_t app_element_cb
Definition meshx.h:68
uint16_t pid
Definition meshx.h:63
uint16_t element_comp_arr_len
Definition meshx.h:66
element_comp_t * element_comp_arr
Definition meshx.h:67
meshx_uuid_addr_t meshx_uuid_addr
Definition meshx.h:71
char * product_name
Definition meshx.h:64
Header file for the production console unit test functionality.