37 #ifndef ACCESS_RELIABLE_H__ 38 #define ACCESS_RELIABLE_H__ 44 #include "nrf_mesh_config_bearer.h" 70 #define ACCESS_RELIABLE_TIMEOUT_MIN (SEC_TO_US(2)) 73 #define ACCESS_RELIABLE_TIMEOUT_MAX (SEC_TO_US(60)) 76 #define ACCESS_RELIABLE_HOP_PENALTY (MS_TO_US(BEARER_ADV_INT_DEFAULT_MS)) 79 #define ACCESS_RELIABLE_SEGMENT_COUNT_PENALTY MS_TO_US(BEARER_ADV_INT_DEFAULT_MS) 85 #define ACCESS_RELIABLE_INTERVAL_DEFAULT (MS_TO_US(BEARER_ADV_INT_DEFAULT_MS) * 10) 88 #define ACCESS_RELIABLE_BACK_OFF_FACTOR (2) 91 #define ACCESS_RELIABLE_TIMEOUT_MARGIN (MS_TO_US(1)) 94 #define ACCESS_RELIABLE_RETRY_DELAY (MS_TO_US(BEARER_ADV_INT_DEFAULT_MS) * 2) uint16_t access_model_handle_t
Access layer handle type.
void access_reliable_init(void)
Initializes the acknowledged publication framework.
The acknowledged transfer has been cancelled.
uint32_t access_model_reliable_cancel(access_model_handle_t model_handle)
Cancels an ongoing acknowledged message.
access_reliable_status_t
Access acknowledged transfer status codes.
access_model_handle_t model_handle
Access layer model handle.
void access_reliable_message_rx_cb(access_model_handle_t model_handle, const access_message_rx_t *p_message, void *p_args)
Callback called by access layer when a model receives a message.
The acknowledged transfer reached its timeout.
Access layer opcode type.
Access layer acknowledged publish parameter structure.
uint32_t timeout
Relative acknowledged message timeout.
void access_reliable_cancel_all(void)
Cancels all ongoing transfers.
access_message_tx_t message
Access layer message.
Access layer TX parameter structure.
The acknowledged transfer was completed successfully.
void(* access_reliable_cb_t)(access_model_handle_t model_handle, void *p_args, access_reliable_status_t status)
Access layer acknowledged message callback type.
uint32_t access_model_reliable_publish(const access_reliable_t *p_reliable)
Starts publishing an acknowledged message.
Access layer RX event structure.
access_opcode_t reply_opcode
Opcode of the expected reply.
bool access_reliable_model_is_free(access_model_handle_t model_handle)
Checks if the model context for the given model handle is free for acknowledged message publishing...
access_reliable_cb_t status_cb
Callback to call after the acknowledged transfer has ended.