|
NNP STM Generic Remote Module git-main
|
Go to the source code of this file.
Classes | |
| struct | struct_s_timer_entry |
| timer struct More... | |
Macros | |
| #define | TIMER_HANDLE INTEGER16 |
| #define | TASK_HANDLE INTEGER16 |
| #define | TIMER_FREE 0 |
| #define | TIMER_ARMED 1 |
| #define | TIMER_TRIG 2 |
| #define | TIMER_TRIG_PERIOD 3 |
| #define | TIMER_NONE -1 |
Typedefs | |
| typedef void(* | TimerCallback_t) (CO_Data *d, UNS32 id) |
| typedef struct struct_s_timer_entry | s_timer_entry |
Functions | |
| TIMER_HANDLE | SetAlarm (CO_Data *d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period) |
| Set an alarm to execute a callback function when expired. | |
| TIMER_HANDLE | DelAlarm (TIMER_HANDLE handle) |
| Delete an alarm before expiring. | |
| void | TimeDispatch (void) |
| TimeDispatch is called on each timer expiration -—. | |
| void | setTimer (TIMEVAL value) |
| Set the timer peripheral for the next interrupt. | |
| TIMEVAL | getElapsedTime (void) |
| Return the elapsed time to tell the Stack how much time is spent since last call. | |
| UNS8 | isTimedOut (UNS32 *tRef, UNS32 tAlarm) |
| Checks if a timer has timed out. | |
| void | resetTimeOut (UNS32 *tRef) |
| Resets a timed out timer. | |
Variables | |
| unsigned char | osc_value |
Created on: Oct 9, 2024 Author: jenej
Definition in file timer.h.
| typedef struct struct_s_timer_entry s_timer_entry |
| TIMEVAL getElapsedTime | ( | void | ) |
Return the elapsed time to tell the Stack how much time is spent since last call.
Definition at line 65 of file timer_stm.c.
Referenced by SetAlarm(), and TimeDispatch().

Checks if a timer has timed out.
Definition at line 41 of file timer_stm.c.
Referenced by runAppTask(), updateAccelerometer(), updateDiagnostics(), and updateTemperature().

| void resetTimeOut | ( | UNS32 * | tRef | ) |
Resets a timed out timer.
Definition at line 56 of file timer_stm.c.
Referenced by runAppTask(), updateAccelerometer(), updateDiagnostics(), and updateTemperature().

| void setTimer | ( | TIMEVAL | value | ) |
Set the timer peripheral for the next interrupt.
Definition at line 23 of file timer_stm.c.
Referenced by SetAlarm(), and TimeDispatch().
