Functions | |
| static bool | CPUTimer_isBaseValid (uint32_t base) |
| static void | CPUTimer_clearOverflowFlag (uint32_t base) |
| static void | CPUTimer_disableInterrupt (uint32_t base) |
| static void | CPUTimer_enableInterrupt (uint32_t base) |
| static void | CPUTimer_reloadTimerCounter (uint32_t base) |
| static void | CPUTimer_stopTimer (uint32_t base) |
| static void | CPUTimer_resumeTimer (uint32_t base) |
| static void | CPUTimer_startTimer (uint32_t base) |
| static void | CPUTimer_setPeriod (uint32_t base, uint32_t periodCount) |
| static uint32_t | CPUTimer_getTimerCount (uint32_t base) |
| static void | CPUTimer_setPreScaler (uint32_t base, uint16_t prescaler) |
| static bool | CPUTimer_getTimerOverflowStatus (uint32_t base) |
| void | CPUTimer_setEmulationMode (uint32_t base, CPUTimer_EmulationMode mode) |
Enumerations | |
| enum | CPUTimer_EmulationMode { CPUTIMER_EMULATIONMODE_STOPAFTERNEXTDECREMENT = 0x0000 , CPUTIMER_EMULATIONMODE_STOPATZERO = 0x0400 , CPUTIMER_EMULATIONMODE_RUNFREE = 0x0800 } |
| enum | CPUTimer_Prescaler { CPUTIMER_CLOCK_PRESCALER_1 = 0 , CPUTIMER_CLOCK_PRESCALER_2 = 1 , CPUTIMER_CLOCK_PRESCALER_4 = 2 , CPUTIMER_CLOCK_PRESCALER_8 = 3 , CPUTIMER_CLOCK_PRESCALER_16 = 4 } |
Values that can be passed to CPUTimer_setEmulationMode() as the mode parameter.
| enum CPUTimer_Prescaler |
The following are values that can be passed to CPUTimer_selectClockSource() as the prescaler parameter.
|
inlinestatic |
|
inlinestatic |
Clears CPU timer overflow flag.
| base | is the base address of the timer module. |
This function clears the CPU timer overflow flag.
|
inlinestatic |
Disables CPU timer interrupt.
| base | is the base address of the timer module. |
This function disables the CPU timer interrupt.
|
inlinestatic |
Enables CPU timer interrupt.
| base | is the base address of the timer module. |
This function enables the CPU timer interrupt.
|
inlinestatic |
Reloads CPU timer counter.
| base | is the base address of the timer module. |
This function reloads the CPU timer counter with the values contained in the CPU timer period register.
|
inlinestatic |
Stops CPU timer.
| base | is the base address of the timer module. |
This function stops the CPU timer.
|
inlinestatic |
Starts(restarts) CPU timer.
| base | is the base address of the timer module. |
This function starts (restarts) the CPU timer.
Note: This function doesn't reset the timer counter.
|
inlinestatic |
Starts(restarts) CPU timer.
| base | is the base address of the timer module. |
This function starts (restarts) the CPU timer.
Note: This function reloads the timer counter.
|
inlinestatic |
Sets CPU timer period.
| base | is the base address of the timer module. |
| periodCount | is the CPU timer period count. |
This function sets the CPU timer period count.
|
inlinestatic |
Returns the current CPU timer counter value.
| base | is the base address of the timer module. |
This function returns the current CPU timer counter value.
|
inlinestatic |
Set CPU timer pre-scaler value.
| base | is the base address of the timer module. |
| prescaler | is the CPU timer pre-scaler value. |
This function sets the pre-scaler value for the CPU timer. For every value of (prescaler + 1), the CPU timer counter decrements by 1.
|
inlinestatic |
Return the CPU timer overflow status.
| base | is the base address of the timer module. |
This function returns the CPU timer overflow status.
|
extern |
Sets Emulation mode for CPU timer.
| base | is the base address of the timer module. |
| mode | is the emulation mode of the timer. |
This function sets the behaviour of CPU timer during emulation. Valid values mode are: CPUTIMER_EMULATIONMODE_STOPAFTERNEXTDECREMENT, CPUTIMER_EMULATIONMODE_STOPATZERO and CPUTIMER_EMULATIONMODE_RUNFREE.