Go to the documentation of this file.
22 #ifndef SEMTECH_LORAMAC_TIMER_H
23 #define SEMTECH_LORAMAC_TIMER_H
TimerTime_t TimerGetCurrentTime(void)
Read the current time.
void(* cb)(void)
callback to call when timer timeout
struct TimerEvent_s TimerEvent_t
Timer object description.
Public API and definitions of the Semtech LoRaMAC.
uint32_t TimerTime_t
Timer time variable definition.
void TimerStop(TimerEvent_t *obj)
Stops and removes the timer object from the list of timer events.
Messaging API for inter process communication.
void TimerSetValue(TimerEvent_t *obj, uint32_t value)
Set timer new timeout value.
uint32_t timeout
Timer timeout in us.
TimerTime_t TimerGetFutureTime(TimerTime_t time)
Return the time elapsed since a fix moment in time.
TimerTime_t TimerGetElapsedTime(TimerTime_t time)
Return the time elapsed since a fix moment in Time.
uint8_t running
Check if timer is running.
void TimerStart(TimerEvent_t *obj)
Starts and adds the timer object to the list of timer events.
ztimer_t dev
ztimer instance attached to this LoRaMAC timer
Timer object description.
msg_t msg
message attacher to this LoRaMAC timer
Describes a message object which can be sent between threads.
void TimerReset(TimerEvent_t *obj)
Resets the timer object.
void TimerIrqHandler(void)
Timer IRQ event handler.
void TimerInit(TimerEvent_t *obj, void(*callback)(void))
Initializes the timer object.
void TimerLowPowerHandler(void)
Manages the entry into low power mode.