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:
parent
057a3c3345
commit
033adfa678
2 changed files with 17 additions and 4 deletions
|
@ -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__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue