eui_provider_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2020 ML!PA Consulting GmbH
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
17 #include "at24mac.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
26 static inline int _at24mac_get_eui48(uint8_t index, eui48_t *addr)
27 {
28  return at24mac_get_eui48(index, addr);
29 }
30 
36 #define EUI48_PROVIDER_FUNC _at24mac_get_eui48
37 #ifndef EUI48_PROVIDER_TYPE
38 #define EUI48_PROVIDER_TYPE NETDEV_SAM0_ETH
39 #endif
42 #ifdef __cplusplus
43 }
44 #endif
45 
int at24mac_get_eui48(at24mac_t dev, eui48_t *addr)
Get the unique EUI48 address from a AT24MAC4xx chip.
static int _at24mac_get_eui48(uint8_t index, eui48_t *addr)
AT24Mac provides a EUI-48.
Data type to represent an EUI-48.
Definition: eui48.h:34