Timer implementation that can elapse duration greater than SW_TIMER_MAX_TIMEOUT.
Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.
Typedefs | |
typedef void(* | LongTimerCallback_t )(void) |
Functions | |
static void | LongTimerCallback (void) |
void | LongTimerInit (void) |
void | LongTimerReset (void) |
void | LongTimerStart (uint64_t intervalMicros, void(*cb)(void)) |
Variables | |
static LongTimerCallback_t | longTimerCb |
static uint64_t | longTimerRemInterval |
static uint8_t | pkgCommonLongTimerId = SWTIMER_INVALID |
typedef void(* LongTimerCallback_t)(void) |
|
static |
References LOGLINE_DEBUG, LONG_TIMER_LAP_DURATION_US, longTimerCb, longTimerRemInterval, NULL, pkgCommonLongTimerId, SW_TIMEOUT_RELATIVE, and SwTimerStart().
Referenced by LongTimerStart().
void LongTimerInit | ( | void | ) |
References LOGLINE_ERROR, LORAWAN_SUCCESS, pkgCommonLongTimerId, and SwTimerCreate().
void LongTimerReset | ( | void | ) |
References longTimerCb, longTimerRemInterval, NULL, pkgCommonLongTimerId, SWTIMER_INVALID, SwTimerIsRunning(), and SwTimerStop().
void LongTimerStart | ( | uint64_t | intervalMicros, |
void(*)(void) | cb | ||
) |
|
static |
Referenced by LongTimerCallback(), LongTimerReset(), and LongTimerStart().
|
static |
Referenced by LongTimerCallback(), LongTimerReset(), and LongTimerStart().
|
static |
Referenced by LongTimerCallback(), LongTimerInit(), LongTimerReset(), and LongTimerStart().