Microchip® Advanced Software Framework

framer-802154.c File Reference

    MAC framer for IEEE 802.15.4
Author
Niclas Finne nfi@s.nosp@m.ics..nosp@m.se Joakim Eriksson joaki.nosp@m.me@s.nosp@m.ics.s.nosp@m.e
#include "net/mac/framer-802154.h"
#include "net/mac/frame802154.h"
#include "net/packetbuf.h"
#include "lib/random.h"
#include <string.h>

Macros

#define _DEBUG_   0
 
#define PRINTADDR(addr)
 
#define PRINTF(...)
 

Functions

static int create (void)
 
static int is_broadcast_addr (uint8_t mode, uint8_t *addr)
 
static int parse (void)
 

Variables

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

#define _DEBUG_   0
#define PRINTADDR (   addr)

Referenced by create(), and parse().

#define PRINTF (   ...)

Referenced by create(), and parse().

static int is_broadcast_addr ( uint8_t  mode,
uint8_t *  addr 
)
static

References FRAME802154_SHORTADDRMODE, and i.

Referenced by parse().

struct framer framer_802154
Initial value:
= {
}
static int parse(void)
Definition: framer-802154.c:187
static int create(void)
Definition: framer-802154.c:90
uint8_t initialized = 0
static

Referenced by create().

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.

Referenced by create().

const 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.

Referenced by create().

const 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.

Referenced by create(), and parse().