1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/net/sixlowpan/mac.h

46 lines
1.3 KiB
C
Raw Normal View History

2013-07-24 00:02:44 +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>
* @}
*/
2013-08-05 16:10:54 +02:00
#ifndef _SIXLOWPAN_MAC_H
#define _SIXLOWPAN_MAC_H
2013-07-24 00:02:44 +02:00
#include <stdio.h>
#include <stdint.h>
2013-08-05 16:10:54 +02:00
#include "ip.h"
2013-07-24 00:02:44 +02:00
#include "radio/radio.h"
#include <transceiver.h>
#define RADIO_STACK_SIZE (MINIMUM_STACK_SIZE + 256)
#define RADIO_RCV_BUF_SIZE (64)
#define RADIO_SENDING_DELAY (1000)
extern uint16_t fragmentcounter;
uint8_t get_radio_address(void);
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);
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);
ieee_802154_long_t *mac_get_eui(ipv6_addr_t *ipaddr);
2013-08-05 16:10:54 +02:00
#endif /* _SIXLOWPAN_MAC_H*/