21#ifndef NET_GNRC_MAC_INTERNAL_H
22#define NET_GNRC_MAC_INTERNAL_H
61 netif->
mac.
mac_info &= ~GNRC_NETIF_MAC_INFO_RX_STARTED;
93 netif->
mac.
mac_info &= ~GNRC_NETIF_MAC_INFO_TX_FEEDBACK_MASK;
97#if (GNRC_MAC_TX_QUEUE_SIZE != 0) || defined(DOXYGEN)
118#if (GNRC_MAC_RX_QUEUE_SIZE != 0) || defined(DOXYGEN)
131#if (GNRC_MAC_DISPATCH_BUFFER_SIZE != 0) || defined(DOXYGEN)
#define assert(cond)
abort the program if assertion is false
Definition for GNRC's network interfaces.
static void gnrc_netif_set_tx_feedback(gnrc_netif_t *netif, gnrc_mac_tx_feedback_t txf)
set the transmission feedback of the device
static bool gnrc_netif_get_rx_started(gnrc_netif_t *netif)
get the 'rx_started' state of the device
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.
static gnrc_mac_tx_feedback_t gnrc_netif_get_tx_feedback(gnrc_netif_t *netif)
get the transmission feedback of the device
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.
static void gnrc_netif_set_rx_started(gnrc_netif_t *netif, bool rx_started)
set the rx_started state of the device
void gnrc_mac_dispatch(gnrc_mac_rx_t *rx)
Dispatch all the packets stored in netdev_t::rx:dispatch_buffer to upper layer.
#define GNRC_NETIF_MAC_INFO_RX_STARTED
Flag to track if a transmission might have corrupted a received packet.
#define GNRC_NETIF_MAC_INFO_TX_FEEDBACK_MASK
Mask for gnrc_mac_tx_feedback_t.
MAC internal type for storing reception state parameters and state machines.
MAC internal type for storing transmission state parameters and state machines.
uint16_t mac_info
general information for the MAC protocol
Representation of a network interface.
gnrc_netif_mac_t mac
Common MAC module component
Type to represent parts (either headers or payload) of a packet, called snips.
gnrc_mac_tx_feedback_t
definition for device transmission feedback types
IEEE 802.15.4 header definitions.