15namespace 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&)>;
 
Definition: database.hpp:67
 
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.
 
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.
 
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
 
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.
 
#define UHD_API
Definition: config.h:67
 
source
Identify the source of calibration data, i.e., where was it stored.
Definition: database.hpp:22
 
@ FLASH
Stored on device flash memory, e.g. EEPROM.
 
@ USER
Provided by the user.
 
@ RC
Internal Resource Compiler (i.e., hard-coded within UHD)
 
@ FILESYSTEM
Stored on the local filesystem.
 
@ NONE
No calibration data available.
 
Definition: build_info.hpp:12