The friendly Operating System for the Internet of Things
trickle.h File Reference

Implementation of a generic Trickle Algorithm (RFC 6206) More...

Detailed Description

#include "xtimer.h"
#include "thread.h"
+ Include dependency graph for trickle.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  trickle_callback_t
 a generic callback function with arguments that is called by trickle periodically More...
 
struct  trickle_t
 all state variables for a trickle timer More...
 

Functions

void trickle_reset_timer (trickle_t *trickle)
 resets the trickle timer More...
 
void trickle_start (kernel_pid_t pid, trickle_t *trickle, uint16_t interval_msg_type, uint16_t callback_msg_type, uint32_t Imin, uint8_t Imax, uint8_t k)
 start the trickle timer More...
 
void trickle_stop (trickle_t *trickle)
 stops the trickle timer More...
 
void trickle_increment_counter (trickle_t *trickle)
 increments the counter by one More...
 
void trickle_interval (trickle_t *trickle)
 is called after the interval is over and calculates the next interval More...
 
void trickle_callback (trickle_t *trickle)
 is called after the callback interval is over and calls the callback function More...