Contiki-NG
Loading...
Searching...
No Matches
frame802154.c File Reference

802.15.4 frame creation and parsing functions More...

#include "sys/cc.h"
#include "net/mac/framer/frame802154.h"
#include "net/mac/llsec802154.h"
#include "net/linkaddr.h"
#include <string.h>

Go to the source code of this file.

Functions

FCF element values definitions

These are some definitions of values used in the FCF.

See the 802.15.4 spec for details.

int frame802154_hdrlen (frame802154_t *p)
 Calculates the length of the frame header.
 
int frame802154_create (frame802154_t *p, uint8_t *buf)
 Creates a frame for transmission over the air.
 
int frame802154_parse (uint8_t *data, int len, frame802154_t *pf)
 Parses an input frame.
 

Variables

static uint16_t mac_pan_id = IEEE802154_PANID
 The 16-bit identifier of the PAN on which the device is operating.
 

Detailed Description

802.15.4 frame creation and parsing functions

This file converts to and from a structure to a packed 802.15.4 frame.

Definition in file frame802154.c.