41#ifdef NULLFRAMER_CONF_PARSE_802154
42#define NULLFRAMER_PARSE_802154 NULLFRAMER_CONF_PARSE_802154
45#define NULLFRAMER_PARSE_802154 1
49#if NULLFRAMER_PARSE_802154
51is_broadcast_addr(uint8_t mode,
const uint8_t *
addr)
53 int i = mode == FRAME802154_SHORTADDRMODE ? 2 : 8;
80#if NULLFRAMER_PARSE_802154
87 packetbuf_set_addr(PACKETBUF_ADDR_RECEIVER, (linkaddr_t *)&frame.
dest_addr);
90 packetbuf_set_addr(PACKETBUF_ADDR_SENDER, (linkaddr_t *)&frame.
src_addr);
91 packetbuf_set_attr(PACKETBUF_ATTR_MAC_SEQNO, frame.
seq);
98const struct framer no_framer = {
A MAC framer is responsible for constructing and parsing the header in MAC frames.
int frame802154_parse(uint8_t *data, int len, frame802154_t *pf)
Parses an input frame.
void * packetbuf_dataptr(void)
Get a pointer to the data in the packetbuf.
uint16_t packetbuf_datalen(void)
Get the length of the data in the packetbuf.
Header file for the Packet buffer (packetbuf) management.
uint8_t ack_required
1 bit.
uint8_t dest_addr_mode
2 bit.
Parameters used by the frame802154_create() function.
uint8_t seq
Sequence number.
uint8_t dest_addr[8]
Destination address.
uint8_t src_addr[8]
Source address.
frame802154_fcf_t fcf
Frame control field
static uip_ds6_addr_t * addr
Pointer to a nbr cache entry.