17#ifndef __MESHX_RTOS_TIMER_H
18#define __MESHX_RTOS_TIMER_H
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:43
meshx_err_t meshx_rtos_timer_stop(meshx_rtos_timer_t *timer)
Stops the RTOS timer.
struct meshx_rtos_timer meshx_rtos_timer_t
meshx_err_t meshx_rtos_timer_start(meshx_rtos_timer_t *timer)
Starts the RTOS timer.
meshx_err_t meshx_rtos_timer_delete(meshx_rtos_timer_t *timer)
Deletes the RTOS timer.
void(* meshx_rtos_timer_callback_t)(void *)
Definition meshx_rtos_timer.h:24
void meshx_os_timer_fire_cb(const void *timer_handle)
Definition meshx_os_timer.c:149
meshx_err_t meshx_rtos_timer_change_period(meshx_rtos_timer_t *timer, uint32_t new_period_ms)
Changes the period of the RTOS timer.
meshx_err_t meshx_rtos_timer_reset(meshx_rtos_timer_t *timer)
Resets the RTOS timer.
meshx_err_t meshx_rtos_timer_create(meshx_rtos_timer_t *timer, const char *name, meshx_rtos_timer_callback_t cb, void *arg, uint32_t period_ms, bool reload)
Creates a new RTOS timer.
Definition meshx_rtos_timer.h:27
uint32_t timer_period
Definition meshx_rtos_timer.h:31
meshx_rtos_timer_callback_t timer_cb
Definition meshx_rtos_timer.h:33
const char * timer_name
Definition meshx_rtos_timer.h:32
bool auto_reload
Definition meshx_rtos_timer.h:30
void * __timer_handle
Definition meshx_rtos_timer.h:35
void * timer_arg
Definition meshx_rtos_timer.h:29