Loading...
Searching...
No Matches
trickle.h File Reference

Trickle timer interface definition. More...

Detailed Description

#include "thread.h"
#include "ztimer.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
 Trickle callback function with arguments. More...
 
struct  trickle_t
 all state variables of a trickle timer More...
 

Functions

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