From 2f6bf38d17017a4b017ffb371d869825de1950d3 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sun, 1 Mar 2020 18:37:51 +0100 Subject: [PATCH] net/eui64: provide 32 bit access Allow to read the eui64 as two 32 bit values. --- sys/include/net/eui64.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/include/net/eui64.h b/sys/include/net/eui64.h index c8e4af0833..ffa14bce3b 100644 --- a/sys/include/net/eui64.h +++ b/sys/include/net/eui64.h @@ -54,8 +54,9 @@ extern "C" { */ typedef union { network_uint64_t uint64; /**< represented as 64 bit value */ - uint8_t uint8[8]; /**< split into 8 8-bit words. */ - network_uint16_t uint16[4]; /**< split into 4 16-bit words. */ + uint8_t uint8[8]; /**< split into 8 8-bit words. */ + network_uint16_t uint16[4]; /**< split into 4 16-bit words. */ + network_uint32_t uint32[2]; /**< split into 2 32-bit words. */ } eui64_t; /**