Loading...
Searching...
No Matches
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
18#ifndef EUI_PROVIDER_PARAMS_H
19#define EUI_PROVIDER_PARAMS_H
20
21#include "at24mac.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
30static inline int _at24mac_get_eui48(uint8_t index, eui48_t *addr)
31{
32 return at24mac_get_eui48(index, addr);
33}
34
40#define EUI48_PROVIDER_FUNC _at24mac_get_eui48
41#ifndef EUI48_PROVIDER_TYPE
42#define EUI48_PROVIDER_TYPE NETDEV_SAM0_ETH
43#endif
46#ifdef __cplusplus
47}
48#endif
49
50#endif /* EUI_PROVIDER_PARAMS_H */
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:35