pktdump.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2015 Freie Universität Berlin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
21 #include "sched.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
40 #ifndef CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP
41 #define CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP 3
42 #endif
48 #ifndef GNRC_PKTDUMP_MSG_QUEUE_SIZE
49 #define GNRC_PKTDUMP_MSG_QUEUE_SIZE (1 << CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP)
50 #endif
51 
55 #ifndef GNRC_PKTDUMP_PRIO
56 #define GNRC_PKTDUMP_PRIO (THREAD_PRIORITY_MAIN - 1)
57 #endif
58 
66 #ifndef GNRC_PKTDUMP_STACKSIZE
67 #define GNRC_PKTDUMP_STACKSIZE ((THREAD_STACKSIZE_MAIN) - 64)
68 #endif
69 
74 
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
int16_t kernel_pid_t
Unique process identifier.
Definition: sched.h:135
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.