|
AM62Ax MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
64 typedef struct TimerP_Params_ {
102 #define TIME_IN_MICRO_SECONDS (1000000U)
107 #define MAX_TIMER_COUNT_VALUE (0xFFFFFFFFULL)
112 #define TIME_IN_MILLI_SECONDS (1000U)
117 #define TIME_IN_NANO_SECONDS (1000000000U)
122 #define TIMERP_SHIFT_BY_EIGHT (8U)
127 #define MAX_NUMBER_OF_CYCLES (0xFFFFFFFFU)
void TimerP_setup(uint32_t baseAddr, TimerP_Params *params)
Setup timer but does not start it.
uint32_t enableOverflowInt
Definition: TimerP.h:94
uint32_t enableDmaTrigger
Definition: TimerP.h:95
void TimerP_clearOverflowInt(uint32_t baseAddr)
Clear timer overflow interrupt.
void TimerP_stop(uint32_t baseAddr)
Stop timer.
void TimerP_start(uint32_t baseAddr)
Start timer.
Parameters for TimerP_setup.
Definition: TimerP.h:64
uint32_t TimerP_isOverflowed(uint32_t baseAddr)
Check if timer is overflowed.
uint32_t TimerP_getCount(uint32_t baseAddr)
Get timer current count.
void TimerP_Params_init(TimerP_Params *params)
Set default value for TimerP_Params.
uint32_t TimerP_getReloadCount(uint32_t baseAddr)
Get timer reload count.
uint32_t oneshotMode
Definition: TimerP.h:90
uint32_t inputClkHz
Definition: TimerP.h:73
uint32_t periodInNsec
Definition: TimerP.h:84
uint32_t inputPreScaler
Definition: TimerP.h:66
uint32_t periodInUsec
Definition: TimerP.h:78