changed mac framer to be able to change panid during runtime

example:
#include "net/mac/framer-802154.h"
uint16_t panid = 1234;
framer_802154_set_panid(panid);

attention: this only changes the framer panid, you need to change
the radio panid too, e.g. with rf230_set_pan_addr on avr atmega128rfa1
This commit is contained in:
AndreasReder 2013-03-20 07:00:46 +01:00 committed by harald
parent 057a3c3345
commit 033adfa678
2 changed files with 17 additions and 4 deletions

View file

@ -39,8 +39,12 @@
#ifndef FRAMER_802154_H_
#define FRAMER_802154_H_
#include <stdint.h>
#include "net/mac/framer.h"
extern const struct framer framer_802154;
#endif /* FRAMER_802154_H_ */
void framer_802154_set_panid(uint16_t panid);
uint16_t framer_802154_get_panid();
#endif /* __FRAMER_802154_H__ */