Loading...
Searching...
No Matches
opendsme.h
1/*
2 * SPDX-FileCopyrightText: 2022 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
186
187#include <stdbool.h>
188#include "byteorder.h"
189#include "net/gnrc/netif.h"
190#include "net/gnrc/pktbuf.h"
191
195#ifndef CONFIG_OPENDSME_GNRC_PKTSNIP_TYPE
196#define CONFIG_OPENDSME_GNRC_PKTSNIP_TYPE GNRC_NETTYPE_UNDEF
197#endif
198
202#ifndef CONFIG_OPENDSME_MAX_NEIGHBOURS
203#define CONFIG_OPENDSME_MAX_NEIGHBOURS (20U)
204#endif
205
215#ifndef CONFIG_OPENDSME_MAX_LOST_BEACONS
216#define CONFIG_OPENDSME_MAX_LOST_BEACONS (8U)
217#endif
218
226#ifndef CONFIG_OPENDSME_CAP_QUEUE_SIZE
227#define CONFIG_OPENDSME_CAP_QUEUE_SIZE (8U)
228#endif
229
238#ifndef CONFIG_OPENDSME_CFP_QUEUE_SIZE
239#define CONFIG_OPENDSME_CFP_QUEUE_SIZE (22U)
240#endif
241
242#ifdef __cplusplus
243extern "C" {
244#endif
245
256
272int gnrc_netif_opendsme_create(gnrc_netif_t *netif, char *stack, int stacksize,
273 char priority, const char *name, netdev_t *dev);
274
275#ifdef __cplusplus
276}
277#endif
278
Functions to work with different byte orders.
be_uint16_t network_uint16_t
A 16 bit integer in network byte order.
Definition byteorder.h:92
Definition for GNRC's network interfaces.
struct netdev netdev_t
Forward declaration for netdev struct.
Definition netdev.h:285
int gnrc_netif_opendsme_create(gnrc_netif_t *netif, char *stack, int stacksize, char priority, const char *name, netdev_t *dev)
Creates an openDSME network interface.
Interface definition for the global network buffer.
Representation of a network interface.
Definition netif.h:137
DSME Allocation descriptor.
Definition opendsme.h:249
bool tx
whether the GTS is TX
Definition opendsme.h:254
uint8_t slot_id
slot ID
Definition opendsme.h:252
uint8_t channel_id
channel ID
Definition opendsme.h:253
uint8_t superframe_id
superframe ID
Definition opendsme.h:251
network_uint16_t addr
neighbour address
Definition opendsme.h:250