mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
9ca8afd70c
- fixed a bug in 6LoWPAN reassembly algorithm where in a specific case a pointer could be used although it is NULL - removed MAC routing - added IP routing
29 lines
847 B
C
29 lines
847 B
C
/* 6LoWPAN MAC header file */
|
|
|
|
#ifndef SIXLOWMAC_H
|
|
#define SIXLOWMAC_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include "sixlowip.h"
|
|
#include "radio/radio.h"
|
|
#include <transceiver.h>
|
|
|
|
#define RADIO_STACK_SIZE 2048
|
|
#define RADIO_RCV_BUF_SIZE 64
|
|
#define RADIO_SND_BUF_SIZE 100
|
|
#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);
|
|
|
|
#endif /* SIXLOWMAC_H*/
|