34#ifndef _NO_OS_SRC_TIMER_H_
35#define _NO_OS_SRC_TIMER_H_
39#define TIMER_MAX_TABLE 4
107 uint64_t *elapsed_time);
143 uint64_t *elapsed_time);
int32_t no_os_timer_start(struct no_os_timer_desc *desc)
Start a timer.
Definition no_os_timer.c:98
int32_t no_os_timer_init(struct no_os_timer_desc **desc, const struct no_os_timer_init_param *param)
Initialize hardware timer and the handler structure associated with it.
Definition no_os_timer.c:51
int32_t no_os_timer_counter_get(struct no_os_timer_desc *desc, uint32_t *counter)
Get the value of the counter register for the timer.
Definition no_os_timer.c:132
int32_t no_os_timer_counter_set(struct no_os_timer_desc *desc, uint32_t new_val)
Set the timer counter register value.
Definition no_os_timer.c:150
int32_t no_os_timer_count_clk_set(struct no_os_timer_desc *desc, uint32_t freq_hz)
Set the timer clock frequency.
Definition no_os_timer.c:185
int32_t no_os_timer_stop(struct no_os_timer_desc *desc)
Stop a timer from counting.
Definition no_os_timer.c:114
int32_t no_os_timer_remove(struct no_os_timer_desc *desc)
Free the memory allocated by timer_init().
Definition no_os_timer.c:79
int32_t no_os_timer_get_elapsed_time_nsec(struct no_os_timer_desc *desc, uint64_t *elapsed_time)
Get the elapsed time in nsec for the timer.
Definition no_os_timer.c:203
int32_t no_os_timer_count_clk_get(struct no_os_timer_desc *desc, uint32_t *freq_hz)
Get the timer clock frequency.
Definition no_os_timer.c:167
Structure holding timer descriptor.
Definition no_os_timer.h:45
void * extra
Definition no_os_timer.h:57
uint16_t id
Definition no_os_timer.h:49
void * mutex
Definition no_os_timer.h:47
uint32_t freq_hz
Definition no_os_timer.h:51
uint32_t ticks_count
Definition no_os_timer.h:53
const struct no_os_timer_platform_ops * platform_ops
Definition no_os_timer.h:55
Structure holding the parameters for timer initialization.
Definition no_os_timer.h:71
void * extra
Definition no_os_timer.h:81
uint16_t id
Definition no_os_timer.h:73
uint32_t freq_hz
Definition no_os_timer.h:75
const struct no_os_timer_platform_ops * platform_ops
Definition no_os_timer.h:79
uint32_t ticks_count
Definition no_os_timer.h:77