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