Loading...
Searching...
No Matches
gnrc_netif_nrf24l01p_ng.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Otto-von-Guericke-Universität Magdeburg
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
22
23#include "net/gnrc/netif.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#ifndef NRF24L01P_NG_UPPER_LAYER_PROTOCOL
30#if IS_USED(MODULE_GNRC_SIXLOWPAN)
31#define NRF24L01P_NG_UPPER_LAYER_PROTOCOL (GNRC_NETTYPE_SIXLOWPAN)
32#else
36#define NRF24L01P_NG_UPPER_LAYER_PROTOCOL (GNRC_NETTYPE_UNDEF)
37#endif
38#endif
39
56 int stacksize, char priority, char *name,
57 netdev_t *dev);
58
59#ifdef __cplusplus
60}
61#endif
62
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:288
Representation of a network interface.
Definition netif.h:132