35 #include "contiki-raven.h"
40 #include "sicslow_ethernet.h"
43 void byte_reverse(uint8_t * bytes, uint8_t num)
68 uint64_t usb_ethernet_addr;
73 byte_reverse((uint8_t*)&macLongAddr,8);
76 macLongAddr &= ~(0x0700000000000000ULL);
77 macLongAddr |= 0x0200000000000000ULL;
83 usb_ethernet_addr = (usb_ethernet_addr & 0xffffffUL) | ((usb_ethernet_addr & 0xffffff0000000000ULL) >> 16);
87 macLongAddr = (macLongAddr & 0xffffff0000ffffffULL) | (0x000000fffe000000ULL);
93 byte_reverse((uint8_t*)&macLongAddr,8);
94 byte_reverse((uint8_t*)&usb_ethernet_addr,6);
96 usb_eth_set_mac_address((uint8_t*)&usb_ethernet_addr);
void(* set_long_addr)(uint64_t address)
Set the Long Address.
uint64_t macLongAddr
Our own long address.
Header file for the 6lowpan implementation (RFC4944 and draft-hui-6lowpan-hc-01) ...
ieee_15_4_manager_t ieee15_4ManagerAddress
Interface structure for this module.
This file manages the RNDIS task.
The IEEE 802.15.4 (2003/2006) MAC utility functions.