Make frame fcf creation and parsing standalone functions

This commit is contained in:
Laurent Deru 2016-12-22 09:00:38 +01:00
parent 0ceb45ee78
commit 9b6ba3c009
2 changed files with 42 additions and 26 deletions

View file

@ -207,8 +207,10 @@ typedef struct {
/* Prototypes */
int frame802154_hdrlen(frame802154_t *p);
void frame802154_create_fcf(frame802154_fcf_t *fcf, uint8_t *buf);
int frame802154_create(frame802154_t *p, uint8_t *buf);
int frame802154_parse(uint8_t *data, int length, frame802154_t *pf);
void frame802154_parse_fcf(uint8_t *data, frame802154_fcf_t *pfcf);
/* Get current PAN ID */
uint16_t frame802154_get_pan_id(void);