Contiki-NG
|
CoAP timer API.More...
#include "contiki.h"
#include <stdint.h>
Go to the source code of this file.
Functions | |
static uint64_t | coap_timer_uptime (void) |
Get the time since boot in milliseconds. More... | |
static uint32_t | coap_timer_seconds (void) |
Get the time since boot in seconds. More... | |
static void | coap_timer_set_callback (coap_timer_t *timer, void(*callback)(coap_timer_t *)) |
Set a callback function to be called when a CoAP timer expires. More... | |
static void * | coap_timer_get_user_data (coap_timer_t *timer) |
Get user data that has been attached to a CoAP timer. More... | |
static void | coap_timer_set_user_data (coap_timer_t *timer, void *data) |
Attach user data to a CoAP timer. More... | |
static int | coap_timer_expired (const coap_timer_t *timer) |
Check if a CoAP timer has expired. More... | |
void | coap_timer_stop (coap_timer_t *timer) |
Stop a pending CoAP timer. More... | |
void | coap_timer_set (coap_timer_t *timer, uint64_t time) |
Set a CoAP timer to expire after the specified time. More... | |
void | coap_timer_reset (coap_timer_t *timer, uint64_t time) |
Reset a CoAP timer to expire a specified time after the last expiration time. More... | |
uint64_t | coap_timer_time_to_next_expiration (void) |
Get the time until next CoAP timer expires or 0 if there already exists expired timers that have not yet been processed. More... | |
int | coap_timer_run (void) |
This function must be called periodically by the CoAP timer driver to process any expired CoAP timers. More... | |
void | coap_timer_init (void) |
This function initializes the CoAP timer library. More... | |
CoAP timer API.
Definition in file coap-timer.h.