1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-20 20:13:50 +01:00
RIOT/cpu/native/include/native_cli_eui_provider.h
2025-09-25 17:48:55 +02:00

47 lines
841 B
C

/*
* SPDX-FileCopyrightText: 2020 Benjamin Valentin
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @addtogroup cpu_native
* @{
*/
/**
* @file
* @brief Command-line EUI provider for native
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
*/
#include "net/eui64.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief parse a string as an EUI-64 and add it to the list of EUI-64s
*
* @param[in] s EUI-64 as hexadecimal string representation
*/
void native_cli_add_eui64(const char *s);
/**
* @brief Get a command-line provided EUI-64
*
* @param index index of ZEP device
* @param[out] addr user supplied EUI-64
*
* @return 0 on success, negatvie if no more EUIs are available.
*/
int native_cli_get_eui64(uint8_t index, eui64_t *addr);
#ifdef __cplusplus
}
#endif
/** @} */