Loading...
Searching...
No Matches
pktdump.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
23
24#include "sched.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
43#ifndef CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP
44#define CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP 3
45#endif
47
51#ifndef GNRC_PKTDUMP_MSG_QUEUE_SIZE
52#define GNRC_PKTDUMP_MSG_QUEUE_SIZE (1 << CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP)
53#endif
54
58#ifndef GNRC_PKTDUMP_PRIO
59#define GNRC_PKTDUMP_PRIO (THREAD_PRIORITY_MAIN - 1)
60#endif
61
69#ifndef GNRC_PKTDUMP_STACKSIZE
70#define GNRC_PKTDUMP_STACKSIZE ((THREAD_STACKSIZE_MAIN) - 64)
71#endif
72
77
85
86#ifdef __cplusplus
87}
88#endif
89
int16_t kernel_pid_t
Unique process identifier.
Definition sched.h:138
kernel_pid_t gnrc_pktdump_init(void)
Start the packet dump thread and listening for incoming packets.
kernel_pid_t gnrc_pktdump_pid
The PID of the pktdump thread.
Scheduler API definition.