mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
18 lines
466 B
C
18 lines
466 B
C
/* 6LoWPAN MAC - layer 2 implementations */
|
|
|
|
#include "sixlowmac.h"
|
|
#include "sixlownd.h"
|
|
#include "drivers/cc110x/cc1100.h"
|
|
#include "radio/radio.h"
|
|
|
|
#define ipv6_buf ((struct ipv6_hdr_t*)&buffer[LL_HDR_LEN])
|
|
|
|
/* TODO: payload pointer, payload length */
|
|
void send(void){
|
|
RADIO.send(get_radio_address(get_eui(&ipv6_buf->destaddr)),NULL,NULL,NULL,NULL);
|
|
}
|
|
|
|
uint16_t get_radio_address(ieee_802154_long_t *lla){
|
|
return ((lla->uint8[6] << 8) + lla->uint8[7]);
|
|
}
|