2010-10-06 17:15:05 +02:00
|
|
|
/* 6LoWPAN MAC header file */
|
|
|
|
|
2010-10-17 16:04:03 +02:00
|
|
|
#ifndef SIXLOWMAC_H
|
|
|
|
#define SIXLOWMAC_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdint.h>
|
2010-10-19 23:07:29 +02:00
|
|
|
#include "sixlowip.h"
|
2010-11-30 10:21:29 +01:00
|
|
|
#include "radio/radio.h"
|
2011-01-07 13:02:27 +01:00
|
|
|
#include <transceiver.h>
|
2010-11-30 10:21:29 +01:00
|
|
|
|
2011-12-26 02:59:58 +01:00
|
|
|
#define RADIO_STACK_SIZE 3072
|
2010-12-13 11:14:41 +01:00
|
|
|
#define RADIO_RCV_BUF_SIZE 64
|
|
|
|
#define RADIO_SND_BUF_SIZE 100
|
|
|
|
#define RADIO_SENDING_DELAY 1000
|
2010-10-17 16:04:03 +02:00
|
|
|
|
2011-01-04 10:25:16 +01:00
|
|
|
uint8_t get_radio_address(void);
|
2011-01-24 22:41:32 +01:00
|
|
|
void set_radio_address(uint8_t addr);
|
|
|
|
void send_ieee802154_frame(ieee_802154_long_t *addr, uint8_t *payload,
|
|
|
|
uint8_t length, uint8_t mcast);
|
2011-01-07 23:38:42 +01:00
|
|
|
void init_802154_long_addr(ieee_802154_long_t *laddr);
|
|
|
|
void init_802154_short_addr(ieee_802154_short_t *saddr);
|
2011-01-07 13:02:27 +01:00
|
|
|
void sixlowmac_init(transceiver_type_t type);
|
2011-01-24 22:41:32 +01:00
|
|
|
ieee_802154_long_t* mac_get_eui(ipv6_addr_t *ipaddr);
|
2010-10-17 16:04:03 +02:00
|
|
|
|
2010-10-19 23:07:29 +02:00
|
|
|
#endif /* SIXLOWMAC_H*/
|