11#ifndef __MESHX_API_H__
12#define __MESHX_API_H__
18#define MESHX_APP_API_MSG_MAX_SIZE sizeof(meshx_data_payload_t)
21#define MESHX_ELEMENT_FUNC_ID_RELAY_SERVER_ONN_OFF 0x00
24#define MESHX_ELEMENT_FUNC_ID_LIGHT_CWWW_SERVER_ONN_OFF 0x00
25#define MESHX_ELEMENT_FUNC_ID_LIGHT_CWWW_SERVER_CTL 0x01
28#define MESHX_ELEMENT_FUNC_ID_LIGHT_CWWW_CLIENT_ONN_OFF 0x00
29#define MESHX_ELEMENT_FUNC_ID_LIGHT_CWWW_CLIENT_CTL 0x01
union meshx_data_payload meshx_data_payload_t
Structure for the BLE Mesh application control message.
union meshx_ctrl_payload meshx_ctrl_payload_t
Structure defines the payload for meshx_ctrl_payload.
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.
struct meshx_ctrl_msg_header meshx_ctrl_msg_header_t
Structure for the BLE Mesh application control message header.
struct meshx_app_element_msg_header meshx_app_element_msg_header_t
Structure for the BLE Mesh application element message header.
meshx_api_type
Enumeration of BLE Mesh application API message types.
enum meshx_api_type meshx_api_type_t
Enumeration of BLE Mesh application API message types.
meshx_err_t meshx_send_msg_to_app(uint16_t element_id, uint16_t element_type, uint16_t func_id, uint16_t msg_len, const void *msg)
Sends a message to the BLE Mesh application.
struct meshx_api_relay_client_state meshx_api_relay_client_evt_t
Structure defines the payload for MESHX_ELEMENT_TYPE_RELAY_CLIENT.
enum meshx_element_type meshx_element_type_t
Enumeration of BLE Mesh application API message types.
struct meshx_api_relay_server_evt meshx_api_relay_server_evt_t
Structure defines the payload for MESHX_ELEMENT_TYPE_RELAY_SERVER.
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.
struct meshx_app_api_msg meshx_app_api_msg_t
Structure for the BLE Mesh application API message.
meshx_err_t meshx_send_msg_to_element(uint16_t element_id, uint16_t element_type, uint16_t func_id, uint16_t msg_len, const void *msg)
Sends a message to the element.
meshx_err_t meshx_app_reg_element_callback(meshx_app_data_cb_t cb)
Registers the BLE Mesh application callback.
meshx_element_type
Enumeration of BLE Mesh application API message types.
@ MESHX_ELEMENT_TYPE_LIGHT_CWWW_CLIENT
@ MESHX_ELEMENT_TYPE_RELAY_CLIENT
@ MESHX_ELEMENT_TYPE_LIGHT_CWWW_SERVER
@ MESHX_ELEMENT_TYPE_RELAY_SERVER
struct meshx_api_light_cwww_server_evt meshx_api_light_cwww_server_evt_t
Structure defines the payload for MESHX_ELEMENT_TYPE_LIGHT_CWWW_SERVER.
struct meshx_api_light_cwww_client_evt meshx_api_light_cwww_client_evt_t
Structure defines the payload for MESHX_ELEMENT_TYPE_LIGHT_CWWW_CLIENT.
meshx_err_t meshx_app_reg_system_events_callback(meshx_app_ctrl_cb_t cb)
Registers the BLE Mesh application control callback.
#define MESHX_APP_API_MSG_MAX_SIZE
Common application definitions and includes for BLE Mesh Node.
Header file for the control task in the BLE mesh node application.
CONTROL_TASK_MSG_EVT_CTRL
CONTROL_TASK_MSG_EVT_DATA
Header file for MeshX elements.
meshx_err_t
MeshX Error Codes.
Structure defines the payload for MESHX_ELEMENT_TYPE_LIGHT_CWWW_CLIENT.
struct meshx_api_light_cwww_client_evt::@347235105244230326232000270243372246073133053316::@202375373323027037070222212050326072162342057303 on_off
struct meshx_api_light_cwww_client_evt::@347235105244230326232000270243372246073133053316::@153162234125000074275266213156212277206313354032 ctl
union meshx_api_light_cwww_client_evt::@347235105244230326232000270243372246073133053316 state_change
Structure defines the payload for MESHX_ELEMENT_TYPE_LIGHT_CWWW_SERVER.
union meshx_api_light_cwww_server_evt::@257165005032013366004013204037032016036030275264 state_change
struct meshx_api_light_cwww_server_evt::@257165005032013366004013204037032016036030275264::@375004001161356005102054253202024137247030164222 on_off
struct meshx_api_light_cwww_server_evt::@257165005032013366004013204037032016036030275264::@245341060156102221224175046143367317210200103050 ctl
Structure defines the payload for MESHX_ELEMENT_TYPE_RELAY_CLIENT.
Structure defines the payload for MESHX_ELEMENT_TYPE_RELAY_SERVER.
Structure for the BLE Mesh application API message.
union meshx_app_api_msg::@336376344215041027113126022265212173363045212317 msg_type_u
uint8_t data[MESHX_APP_API_MSG_MAX_SIZE]
meshx_app_element_msg_header_t element_msg
meshx_ctrl_msg_header_t ctrl_msg
Structure defines the payload for meshx_ctrl_payload.
Structure for the BLE Mesh application control message.
meshx_api_relay_server_evt_t relay_server_evt
meshx_api_relay_client_evt_t relay_client_evt
meshx_api_light_cwww_client_evt_t light_cwww_client_evt
meshx_api_light_cwww_server_evt_t light_cwww_server_evt