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.
Definition meshx_err.h:43
meshx_err_t meshx_os_timer_start(const meshx_os_timer_t *timer_handle)
Start a timer.
Definition meshx_os_timer.c:315
struct meshx_os_timer meshx_os_timer_t
Alias for the meshx_os_timer structure.
Definition meshx_os_timer.h:47
meshx_err_t meshx_os_timer_init(void)
Initialize the OS timer module.
Definition meshx_os_timer.c:227
void(* meshx_os_timer_cb_t)(const meshx_os_timer_t *p_timer)
Timer callback function prototype.
Definition meshx_os_timer.h:55
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.
Definition meshx_os_timer.c:264
meshx_err_t meshx_os_timer_restart(const meshx_os_timer_t *timer_handle)
Restart a timer.
Definition meshx_os_timer.c:340
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.
Definition meshx_os_timer.c:366
meshx_err_t meshx_os_timer_stop(const meshx_os_timer_t *timer_handle)
Stop a timer.
Definition meshx_os_timer.c:393
meshx_rtos_timer_t meshx_os_timer_handle_t
Alias for the meshx_rtos_timer_t type.
Definition meshx_os_timer.h:38
meshx_err_t meshx_os_timer_delete(meshx_os_timer_t **timer_handle)
Delete a timer.
Definition meshx_os_timer.c:419
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.
Definition meshx_os_timer.h:66
meshx_os_timer_cb_t cb
Definition meshx_os_timer.h:69
meshx_os_timer_handle_t timer_handle
Definition meshx_os_timer.h:70
SLIST_ENTRY(meshx_os_timer) next
uint16_t init
Definition meshx_os_timer.h:67
uint32_t period
Definition meshx_os_timer.h:68