Internal data types used by GNRC_MAC. More...

Detailed Description

Internal data types used by GNRC_MAC.

Author
Daniel Krebs githu.nosp@m.b@da.nosp@m.niel-.nosp@m.kreb.nosp@m.s.net
Shuguo Zhuo shugu.nosp@m.o.zh.nosp@m.uo@in.nosp@m.ria..nosp@m.fr

Definition in file mac/types.h.

#include <stdint.h>
#include <stdbool.h>
#include "kernel_types.h"
#include "net/gnrc.h"
#include "net/gnrc/priority_pktqueue.h"
#include "net/ieee802154.h"
#include "net/gnrc/mac/mac.h"
+ Include dependency graph for mac/types.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gnrc_mac_rx_t
 MAC internal type for storing reception state parameters and state machines. More...
 
struct  gnrc_mac_tx_neighbor_t
 type for storing states of TX neighbor node. More...
 
struct  gnrc_mac_tx_t
 MAC internal type for storing transmission state parameters and state machines. More...
 
#define GNRC_MAC_TX_FEEDBACK_INIT   { TX_FEEDBACK_UNDEF }
 Static initializer for gnrc_mac_tx_feedback_t.
 
#define GNRC_MAC_RX_INIT
 Static initializer for gnrc_mac_rx_t. More...
 
#define GNRC_MAC_PHASE_UNINITIALIZED   (0)
 Uninitialized phase value.
 
#define GNRC_MAC_PHASE_MAX   (-1)
 Maximum phase value.
 
#define GNRC_MAC_TX_NEIGHBOR_INIT
 Static initializer for gnrc_mac_tx_neighbor_t. More...
 
#define GNRC_MAC_TX_INIT
 Static initializer for gnrc_mac_tx_t. More...
 
enum  gnrc_mac_tx_feedback_t { TX_FEEDBACK_UNDEF = 0, TX_FEEDBACK_SUCCESS, TX_FEEDBACK_NOACK, TX_FEEDBACK_BUSY }
 definition for device transmission feedback types More...
 

Macro Definition Documentation

◆ GNRC_MAC_RX_INIT

#define GNRC_MAC_RX_INIT
Value:
{ \
PRIORITY_PKTQUEUE_INIT, \
{ NULL }, \
}
#define PRIORITY_PKTQUEUE_NODE_INIT(priority, pkt)
Static initializer for gnrc_priority_pktqueue_node_t.

Static initializer for gnrc_mac_rx_t.

Definition at line 94 of file mac/types.h.

◆ GNRC_MAC_TX_INIT

#define GNRC_MAC_TX_INIT
Value:
{ \
NULL, \
NULL, \
}
#define PRIORITY_PKTQUEUE_NODE_INIT(priority, pkt)
Static initializer for gnrc_priority_pktqueue_node_t.
#define GNRC_MAC_TX_NEIGHBOR_INIT
Static initializer for gnrc_mac_tx_neighbor_t.
Definition: mac/types.h:145

Static initializer for gnrc_mac_tx_t.

Definition at line 216 of file mac/types.h.

◆ GNRC_MAC_TX_NEIGHBOR_INIT

#define GNRC_MAC_TX_NEIGHBOR_INIT
Value:
{ \
{ 0 }, \
0, \
GNRC_MAC_PHASE_UNINITIALIZED, \
PRIORITY_PKTQUEUE_INIT, \
}

Static initializer for gnrc_mac_tx_neighbor_t.

Definition at line 145 of file mac/types.h.

Enumeration Type Documentation

◆ gnrc_mac_tx_feedback_t

definition for device transmission feedback types

Enumerator
TX_FEEDBACK_UNDEF 

Transmission just start, no Tx feedback yet.

TX_FEEDBACK_SUCCESS 

Transmission succeeded.

TX_FEEDBACK_NOACK 

No ACK for the transmitted packet.

TX_FEEDBACK_BUSY 

found medium busy when doing transmission

Definition at line 46 of file mac/types.h.