Contiki-NG
Functions
tsch-packet.h File Reference

TSCH packet parsing and creation. More...

#include "contiki.h"
#include "net/mac/framer/frame802154.h"
#include "net/mac/framer/frame802154e-ie.h"

Go to the source code of this file.

Functions

int tsch_packet_create_eack (uint8_t *buf, uint16_t buf_size, const linkaddr_t *dest_addr, uint8_t seqno, int16_t drift, int nack)
 Construct Enhanced ACK packet. More...
 
int tsch_packet_parse_eack (const uint8_t *buf, int buf_size, uint8_t seqno, frame802154_t *frame, struct ieee802154_ies *ies, uint8_t *hdr_len)
 Parse enhanced ACK packet. More...
 
int tsch_packet_create_eb (uint8_t *hdr_len, uint8_t *tsch_sync_ie_ptr)
 Create an EB packet directly in packetbuf. More...
 
int tsch_packet_update_eb (uint8_t *buf, int buf_size, uint8_t tsch_sync_ie_offset)
 Update ASN in EB packet. More...
 
int tsch_packet_parse_eb (const uint8_t *buf, int buf_size, frame802154_t *frame, struct ieee802154_ies *ies, uint8_t *hdrlen, int frame_without_mic)
 Parse EB. More...
 
void tsch_packet_set_frame_pending (uint8_t *buf, int buf_size)
 Set frame pending bit in a packet (whose header was already build) More...
 
int tsch_packet_get_frame_pending (uint8_t *buf, int buf_size)
 Get frame pending bit from a packet. More...
 
void tsch_packet_eackbuf_set_attr (uint8_t type, const packetbuf_attr_t val)
 Set a packet attribute for the current eack. More...
 
packetbuf_attr_t tsch_packet_eackbuf_attr (uint8_t type)
 Return the value of a specified attribute. More...
 

Detailed Description

TSCH packet parsing and creation.

EBs and EACKs.

Definition in file tsch-packet.h.