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_eui64(uint8_t index, eui64_t *addr)
31{
32 return at24mac_get_eui64(index, addr);
33}
34
40#define EUI64_PROVIDER_FUNC _at24mac_get_eui64
41#define EUI64_PROVIDER_TYPE NETDEV_AT86RF2XX
42#define EUI64_PROVIDER_INDEX 0
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* EUI_PROVIDER_PARAMS_H */
static int _at24mac_get_eui64(uint8_t index, eui64_t *addr)
AT24Mac provides a EUI-64, this is also printed on the board.
int at24mac_get_eui64(at24mac_t dev, eui64_t *addr)
Get the unique EUI64 address from a AT24MAC6xx chip.
Data type to represent an EUI-64.
Definition eui64.h:55