Zephyr API 3.6.99
Loading...
Searching...
No Matches
trickle.h File Reference

Trickle timer library. More...

#include <stdbool.h>
#include <zephyr/types.h>
#include <zephyr/kernel.h>
#include <zephyr/net/net_core.h>

Go to the source code of this file.

Data Structures

struct  net_trickle
 The variable names are taken directly from RFC 6206 when applicable. More...
 

Typedefs

typedef void(* net_trickle_cb_t) (struct net_trickle *trickle, bool do_suppress, void *user_data)
 Trickle timer callback.
 

Functions

int net_trickle_create (struct net_trickle *trickle, uint32_t Imin, uint8_t Imax, uint8_t k)
 Create a Trickle timer.
 
int net_trickle_start (struct net_trickle *trickle, net_trickle_cb_t cb, void *user_data)
 Start a Trickle timer.
 
int net_trickle_stop (struct net_trickle *trickle)
 Stop a Trickle timer.
 
void net_trickle_consistency (struct net_trickle *trickle)
 To be called by the protocol handler when it hears a consistent network transmission.
 
void net_trickle_inconsistency (struct net_trickle *trickle)
 To be called by the protocol handler when it hears an inconsistent network transmission.
 
static bool net_trickle_is_running (struct net_trickle *trickle)
 Check if the Trickle timer is running or not.
 

Detailed Description

Trickle timer library.

This implements Trickle timer as specified in RFC 6206