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
|
|
|
|
2010-12-13 11:14:41 +01:00
|
|
|
#define RADIO_STACK_SIZE 2048
|
|
|
|
#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-07 13:02:27 +01:00
|
|
|
void send_ieee802154_frame(uint8_t *addr, uint8_t *payload, uint8_t length);
|
|
|
|
void init_802154_long_addr(uint8_t *addr);
|
|
|
|
void sixlowmac_init(transceiver_type_t type);
|
2010-10-19 23:07:29 +02:00
|
|
|
void send(void);
|
2010-10-17 16:04:03 +02:00
|
|
|
|
2010-10-19 23:07:29 +02:00
|
|
|
#endif /* SIXLOWMAC_H*/
|