Loading...
Searching...
No Matches
gnrc_netif_nrf24l01p_ng.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Otto-von-Guericke-Universität Magdeburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include "net/gnrc/netif.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#ifndef NRF24L01P_NG_UPPER_LAYER_PROTOCOL
27#if IS_USED(MODULE_GNRC_SIXLOWPAN)
28#define NRF24L01P_NG_UPPER_LAYER_PROTOCOL (GNRC_NETTYPE_SIXLOWPAN)
29#else
33#define NRF24L01P_NG_UPPER_LAYER_PROTOCOL (GNRC_NETTYPE_UNDEF)
34#endif
35#endif
36
53 int stacksize, char priority, char *name,
54 netdev_t *dev);
55
56#ifdef __cplusplus
57}
58#endif
59
Definition for GNRC's network interfaces.
int gnrc_netif_nrf24l01p_ng_create(gnrc_netif_t *netif, char *stack, int stacksize, char priority, char *name, netdev_t *dev)
Creates an NRF24L01+ (NG) network interface.
struct netdev netdev_t
Forward declaration for netdev struct.
Definition netdev.h:285
Representation of a network interface.
Definition netif.h:132