eui_provider_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 ML!PA Consulting GmbH
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 
9 #pragma once
10 
20 #include "at24mac.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
29 static inline int _at24mac_get_eui48(uint8_t index, eui48_t *addr)
30 {
31  return at24mac_get_eui48(index, addr);
32 }
33 
39 #define EUI48_PROVIDER_FUNC _at24mac_get_eui48
40 #ifndef EUI48_PROVIDER_TYPE
41 #define EUI48_PROVIDER_TYPE NETDEV_SAM0_ETH
42 #endif
45 #ifdef __cplusplus
46 }
47 #endif
48 
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