Contiki 3.x
Functions | Variables
sicslowmac.c File Reference

    MAC interface for packaging radio packets into 802.15.4 frames
More...

#include <string.h>
#include "net/mac/sicslowmac/sicslowmac.h"
#include "net/mac/frame802154.h"
#include "net/packetbuf.h"
#include "net/queuebuf.h"
#include "net/netstack.h"
#include "lib/random.h"

Go to the source code of this file.

Functions

static void send_packet (mac_callback_t sent, void *ptr)
 

Variables

static uint8_t mac_dsn
 The sequence number (0x00 - 0xff) added to the transmitted data or MAC command frame. More...
 
static uint16_t mac_dst_pan_id = IEEE802154_PANID
 The 16-bit identifier of the PAN on which the device is sending to. More...
 
static uint16_t mac_src_pan_id = IEEE802154_PANID
 The 16-bit identifier of the PAN on which the device is operating. More...
 

Detailed Description

    MAC interface for packaging radio packets into 802.15.4 frames
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se Eric Gnoske egnos.nosp@m.ke@g.nosp@m.mail..nosp@m.com Blake Leverett bleve.nosp@m.rett.nosp@m.@gmai.nosp@m.l.co.nosp@m.m Niclas Finne nfi@s.nosp@m.ics..nosp@m.se Joakim Eriksson joaki.nosp@m.me@s.nosp@m.ics.s.nosp@m.e

Definition in file sicslowmac.c.

Function Documentation

static void send_packet ( mac_callback_t  sent,
void *  ptr 
)
static

Variable Documentation

uint8_t mac_dsn
static

The sequence number (0x00 - 0xff) added to the transmitted data or MAC command frame.

The default is a random value within the range.

Definition at line 69 of file sicslowmac.c.

Referenced by send_packet().

uint16_t mac_dst_pan_id = IEEE802154_PANID
static

The 16-bit identifier of the PAN on which the device is sending to.

If this value is 0xffff, the device is not associated.

Definition at line 75 of file sicslowmac.c.

Referenced by send_packet().

uint16_t mac_src_pan_id = IEEE802154_PANID
static

The 16-bit identifier of the PAN on which the device is operating.

If this value is 0xffff, the device is not associated.

Definition at line 81 of file sicslowmac.c.

Referenced by send_packet().