1 /***************************************************************************/ /** 2 * @file 3 * @brief Common IEEE 802 types 4 ******************************************************************************* 5 * # License 6 * <b>Copyright 2022 Silicon Laboratories Inc. www.silabs.com</b> 7 ******************************************************************************* 8 * 9 * SPDX-License-Identifier: Zlib 10 * 11 * The licensor of this software is Silicon Laboratories Inc. 12 * 13 * This software is provided 'as-is', without any express or implied 14 * warranty. In no event will the authors be held liable for any damages 15 * arising from the use of this software. 16 * 17 * Permission is granted to anyone to use this software for any purpose, 18 * including commercial applications, and to alter it and redistribute it 19 * freely, subject to the following restrictions: 20 * 21 * 1. The origin of this software must not be misrepresented; you must not 22 * claim that you wrote the original software. If you use this software 23 * in a product, an acknowledgment in the product documentation would be 24 * appreciated but is not required. 25 * 2. Altered source versions must be plainly marked as such, and must not be 26 * misrepresented as being the original software. 27 * 3. This notice may not be removed or altered from any source distribution. 28 * 29 ******************************************************************************/ 30 #pragma once 31 32 #include <stdint.h> 33 34 /** \addtogroup SL_NET_TYPES */ 35 /** @{ */ 36 37 /// The IEEE defined 48-bit extended unique identifier (EUI-48) 38 typedef struct { 39 uint8_t octet[6]; ///< Value of EUI-48 address 40 } sl_eui48_address_t; 41 42 /// The IEEE defined 64-bit extended unique identifier (EUI-64) 43 typedef struct { 44 uint8_t octet[8]; ///< Value of EUI-64 address 45 } sl_eui64_address_t; 46 47 /// Generic SL MAC address type 48 typedef sl_eui48_address_t sl_mac_address_t; 49 50 /// Ethernet MAC address 51 typedef sl_eui48_address_t sl_ethernet_address_t; 52 53 /** @} */ 54