2013-06-22 05:11:53 +02:00
|
|
|
/*
|
|
|
|
* 6LoWPAN MAC - layer 2 prototypes
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013 INRIA.
|
|
|
|
*
|
|
|
|
* This file subject to the terms and conditions of the GNU Lesser General
|
|
|
|
* Public License. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
|
|
|
*
|
|
|
|
* @ingroup sixlowpan
|
|
|
|
* @{
|
|
|
|
* @file sixlowmac.h
|
|
|
|
* @brief 6lowpan link layer functions
|
|
|
|
* @author Stephan Zeisberg <zeisberg@mi.fu-berlin.de>
|
|
|
|
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
|
|
|
|
* @author Eric Engel <eric.engel@fu-berlin.de>
|
|
|
|
* @author Oliver Gesch <oliver.gesch@googlemail.com>
|
|
|
|
* @}
|
|
|
|
*/
|
2012-01-30 22:44:38 +01:00
|
|
|
|
|
|
|
#ifndef SIXLOWMAC_H
|
|
|
|
#define SIXLOWMAC_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "sixlowip.h"
|
|
|
|
#include "radio/radio.h"
|
|
|
|
#include <transceiver.h>
|
|
|
|
|
2012-03-01 02:48:22 +01:00
|
|
|
#define RADIO_STACK_SIZE 512
|
2012-01-30 22:44:38 +01:00
|
|
|
#define RADIO_RCV_BUF_SIZE 64
|
|
|
|
#define RADIO_SND_BUF_SIZE 100
|
|
|
|
#define RADIO_SENDING_DELAY 1000
|
|
|
|
|
2012-02-20 04:25:52 +01:00
|
|
|
extern uint16_t fragmentcounter;
|
2012-02-14 21:28:51 +01:00
|
|
|
|
2012-01-30 22:44:38 +01:00
|
|
|
uint8_t get_radio_address(void);
|
|
|
|
void set_radio_address(uint8_t addr);
|
2013-06-22 05:11:53 +02:00
|
|
|
void send_ieee802154_frame(ieee_802154_long_t *addr, uint8_t *payload,
|
2012-01-30 22:44:38 +01:00
|
|
|
uint8_t length, uint8_t mcast);
|
|
|
|
void init_802154_long_addr(ieee_802154_long_t *laddr);
|
|
|
|
void init_802154_short_addr(ieee_802154_short_t *saddr);
|
|
|
|
void sixlowmac_init(transceiver_type_t type);
|
2013-06-22 05:11:53 +02:00
|
|
|
ieee_802154_long_t *mac_get_eui(ipv6_addr_t *ipaddr);
|
2012-01-30 22:44:38 +01:00
|
|
|
|
|
|
|
#endif /* SIXLOWMAC_H*/
|