no-OS
maxim_timer.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef MAXIM_TIMER_H_
41 #define MAXIM_TIMER_H_
42 
43 /******************************************************************************/
44 /***************************** Include Files **********************************/
45 /******************************************************************************/
46 #include "tmr.h"
47 #include "stdint.h"
48 
49 /******************************************************************************/
50 /********************** Macros and Constants Definitions **********************/
51 /******************************************************************************/
52 #define SOURCE_CLOCK_FREQ PeripheralClock
53 
54 /******************************************************************************/
55 /*************************** Types Declarations *******************************/
56 /******************************************************************************/
57 
61 extern const struct no_os_timer_platform_ops max_timer_ops;
62 
63 #endif //MAXIM_TIMER_H_
no_os_timer_platform_ops
Structure holding timer function pointers that point to the platform specific function.
Definition: no_os_timer.h:99
max_timer_counter_get
int max_timer_counter_get(struct no_os_timer_desc *desc, uint32_t *counter)
Function to get the current timer counter value.
Definition: maxim_timer.c:212
maxim_timer.h
Header file for Maxim timer platform driver.
max_timer_ops
const struct no_os_timer_platform_ops max_timer_ops
maxim platform specific timer platform ops structure
Definition: maxim_timer.c:311
no_os_timer_init_param::id
uint16_t id
Definition: no_os_timer.h:83
max_get_elapsed_nsec
int max_get_elapsed_nsec(struct no_os_timer_desc *desc, uint64_t *elapsed_time)
Not implemented.
Definition: maxim_timer.c:303
maxim_timer.h
Header file for Maxim timer platform driver.
no_os_timer_desc::platform_ops
const struct no_os_timer_platform_ops * platform_ops
Definition: no_os_timer.h:65
maxim_timer.h
Header file for Maxim timer platform driver.
no_os_timer.h
Timer control module header.
max_timer_counter_set
int max_timer_counter_set(struct no_os_timer_desc *desc, uint32_t new_val)
Function to set the timer counter value.
Definition: maxim_timer.c:228
max_timer_start
int max_timer_start(struct no_os_timer_desc *desc)
Timer count start function.
Definition: maxim_timer.c:181
no_os_timer_init_param::ticks_count
uint32_t ticks_count
Definition: no_os_timer.h:87
max_timer_count_clk_get
int max_timer_count_clk_get(struct no_os_timer_desc *desc, uint32_t *freq_hz)
Function to get the timer frequency.
Definition: maxim_timer.c:244
no_os_field_prep
uint32_t no_os_field_prep(uint32_t mask, uint32_t val)
max_timer_stop
int max_timer_stop(struct no_os_timer_desc *desc)
Timer count stop function.
Definition: maxim_timer.c:196
no_os_error.h
Error codes definition.
no_os_timer_init_param::freq_hz
uint32_t freq_hz
Definition: no_os_timer.h:85
no_os_timer_desc::ticks_count
uint32_t ticks_count
Definition: no_os_timer.h:63
no_os_timer_desc::id
uint16_t id
Definition: no_os_timer.h:59
no_os_timer_platform_ops::init
int32_t(* init)(struct no_os_timer_desc **, const struct no_os_timer_init_param *)
Definition: no_os_timer.h:101
max_timer_ops
const struct no_os_timer_platform_ops max_timer_ops
Maxim specific timer platform ops.
Definition: maxim_timer.c:311
no_os_timer_init_param::platform_ops
const struct no_os_timer_platform_ops * platform_ops
Definition: no_os_timer.h:89
maxim_timer.h
Header file for Maxim timer platform driver.
no_os_timer_counter_get
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:115
no_os_timer_init_param
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:81
no_os_timer_desc::freq_hz
uint32_t freq_hz
Definition: no_os_timer.h:61
NO_OS_BIT
#define NO_OS_BIT(x)
Definition: no_os_util.h:51
max_timer_count_clk_set
int max_timer_count_clk_set(struct no_os_timer_desc *desc, uint32_t freq_hz)
Function to set the timer frequency.
Definition: maxim_timer.c:260
max_timer_remove
int max_timer_remove(struct no_os_timer_desc *desc)
Timer driver remove function.
Definition: maxim_timer.c:164
no_os_timer_desc::extra
void * extra
Definition: no_os_timer.h:67
max_timer_init
int max_timer_init(struct no_os_timer_desc **desc, struct no_os_timer_init_param *param)
Timer driver init function.
Definition: maxim_timer.c:102
no_os_timer_desc
Structure holding timer descriptor.
Definition: no_os_timer.h:57
no_os_util.h
Header file of utility functions.
SOURCE_CLOCK_FREQ
#define SOURCE_CLOCK_FREQ
Definition: maxim_timer.h:52
maxim_timer.h
Header file for Maxim timer platform driver.