USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-gdca39145
UHD and USRP Manual
mboard_eeprom.h
Go to the documentation of this file.
1 //
2 // Copyright 2015 Ettus Research LLC
3 //
4 // SPDX-License-Identifier: GPL-3.0
5 //
6 
7 #ifndef INCLUDED_UHD_USRP_MBOARD_EEPROM_H
8 #define INCLUDED_UHD_USRP_MBOARD_EEPROM_H
9 
10 #include <uhd/config.h>
11 #include <uhd/error.h>
12 
13 #ifdef __cplusplus
15 #include <string>
16 
17 struct uhd_mboard_eeprom_t {
18  uhd::usrp::mboard_eeprom_t mboard_eeprom_cpp;
19  std::string last_error;
20 };
21 
22 extern "C" {
23 #else
24 struct uhd_mboard_eeprom_t;
25 #endif
26 
28 
34 typedef struct uhd_mboard_eeprom_t* uhd_mboard_eeprom_handle;
35 
38  uhd_mboard_eeprom_handle* h
39 );
40 
42 
47  uhd_mboard_eeprom_handle* h
48 );
49 
52  uhd_mboard_eeprom_handle h,
53  const char* key,
54  char* value_out,
55  size_t strbuffer_len
56 );
57 
60  uhd_mboard_eeprom_handle h,
61  const char* key,
62  const char* value
63 );
64 
67  uhd_mboard_eeprom_handle h,
68  char* error_out,
69  size_t strbuffer_len
70 );
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif /* INCLUDED_UHD_USRP_MBOARD_EEPROM_H */
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.
struct uhd_mboard_eeprom_t * uhd_mboard_eeprom_handle
A C-level interface for interacting with a USRP motherboard&#39;s EEPROM.
Definition: mboard_eeprom.h:34
uhd_error
UHD error codes.
Definition: error.h:20
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.
#define UHD_API
Definition: config.h:62
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.