Go to the documentation of this file.
40 #ifndef _NO_OS_SRC_TIMER_H_
41 #define _NO_OS_SRC_TIMER_H_
53 #define TIMER_MAX_TABLE 4
125 uint64_t *elapsed_time);
165 uint64_t *elapsed_time);
167 #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:63
uint16_t id
Definition: no_os_timer.h:91
const struct no_os_timer_platform_ops * platform_ops
Definition: no_os_timer.h:73
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:197
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:179
uint32_t ticks_count
Definition: no_os_timer.h:95
uint32_t freq_hz
Definition: no_os_timer.h:93
uint32_t ticks_count
Definition: no_os_timer.h:71
uint16_t id
Definition: no_os_timer.h:67
int32_t no_os_timer_start(struct no_os_timer_desc *desc)
Start a timer.
Definition: no_os_timer.c:110
int32_t no_os_timer_stop(struct no_os_timer_desc *desc)
Stop a timer from counting.
Definition: no_os_timer.c:126
int32_t no_os_timer_remove(struct no_os_timer_desc *desc)
Free the memory allocated by timer_init().
Definition: no_os_timer.c:91
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:215
const struct no_os_timer_platform_ops * platform_ops
Definition: no_os_timer.h:97
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:144
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:89
uint32_t freq_hz
Definition: no_os_timer.h:69
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:162
void * extra
Definition: no_os_timer.h:75
void * extra
Definition: no_os_timer.h:99
void * mutex
Definition: no_os_timer.h:65
Structure holding timer descriptor.
Definition: no_os_timer.h:63