Contiki-NG
Loading...
Searching...
No Matches
mac.h File Reference

MAC driver header file. More...

#include "contiki.h"
#include "dev/radio.h"

Go to the source code of this file.

Data Structures

struct  mac_driver
 The structure of a MAC protocol driver in Contiki. More...
 

Macros

#define IEEE802154_DEFAULT_CHANNEL   26
 The default channel for IEEE 802.15.4 networks.
 

Enumerations

enum  {
  MAC_TX_OK , MAC_TX_COLLISION , MAC_TX_NOACK , MAC_TX_DEFERRED ,
  MAC_TX_ERR , MAC_TX_ERR_FATAL , MAC_TX_QUEUE_FULL
}
 

Detailed Description

MAC driver header file.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se

Definition in file mac.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAC_TX_OK 

The MAC layer transmission was OK.

The MAC layer transmission could not be performed due to a collision.

MAC_TX_COLLISION 

The MAC layer did not get an acknowledgement for the packet.

MAC_TX_NOACK 

The MAC layer deferred the transmission for a later time.

MAC_TX_DEFERRED 

The MAC layer transmission could not be performed because of an error.

The upper layer may try again later.

MAC_TX_ERR 

The MAC layer transmission could not be performed because of a fatal error.

The upper layer does not need to try again, as the error will be fatal then as well.

MAC_TX_ERR_FATAL 

The MAC layer transmission could not be performed because of insufficient queue space, failure to allocate a neighbor, or insufficient packet memory space.

The upper layer may try again later.

Definition at line 91 of file mac.h.