USRP Hardware Driver and USRP Manual  Version: 4.0.0.0-170-gd398fe465
UHD and USRP Manual
uhd::usrp_clock::octoclock_eeprom_t Class Reference

#include <uhd/usrp_clock/octoclock_eeprom.hpp>

Inheritance diagram for uhd::usrp_clock::octoclock_eeprom_t:
uhd::dict< Key, Val >

Public Member Functions

 octoclock_eeprom_t (void)
 Make a new empty OctoClock EEPROM handler. More...
 
 octoclock_eeprom_t (transport::udp_simple::sptr transport, uint32_t proto_ver)
 
void commit () const
 
- Public Member Functions inherited from uhd::dict< Key, Val >
 dict (void)
 
template<typename InputIterator >
 dict (InputIterator first, InputIterator last)
 
std::size_t size (void) const
 
std::vector< Key > keys (void) const
 
std::vector< Val > vals (void) const
 
bool has_key (const Key &key) const
 
const Val & get (const Key &key, const Val &other) const
 
const Val & get (const Key &key) const
 
void set (const Key &key, const Val &val)
 
const Val & operator[] (const Key &key) const
 
Val & operator[] (const Key &key)
 
bool operator== (const dict< Key, Val > &other) const
 
bool operator!= (const dict< Key, Val > &other) const
 
Val pop (const Key &key)
 
void update (const dict< Key, Val > &new_dict, bool fail_on_conflict=true)
 
 operator std::map< Key, Val > () const
 

Detailed Description

The OctoClock EEPROM object: Knows how to read and write the OctoClock EEPROM. 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

◆ octoclock_eeprom_t() [1/2]

uhd::usrp_clock::octoclock_eeprom_t::octoclock_eeprom_t ( void  )

Make a new empty OctoClock EEPROM handler.

◆ octoclock_eeprom_t() [2/2]

uhd::usrp_clock::octoclock_eeprom_t::octoclock_eeprom_t ( transport::udp_simple::sptr  transport,
uint32_t  proto_ver 
)

Make a new OctoClock EEPROM handler.

Parameters
transportthe UDP transport to the OctoClock
proto_verfirmware protocol version

Member Function Documentation

◆ commit()

void uhd::usrp_clock::octoclock_eeprom_t::commit ( ) const

Write the contents of this object to the EEPROM.


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