/ _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ ____ | ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| __)_____)____)_| |_| (C)2013 Semtech More...
#include <LoRaWANTimer.h>
Public Member Functions | |
void | activate_timer_subsystem (events::EventQueue *queue) |
Activates the timer subsystem. More... | |
lorawan_time_t | get_current_time (void) |
Read the current time. More... | |
lorawan_time_t | get_elapsed_time (lorawan_time_t saved_time) |
Return the time elapsed since a fixed moment in time. More... | |
void | init (timer_event_t &obj, mbed::Callback< void()> callback) |
Initializes the timer object. More... | |
void | start (timer_event_t &obj, const uint32_t timeout) |
Starts and adds the timer object to the list of timer events. More... | |
void | stop (timer_event_t &obj) |
Stops and removes the timer object from the list of timer events. More... | |
/ _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ ____ | ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| __)_____)____)_| |_| (C)2013 Semtech
Description: Timer objects and scheduling management
License: Revised BSD License, see LICENSE.TXT file include in the project
Maintainer: Miguel Luis and Gregory Cristian
Copyright (c) 2017, Arm Limited and affiliates.
SPDX-License-Identifier: BSD-3-Clause
Definition at line 29 of file LoRaWANTimer.h.
void activate_timer_subsystem | ( | events::EventQueue * | queue | ) |
Activates the timer subsystem.
Embeds EventQueue object to timer subsystem which is subsequently used to extract timer information.
[in] | queue | Handle to EventQueue object |
lorawan_time_t get_current_time | ( | void | ) |
Read the current time.
lorawan_time_t get_elapsed_time | ( | lorawan_time_t | saved_time | ) |
Return the time elapsed since a fixed moment in time.
[in] | saved_time | The fixed moment in time. |
void init | ( | timer_event_t & | obj, |
mbed::Callback< void()> | callback | ||
) |
Initializes the timer object.
[in] | obj | The structure containing the timer object parameters. |
[in] | callback | The function callback called at the end of the timeout. |
void start | ( | timer_event_t & | obj, |
const uint32_t | timeout | ||
) |
Starts and adds the timer object to the list of timer events.
[in] | obj | The structure containing the timer object parameters. |
[in] | timeout | The new timeout value. |
void stop | ( | timer_event_t & | obj | ) |
Stops and removes the timer object from the list of timer events.
[in] | obj | The structure containing the timer object parameters. |