USRP Hardware Driver and USRP Manual  Version: 003.009.006-0-g122d5f8e
UHD and USRP Manual
uhd::usrp::mboard_eeprom_t Struct Reference

#include <uhd/usrp/mboard_eeprom.hpp>

Inheritance diagram for uhd::usrp::mboard_eeprom_t:
uhd::dict< std::string, std::string >

Public Member Functions

 mboard_eeprom_t (void)
 Make a new empty mboard eeprom. More...
 
 mboard_eeprom_t (i2c_iface &iface, const std::string &which)
 
void commit (i2c_iface &iface, const std::string &which) const
 
- Public Member Functions inherited from uhd::dict< std::string, std::string >
 dict (void)
 
 dict (InputIterator first, InputIterator last)
 
std::size_t size (void) const
 
std::vector< std::string > keys (void) const
 
std::vector< std::string > vals (void) const
 
bool has_key (const std::string &key) const
 
const std::string & get (const std::string &key, const std::string &other) const
 
const std::string & get (const std::string &key) const
 
void set (const std::string &key, const std::string &val)
 
const std::string & operator[] (const std::string &key) const
 
std::string & operator[] (const std::string &key)
 
std::string pop (const std::string &key)
 
void update (const dict< std::string, std::string > &new_dict, bool fail_on_conflict=true)
 

Detailed Description

The motherboard EEPROM object: Knows how to read and write the EEPROM for various USRPs. The class inherits from a string, string dictionary. Use the dictionary interface to get and set values. Commit to the EEPROM to save changed settings.

Constructor & Destructor Documentation

◆ mboard_eeprom_t() [1/2]

uhd::usrp::mboard_eeprom_t::mboard_eeprom_t ( void  )

Make a new empty mboard eeprom.

◆ mboard_eeprom_t() [2/2]

uhd::usrp::mboard_eeprom_t::mboard_eeprom_t ( i2c_iface iface,
const std::string &  which 
)

Make a new mboard EEPROM handler.

Parameters
ifacethe interface to i2c
whichwhich EEPROM map to use

Member Function Documentation

◆ commit()

void uhd::usrp::mboard_eeprom_t::commit ( i2c_iface iface,
const std::string &  which 
) const

Write the contents of this object to the EEPROM.

Parameters
ifacethe interface to i2c
whichwhich EEPROM map to use

The documentation for this struct was generated from the following file: