#include <halAppClock.h>
#include <timer.h>
Go to the source code of this file.
Typedefs | |
| typedef Timer_t | HAL_AppTimer_t |
| fields of structure: uint32_t interval - timer firing interval. Interval must be more than 10 ms.(set by user) TimerMode_t mode - timer work mode (set by user). Must be chosen from: TIMER_REPEAT_MODE TIMER_ONE_SHOT_MODE void (*callback)() - pointer to timer callback function (set by user). | |
Functions | |
| INLINE uint32_t | HAL_GetSystemTime (void) |
| Get system time. | |
| int | HAL_StartAppTimer (HAL_AppTimer_t *appTimer) |
| Starts to count an interval (starts user timer). | |
| int | HAL_StopAppTimer (HAL_AppTimer_t *appTimer) |
| Stops the user timer. | |
Definition in file appTimer.h.
| typedef Timer_t HAL_AppTimer_t |
fields of structure:
uint32_t interval - timer firing interval. Interval must be more than 10 ms.(set by user)
TimerMode_t mode - timer work mode (set by user). Must be chosen from:
TIMER_REPEAT_MODE
TIMER_ONE_SHOT_MODE
void (*callback)() - pointer to timer callback function (set by user).
Definition at line 41 of file appTimer.h.
| INLINE uint32_t HAL_GetSystemTime | ( | void | ) |
Get system time.
Definition at line 30 of file appTimer.h.
| int HAL_StartAppTimer | ( | HAL_AppTimer_t * | appTimer | ) |
Starts to count an interval (starts user timer).
| [in] | appTimer | - pointer to the timer structure (HAL_AppTimer_t is typedef Timer_t) |
| int HAL_StopAppTimer | ( | HAL_AppTimer_t * | appTimer | ) |
Stops the user timer.
| [in] | appTimer | - pointer to the timer structure. |
1.5.1-p1