#include "stdint.h"
#include "stdbool.h"
#include "sx126x-debug.h"
Go to the source code of this file.
◆ ROUNDED_DIV
#define ROUNDED_DIV |
( |
|
A, |
|
|
|
B |
|
) |
| (((A) + ((B) / 2)) / (B)) |
◆ callbackType
typedef void(* callbackType) (void) |
◆ TimerEvent_t
Timer object description.
◆ TimerTime_t
Timer time variable definition.
◆ TimerConfig()
void TimerConfig |
( |
void |
| ) |
|
Initializes the RTC2 timer.
Set prescaler to 31 in order to have Fs=1kHz Enable CC interrupt Start RTC2
◆ TimerInit()
void TimerInit |
( |
TimerEvent_t * |
obj, |
|
|
void(*)(void) |
callback |
|
) |
| |
Initializes the timer object.
- Parameters
-
obj | Structure containing the timer object parameters |
callback | Function callback called at the end of the timeout |
- Examples
- LoRaWanPio\src\main.cpp.
◆ TimerStart()
Starts and adds the timer object to the list of timer events.
- Parameters
-
obj | Structure containing the timer object parameters |
- Examples
- LoRaWanPio\src\main.cpp.
◆ TimerStop()
Stops and removes the timer object from the list of timer events.
- Parameters
-
obj | Structure containing the timer object parameters |
◆ TimerReset()
Resets the timer object.
- Parameters
-
obj | Structure containing the timer object parameters |
◆ TimerSetValue()
Set timer new timeout value.
- Parameters
-
obj | Structure containing the timer object parameters |
value | New timer timeout value in ms |
- Examples
- LoRaWanPio\src\main.cpp.
◆ TimerGetElapsedTime()
Return the Time elapsed since a fix moment in Time.
- Parameters
-
savedTime | fix moment in Time |
- Return values
-
time | returns elapsed time in ms |
◆ TimerGetCurrentTime()
Read the current time ellapsed since the start (or restart) of RTC2.
- Return values
-