13#define MESSAGE_BUFF_CLEAR(buff) memset(&buff, 0, sizeof(buff))
75 meshx_api_ctrl.msg_buff.msg_type_u.element_msg.element_id = element_id;
76 meshx_api_ctrl.msg_buff.msg_type_u.element_msg.element_type = element_type;
static struct @116303252105212016000076260223147336330304166341 meshx_api_ctrl
meshx_app_ctrl_cb_t app_ctrl_cb
static meshx_err_t meshx_api_control_task_handler(const dev_struct_t *pdev, control_task_msg_evt_t evt, const void *params)
Control task handler for BLE Mesh application messages.
#define MESSAGE_BUFF_CLEAR(buff)
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.
meshx_app_data_cb_t app_data_cb
meshx_app_api_msg_t msg_buff
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.
static meshx_err_t meshx_prepare_data_message(uint16_t element_id, uint16_t element_type, uint16_t func_id, uint16_t msg_len, const void *msg)
Prepares a message to be sent to the BLE Mesh application.
meshx_err_t meshx_app_reg_system_events_callback(meshx_app_ctrl_cb_t cb)
Registers the BLE Mesh application control callback.
This file contains the API definitions for the MeshX application.
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.
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.
#define MESHX_APP_API_MSG_MAX_SIZE
struct dev_struct dev_struct_t
Structure representing the device composition and elements.
uint32_t control_task_msg_evt_t
Type definition for control task message event.
meshx_err_t(* control_task_msg_handle_t)(dev_struct_t *pdev, control_task_msg_evt_t evt, void *params)
Function pointer type for control task message handler.
@ CONTROL_TASK_MSG_CODE_TO_APP
@ CONTROL_TASK_MSG_CODE_TO_MESHX
meshx_err_t control_task_msg_publish(control_task_msg_code_t msg_code, control_task_msg_evt_t msg_evt, const void *msg_evt_params, size_t sizeof_msg_evt_params)
Publish a control task message.
CONTROL_TASK_MSG_EVT_CTRL
CONTROL_TASK_MSG_EVT_DATA
meshx_err_t control_task_msg_subscribe(control_task_msg_code_t msg_code, control_task_msg_evt_t evt_bmap, control_task_msg_handle_t callback)
Subscribe to a control task message.
static meshx_err_t meshx_api_control_task_handler(const dev_struct_t *pdev, const control_task_msg_evt_t evt, const void *params)
CW-WW server model event handler.
meshx_err_t
MeshX Error Codes.
#define MESHX_LOGE(module_id, format,...)
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