Loading...
Searching...
No Matches
mboard_eeprom.h
Go to the documentation of this file.
//
// Copyright 2015 Ettus Research LLC
// Copyright 2018 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/config.h>
#include <uhd/error.h>
#ifdef __cplusplus
# include <uhd/usrp/mboard_eeprom.hpp>
# include <string>
struct uhd_mboard_eeprom_t
{
uhd::usrp::mboard_eeprom_t mboard_eeprom_cpp;
std::string last_error;
};
extern "C" {
#else
struct uhd_mboard_eeprom_t;
#endif
typedef struct uhd_mboard_eeprom_t* uhd_mboard_eeprom_handle;
UHD_API uhd_error uhd_mboard_eeprom_make(uhd_mboard_eeprom_handle* h);
UHD_API uhd_error uhd_mboard_eeprom_free(uhd_mboard_eeprom_handle* h);
UHD_API uhd_error uhd_mboard_eeprom_get_value(
uhd_mboard_eeprom_handle h, const char* key, char* value_out, size_t strbuffer_len);
UHD_API uhd_error uhd_mboard_eeprom_set_value(
uhd_mboard_eeprom_handle h, const char* key, const char* value);
UHD_API uhd_error uhd_mboard_eeprom_last_error(
uhd_mboard_eeprom_handle h, char* error_out, size_t strbuffer_len);
#ifdef __cplusplus
}
#endif
config.h
UHD_API
#define UHD_API
Definition config.h:87
error.h
uhd_error
uhd_error
UHD error codes.
Definition error.h:20
uhd_mboard_eeprom_handle
struct uhd_mboard_eeprom_t * uhd_mboard_eeprom_handle
A C-level interface for interacting with a USRP motherboard's EEPROM.
Definition mboard_eeprom.h:35
uhd_mboard_eeprom_free
UHD_API uhd_error uhd_mboard_eeprom_free(uhd_mboard_eeprom_handle *h)
Free a USRP motherboard EEPROM handle.
uhd_mboard_eeprom_last_error
UHD_API uhd_error uhd_mboard_eeprom_last_error(uhd_mboard_eeprom_handle h, char *error_out, size_t strbuffer_len)
Get the last error recorded by the handle.
uhd_mboard_eeprom_make
UHD_API uhd_error uhd_mboard_eeprom_make(uhd_mboard_eeprom_handle *h)
Create a handle for working with a USRP motherboard EEPROM.
uhd_mboard_eeprom_set_value
UHD_API uhd_error uhd_mboard_eeprom_set_value(uhd_mboard_eeprom_handle h, const char *key, const char *value)
Set the value for the given EEPROM key.
uhd_mboard_eeprom_get_value
UHD_API uhd_error uhd_mboard_eeprom_get_value(uhd_mboard_eeprom_handle h, const char *key, char *value_out, size_t strbuffer_len)
Get the value associated with the given EEPROM key.
mboard_eeprom.hpp
uhd::usrp::mboard_eeprom_t
uhd::dict< std::string, std::string > mboard_eeprom_t
Definition mboard_eeprom.hpp:27