Go to the documentation of this file.
34 #ifndef _NO_OS_SRC_TIMER_H_
35 #define _NO_OS_SRC_TIMER_H_
47 #define TIMER_MAX_TABLE 4
119 uint64_t *elapsed_time);
159 uint64_t *elapsed_time);
161 #endif // _NO_OS_SRC_TIMER_H_
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:57
uint16_t id
Definition: no_os_timer.h:85
const struct no_os_timer_platform_ops * platform_ops
Definition: no_os_timer.h:67
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:191
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:173
uint32_t ticks_count
Definition: no_os_timer.h:89
uint32_t freq_hz
Definition: no_os_timer.h:87
uint32_t ticks_count
Definition: no_os_timer.h:65
uint16_t id
Definition: no_os_timer.h:61
int32_t no_os_timer_start(struct no_os_timer_desc *desc)
Start a timer.
Definition: no_os_timer.c:104
int32_t no_os_timer_stop(struct no_os_timer_desc *desc)
Stop a timer from counting.
Definition: no_os_timer.c:120
int32_t no_os_timer_remove(struct no_os_timer_desc *desc)
Free the memory allocated by timer_init().
Definition: no_os_timer.c:85
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:209
const struct no_os_timer_platform_ops * platform_ops
Definition: no_os_timer.h:91
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:138
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:83
uint32_t freq_hz
Definition: no_os_timer.h:63
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:156
void * extra
Definition: no_os_timer.h:69
void * extra
Definition: no_os_timer.h:93
void * mutex
Definition: no_os_timer.h:59
Structure holding timer descriptor.
Definition: no_os_timer.h:57