24#define OS_TIMER_SIZE sizeof(meshx_os_timer_t)
29#define OS_TMER_GET_TIMER_NAME(timer) (timer->timer_handle.timer_name)
Header file for the control task in the BLE mesh node application.
meshx_err_t
MeshX Error Codes.
meshx_err_t meshx_os_timer_start(const meshx_os_timer_t *timer_handle)
Start a timer.
struct meshx_os_timer meshx_os_timer_t
Alias for the meshx_os_timer structure.
meshx_err_t meshx_os_timer_init(void)
Initialize the OS timer module.
void(* meshx_os_timer_cb_t)(const meshx_os_timer_t *p_timer)
Timer callback function prototype.
meshx_err_t meshx_os_timer_create(const char *name, uint32_t period, bool reload, meshx_os_timer_cb_t cb, meshx_os_timer_t **timer_handle)
Create a timer.
meshx_err_t meshx_os_timer_restart(const meshx_os_timer_t *timer_handle)
Restart a timer.
meshx_err_t meshx_os_timer_set_period(meshx_os_timer_t *timer_handle, const uint32_t period_ms)
Set period on an initialised timer.
meshx_err_t meshx_os_timer_stop(const meshx_os_timer_t *timer_handle)
Stop a timer.
meshx_rtos_timer_t meshx_os_timer_handle_t
Alias for the meshx_rtos_timer_t type.
meshx_err_t meshx_os_timer_delete(meshx_os_timer_t **timer_handle)
Delete a timer.
Header file for MeshX RTOS Timer interface. Provides APIs for creating, starting, stopping,...
struct meshx_rtos_timer meshx_rtos_timer_t
Structure to hold parameters for the OS timer control task message.
meshx_os_timer_handle_t timer_handle
SLIST_ENTRY(meshx_os_timer) next