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

37 lines
705 B
C
Raw Normal View History

2013-03-03 17:47:11 +01:00
/*
* etx_beaconing.h
*
* Created on: Feb 26, 2013
* Author: stephan
*/
#ifndef ETX_BEACONING_H_
#define ETX_BEACONING_H_
#include "rpl_structs.h"
#define ETX_BEACON_STACKSIZE 2048
//[option|length|ipaddr.|packetcount] with up to 10 ipaddr|packetcount pairs
// 1 Byte 1 Byte 2 Byte 1 Byte
#define ETX_BUF_SIZE (32)
#define ETX_RCV_BUFFER_SIZE (64)
//ETX beaconing type (!ATTENTION! this is non-standard)
#define ETX_BEACON 0x20
//prototypes
void init_etx_beaconing(void);
void etx_beacon(void);
void etx_radio(void);
typedef struct __attribute__((packed)) {
uint8_t code;
uint8_t length;
uint8_t* data;
} etx_probe_t;
#endif /* ETX_BEACONING_H_ */