Loading...
Searching...
No Matches

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 types.h.

#include <stdint.h>
#include <stdbool.h>
#include "net/gnrc/pkt.h"
#include "net/gnrc/priority_pktqueue.h"
#include "net/ieee802154.h"
#include "net/gnrc/mac/mac.h"
+ Include dependency graph for 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_TYPE_GET_DUTYCYCLE   (0x4401)
 MAC message type for getting radio's duty-cycle.
 
#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.
 
#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.
 
#define GNRC_MAC_TX_INIT
 Static initializer for gnrc_mac_tx_t.
 
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_PHASE_MAX

#define GNRC_MAC_PHASE_MAX   (-1)

Maximum phase value.

Definition at line 143 of file types.h.

◆ GNRC_MAC_PHASE_UNINITIALIZED

#define GNRC_MAC_PHASE_UNINITIALIZED   (0)

Uninitialized phase value.

Definition at line 138 of file types.h.

◆ GNRC_MAC_RX_INIT

#define GNRC_MAC_RX_INIT
Value:
{ \
{ NULL }, \
}
#define PRIORITY_PKTQUEUE_INIT
Static initializer for gnrc_priority_pktqueue_t.
#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 98 of file types.h.

◆ GNRC_MAC_TX_FEEDBACK_INIT

#define GNRC_MAC_TX_FEEDBACK_INIT   { TX_FEEDBACK_UNDEF }

Static initializer for gnrc_mac_tx_feedback_t.

Definition at line 60 of file types.h.

◆ GNRC_MAC_TX_INIT

#define GNRC_MAC_TX_INIT
Value:
{ \
NULL, \
NULL, \
}
#define GNRC_MAC_TX_NEIGHBOR_INIT
Static initializer for gnrc_mac_tx_neighbor_t.
Definition types.h:149

Static initializer for gnrc_mac_tx_t.

Definition at line 221 of file types.h.

◆ GNRC_MAC_TX_NEIGHBOR_INIT

#define GNRC_MAC_TX_NEIGHBOR_INIT
Value:
{ \
{ 0 }, \
0, \
}
#define GNRC_MAC_PHASE_UNINITIALIZED
Uninitialized phase value.
Definition types.h:138

Static initializer for gnrc_mac_tx_neighbor_t.

Definition at line 149 of file types.h.

◆ GNRC_MAC_TYPE_GET_DUTYCYCLE

#define GNRC_MAC_TYPE_GET_DUTYCYCLE   (0x4401)

MAC message type for getting radio's duty-cycle.

Definition at line 45 of file 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 50 of file types.h.