The friendly Operating System for the Internet of Things
eui64.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
24 #ifndef EUI64_H
25 #define EUI64_H
26 
27 #include <stdint.h>
28 #include "byteorder.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
37 typedef union {
39  uint8_t uint8[8];
40  network_uint16_t uint16[4];
41 } eui64_t;
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif /* EUI64_H */
48 
A 16 bit integer in big endian aka network byte order.
Definition: byteorder.h:76
Functions to work with different byte orders.
Data type to represent an EUI-64.
Definition: eui64.h:37
network_uint64_t uint64
represented as 64 bit value
Definition: eui64.h:38
A 64 bit integer in big endian aka network byte order.
Definition: byteorder.h:98