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