2013-06-22 05:11:53 +02:00
|
|
|
/**
|
|
|
|
* Copyright (C) 2013 INRIA.
|
|
|
|
*
|
2014-08-23 15:43:13 +02:00
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
2014-07-08 16:54:54 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup rpl
|
2013-06-22 05:11:53 +02:00
|
|
|
* @{
|
2014-07-08 16:54:54 +02:00
|
|
|
* @file trickle.h
|
|
|
|
* @brief Trickle
|
|
|
|
*
|
|
|
|
* Header-file, which defines all Trickle constants and prototypes
|
|
|
|
*
|
|
|
|
* @author Eric Engel <eric.engel@fu-berlin.de>
|
2013-06-22 05:11:53 +02:00
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2013-12-16 17:54:58 +01:00
|
|
|
#include "vtimer.h"
|
|
|
|
#include "thread.h"
|
2012-02-02 21:31:28 +01:00
|
|
|
|
2014-10-10 11:51:11 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-10-30 21:25:16 +01:00
|
|
|
#define TRICKLE_TIMER_STACKSIZE (KERNEL_CONF_STACKSIZE_MAIN)
|
2013-11-19 21:23:52 +01:00
|
|
|
#define TRICKLE_INTERVAL_STACKSIZE (KERNEL_CONF_STACKSIZE_MAIN)
|
|
|
|
#define DAO_DELAY_STACKSIZE (KERNEL_CONF_STACKSIZE_MAIN)
|
|
|
|
#define RT_STACKSIZE (KERNEL_CONF_STACKSIZE_DEFAULT)
|
2012-02-02 21:31:28 +01:00
|
|
|
|
2012-01-19 17:35:50 +01:00
|
|
|
void reset_trickletimer(void);
|
2012-02-02 21:31:28 +01:00
|
|
|
void init_trickle(void);
|
|
|
|
void start_trickle(uint8_t DIOINtMin, uint8_t DIOIntDoubl, uint8_t DIORedundancyConstatnt);
|
|
|
|
void trickle_increment_counter(void);
|
2012-02-16 23:23:15 +01:00
|
|
|
void delay_dao(void);
|
2012-03-27 17:56:47 +02:00
|
|
|
void dao_ack_received(void);
|
2014-10-10 11:51:11 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|