Semtech LoRaMAC timer compatibility definitions.
More...
#include "ztimer.h"
#include "msg.h"
#include "semtech_loramac.h"
Go to the source code of this file.
◆ TimerTime_t
Timer time variable definition.
Definition at line 49 of file timer.h.
◆ TimerGetCurrentTime()
Read the current time.
- Returns
- current time
◆ TimerGetElapsedTime()
Return the time elapsed since a fix moment in Time.
- Parameters
-
[in] | time | fix moment in Time |
- Returns
- elapsed time
◆ TimerGetFutureTime()
Return the time elapsed since a fix moment in time.
- Parameters
-
[in] | time | fix moment in the future |
- Returns
- difference between now and future event
◆ TimerInit()
void TimerInit |
( |
TimerEvent_t * |
obj, |
|
|
void(*)(void) |
callback |
|
) |
| |
Initializes the timer object.
- Parameters
-
[in] | obj | Structure containing the timer object parameters |
[in] | callback | Function callback called at the end of the timeout |
◆ TimerReset()
Resets the timer object.
- Parameters
-
[in] | obj | Structure containing the timer object parameters |
◆ TimerSetValue()
Set timer new timeout value.
- Parameters
-
[in] | obj | Structure containing the timer object parameters |
[in] | value | New timer timeout value |
◆ TimerStart()
Starts and adds the timer object to the list of timer events.
- Parameters
-
[in] | obj | Structure containing the timer object parameters |
◆ TimerStop()
Stops and removes the timer object from the list of timer events.
- Parameters
-
[in] | obj | Structure containing the timer object parameters |