 |
USRP Hardware Driver and USRP Manual
Version: 4.0.0.0-0-unknown
UHD and USRP Manual
|
|
Go to the documentation of this file.
15 namespace uhd {
namespace usrp {
namespace cal {
87 const std::string& serial,
108 const std::string& serial,
130 const std::string& serial,
131 const std::vector<uint8_t>& cal_data,
132 const std::string& backup_ext =
"");
143 std::function<std::vector<uint8_t>(
const std::string&,
const std::string&)>;
154 const source source_type = source::FLASH);
@ USER
Provided by the user.
static bool has_cal_data(const std::string &key, const std::string &serial, const source source_type=source::ANY)
Check if calibration data exists for a given source type.
static std::vector< uint8_t > read_cal_data(const std::string &key, const std::string &serial, const source source_type=source::ANY)
Return a calibration data set as a serialized string.
static void register_lookup(has_data_fn_type has_cal_data, get_data_fn_type get_cal_data, const source source_type=source::FLASH)
Register a lookup function for cal data.
#define UHD_API
Definition: config.h:67
source
Identify the source of calibration data, i.e., where was it stored.
Definition: database.hpp:22
std::function< std::vector< uint8_t >(const std::string &, const std::string &)> get_data_fn_type
Function type to return serialized cal data key and serial.
Definition: database.hpp:143
Definition: build_info.hpp:12
Definition: database.hpp:67
@ NONE
No calibration data available.
std::function< bool(const std::string &, const std::string &)> has_data_fn_type
Function type to look up if there is cal data given a key and serial.
Definition: database.hpp:135
static void write_cal_data(const std::string &key, const std::string &serial, const std::vector< uint8_t > &cal_data, const std::string &backup_ext="")
Store calibration data to the local filesystem database.