2015-03-16 17:52:19 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2015-08-17 15:41:29 +02:00
|
|
|
* @defgroup net_gnrc_sixlowpan 6LoWPAN
|
2015-03-16 17:52:19 +01:00
|
|
|
* @ingroup net
|
|
|
|
* @brief 6LoWPAN implementation
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Definitions for 6LoWPAN
|
|
|
|
*
|
|
|
|
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
|
|
|
|
*/
|
2015-08-17 15:41:29 +02:00
|
|
|
#ifndef GNRC_SIXLOWPAN_H_
|
|
|
|
#define GNRC_SIXLOWPAN_H_
|
2015-03-16 17:52:19 +01:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "kernel_types.h"
|
|
|
|
|
2015-08-17 15:41:29 +02:00
|
|
|
#include "net/gnrc/sixlowpan/frag.h"
|
|
|
|
#include "net/gnrc/sixlowpan/iphc.h"
|
2015-08-17 15:06:44 +02:00
|
|
|
#include "net/sixlowpan.h"
|
2015-04-08 11:56:10 +02:00
|
|
|
|
2015-03-16 17:52:19 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2015-07-02 20:20:25 +02:00
|
|
|
* @brief Default stack size to use for the 6LoWPAN thread.
|
2015-03-16 17:52:19 +01:00
|
|
|
*/
|
2015-08-17 15:41:29 +02:00
|
|
|
#ifndef GNRC_SIXLOWPAN_STACK_SIZE
|
|
|
|
#define GNRC_SIXLOWPAN_STACK_SIZE (THREAD_STACKSIZE_DEFAULT)
|
2015-03-16 17:52:19 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2015-07-02 20:20:25 +02:00
|
|
|
* @brief Default priority for the 6LoWPAN thread.
|
2015-03-16 17:52:19 +01:00
|
|
|
*/
|
2015-08-17 15:41:29 +02:00
|
|
|
#ifndef GNRC_SIXLOWPAN_PRIO
|
|
|
|
#define GNRC_SIXLOWPAN_PRIO (THREAD_PRIORITY_MAIN - 4)
|
2015-03-16 17:52:19 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Default message queue size to use for the 6LoWPAN thread.
|
|
|
|
*/
|
2015-08-17 15:41:29 +02:00
|
|
|
#ifndef GNRC_SIXLOWPAN_MSG_QUEUE_SIZE
|
|
|
|
#define GNRC_SIXLOWPAN_MSG_QUEUE_SIZE (8U)
|
2015-03-16 17:52:19 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Initialization of the 6LoWPAN thread.
|
|
|
|
*
|
2015-07-03 00:25:00 +02:00
|
|
|
* @details If 6LoWPAN was already initialized, it will just return the PID of
|
|
|
|
* the 6LoWPAN thread.
|
|
|
|
*
|
2015-03-16 17:52:19 +01:00
|
|
|
* @return The PID to the 6LoWPAN thread, on success.
|
2015-08-17 15:41:29 +02:00
|
|
|
* @return -EINVAL, if @ref GNRC_SIXLOWPAN_PRIO was greater than or equal to
|
2015-07-03 00:25:00 +02:00
|
|
|
* @ref SCHED_PRIO_LEVELS
|
|
|
|
* @return -EOVERFLOW, if there are too many threads running already in general
|
2015-03-16 17:52:19 +01:00
|
|
|
*/
|
2015-08-17 15:41:29 +02:00
|
|
|
kernel_pid_t gnrc_sixlowpan_init(void);
|
2015-03-16 17:52:19 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-08-17 15:41:29 +02:00
|
|
|
#endif /* GNRC_SIXLOWPAN_H_ */
|
2015-03-16 17:52:19 +01:00
|
|
|
/** @} */
|