Go to the documentation of this file.
90 uint32_t Imin, uint8_t Imax, uint8_t k);
int16_t kernel_pid_t
Unique process identifier.
uint32_t Imin
minimum interval size in ms
void trickle_interval(trickle_t *trickle)
is called after the interval is over and calculates the next interval
void * args
callback function arguments
xtimer_t msg_timer
xtimer to send a msg_t to the target thread for a new interval
void trickle_increment_counter(trickle_t *trickle)
increments the counter by one
Trickle callback function with arguments.
trickle_callback_t callback
callback function and parameter that trickle calls after each interval
void trickle_stop(trickle_t *trickle)
stops the trickle timer
void trickle_callback(trickle_t *trickle)
is called after the interval is over and executes callback function
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
all state variables of a trickle timer
uint8_t k
redundancy constant
void trickle_reset_timer(trickle_t *trickle)
resets the trickle timer
uint8_t Imax
maximum interval size, described as of Imin doublings in ms
uint32_t t
time within the current interval in ms
Describes a message object which can be sent between threads.
kernel_pid_t pid
pid of trickles target thread
uint32_t I
current interval size in ms
xtimer interface definitions
msg_t msg
the msg_t to use for intervals