USRP Hardware Driver and USRP Manual Version: 3.15.0.0-MacPorts-Release
UHD and USRP Manual
mboard_eeprom.h
Go to the documentation of this file.
1//
2// Copyright 2015 Ettus Research LLC
3// Copyright 2018 Ettus Research, a National Instruments Company
4//
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
7
8#ifndef INCLUDED_UHD_USRP_MBOARD_EEPROM_H
9#define INCLUDED_UHD_USRP_MBOARD_EEPROM_H
10
11#include <uhd/config.h>
12#include <uhd/error.h>
13
14#ifdef __cplusplus
16#include <string>
17
18struct uhd_mboard_eeprom_t {
19 uhd::usrp::mboard_eeprom_t mboard_eeprom_cpp;
20 std::string last_error;
21};
22
23extern "C" {
24#else
25struct uhd_mboard_eeprom_t;
26#endif
27
29
35typedef struct uhd_mboard_eeprom_t* uhd_mboard_eeprom_handle;
36
40);
41
43
49);
50
54 const char* key,
55 char* value_out,
56 size_t strbuffer_len
57);
58
62 const char* key,
63 const char* value
64);
65
69 char* error_out,
70 size_t strbuffer_len
71);
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* INCLUDED_UHD_USRP_MBOARD_EEPROM_H */
#define UHD_API
Definition: config.h:68
uhd_error
UHD error codes.
Definition: error.h:21
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_API uhd_error uhd_mboard_eeprom_free(uhd_mboard_eeprom_handle *h)
Free a USRP motherboard EEPROM handle.
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_API uhd_error uhd_mboard_eeprom_make(uhd_mboard_eeprom_handle *h)
Create a handle for working with a USRP motherboard EEPROM.
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_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.