1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-30 08:51:19 +01:00

net/eui64: provide 32 bit access

Allow to read the eui64 as two 32 bit values.
This commit is contained in:
Benjamin Valentin 2020-03-01 18:37:51 +01:00
parent 6dd69e7134
commit 2f6bf38d17

View File

@ -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;
/**