13#ifndef __MESHX_TXCM_H__
14#define __MESHX_TXCM_H__
26#ifndef MESHX_TXCM_MSG_RETRY_MAX
27#define MESHX_TXCM_MSG_RETRY_MAX 3
33#ifndef MESHX_TXCM_MSG_PARAM_MAX_LEN
34#define MESHX_TXCM_MSG_PARAM_MAX_LEN 64
40#ifndef MESHX_TXCM_TX_Q_LEN
41#define MESHX_TXCM_TX_Q_LEN 10
47#define MESHX_TXCM_TX_Q_DEPTH sizeof(meshx_txcm_tx_q_t)
146 uint16_t msg_param_len,
Common definitions for BLE Mesh models and opcodes in the MeshX framework.
const void * meshx_cptr_t
Common application definitions and includes for BLE Mesh Node.
struct dev_struct dev_struct_t
Structure representing the device composition and elements.
Header file for the control task in the BLE mesh node application.
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.
meshx_err_t
MeshX Error Codes.
meshx_err_t meshx_txcm_init(dev_struct_t *pdev)
Initializes the MeshX Tx Control Module.
meshx_err_t meshx_txcm_request_send(meshx_txcm_sig_t request_type, uint16_t dest_addr, meshx_cptr_t msg_param, uint16_t msg_param_len, meshx_txcm_fn_model_send_t send_fn)
Sends a request to the Tx Control module.
control_task_msg_handle_t meshx_txcm_cb_t
struct meshx_txcm_request meshx_txcm_request_t
Structure for Tx Control module requests.
meshx_txcm_sig_t
Enumeration of signal types for the Tx Control Module.
@ MESHX_TXCM_SIG_ENQ_SEND
@ MESHX_TXCM_SIG_DIRECT_SEND
meshx_txcm_msg_state_t
Enumeration of message states for the Tx Control Module.
@ MESHX_TXCM_MSG_STATE_SENDING
@ MESHX_TXCM_MSG_STATE_NACK
@ MESHX_TXCM_MSG_STATE_NONE
@ MESHX_TXCM_MSG_STATE_NEW
@ MESHX_TXCM_MSG_STATE_ACK
@ MESHX_TXCM_MSG_STATE_WAITING_ACK
@ MESHX_TXCM_MSG_STATE_MAX
@ MESHX_TXCM_MSG_TYPE_UNACKED
@ MESHX_TXCM_MSG_TYPE_MAX
@ MESHX_TXCM_MSG_TYPE_ACKED
meshx_err_t(* meshx_txcm_fn_model_send_t)(meshx_cptr_t msg_param, size_t msg_param_len)
Function pointer the Model client layer needs to provide for the msg to be sent for both MESHX_TXCM_S...
meshx_err_t meshx_txcm_event_cb_reg(meshx_txcm_cb_t event_cb)
Registers a callback function for handling Tx Control module events.
Structure for Tx Control module requests.
meshx_txcm_sig_t request_type
meshx_txcm_fn_model_send_t send_fn