mac/internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Daniel Krebs
3  * 2016 INRIA
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
21 #ifndef NET_GNRC_MAC_INTERNAL_H
22 #define NET_GNRC_MAC_INTERNAL_H
23 
24 #include <stdint.h>
25 
26 #include "net/ieee802154.h"
27 #include "net/gnrc/mac/types.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #if (GNRC_MAC_TX_QUEUE_SIZE != 0) || defined(DOXYGEN)
34 
51 bool gnrc_mac_queue_tx_packet(gnrc_mac_tx_t *tx, uint32_t priority, gnrc_pktsnip_t *pkt);
52 #endif /* (GNRC_MAC_TX_QUEUE_SIZE != 0) || defined(DOXYGEN) */
53 
54 #if (GNRC_MAC_RX_QUEUE_SIZE != 0) || defined(DOXYGEN)
55 
64 bool gnrc_mac_queue_rx_packet(gnrc_mac_rx_t *rx, uint32_t priority, gnrc_pktsnip_t *pkt);
65 #endif /* (GNRC_MAC_RX_QUEUE_SIZE != 0) || defined(DOXYGEN) */
66 
67 #if (GNRC_MAC_DISPATCH_BUFFER_SIZE != 0) || defined(DOXYGEN)
68 
74 #endif /* (GNRC_MAC_DISPATCH_BUFFER_SIZE != 0) || defined(DOXYGEN) */
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif /* NET_GNRC_MAC_INTERNAL_H */
81 
Internal data types used by GNRC_MAC.
bool gnrc_mac_queue_tx_packet(gnrc_mac_tx_t *tx, uint32_t priority, gnrc_pktsnip_t *pkt)
Queues the packet into the related transmission packet queue in netdev_t::tx.
IEEE 802.15.4 header definitions.
bool gnrc_mac_queue_rx_packet(gnrc_mac_rx_t *rx, uint32_t priority, gnrc_pktsnip_t *pkt)
Queues the packet into the reception packet queue in netdev_t::rx.
MAC internal type for storing reception state parameters and state machines.
Definition: types.h:60
void gnrc_mac_dispatch(gnrc_mac_rx_t *rx)
Dispatch all the packets stored in netdev_t::rx:dispatch_buffer to upper layer.
Type to represent parts (either headers or payload) of a packet, called snips.
MAC internal type for storing transmission state parameters and state machines.
Definition: types.h:143