Contiki 2.6

mac.c File Reference

The IEEE 802.15.4 (2003/2006) MAC utility functions. More...

#include <stdlib.h>
#include <string.h>
#include "zmac.h"
#include "radio.h"
#include "hal.h"
#include "tcpip.h"
#include "uip.h"
#include "sicslowpan.h"
#include "sicslowmac.h"

Go to the source code of this file.

Functions

void mac_init (void)
 Initializes the (quasi) 802.15.4 MAC.

Variables

ieee_15_4_manager_t ieee15_4ManagerAddress
 Interface structure for this module.
uint8_t phyCurrentChannel
 The RF channel to use for all following transmissions and receptions (see 6.1.2).
uint64_t macCoordExtendedAddress
 The 64-bit address of the coordinator/router through which the network layer wishes to communicate.
uint16_t macCoordShortAddress
 The 16-bit short address assigned to the coordinator through which the network layer wishes to communicate.
uint64_t macDestAddress
 This address is the 64-bit address that will be used as the mechanism to provide a destination to the upper layers.
uint8_t macDSN
 The sequence number (0x00 - 0xff) added to the transmitted data or MAC command frame.
uint16_t macDstPANId
 The 16-bit identifier of the PAN on which the device is sending to.
uint16_t macSrcPANId
 The 16-bit identifier of the PAN on which the device is operating.
uint16_t macShortAddress
 The 16-bit address that the device uses to communicate in the PAN.
uint64_t macLongAddr
 Our own long address.

Detailed Description

The IEEE 802.15.4 (2003/2006) MAC utility functions.

Definition in file mac.c.