USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-g6563c537
UHD and USRP Manual
octoclock_eeprom.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2014 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #ifndef INCLUDED_UHD_USRP_CLOCK_OCTOCLOCK_EEPROM_HPP
9 #define INCLUDED_UHD_USRP_CLOCK_OCTOCLOCK_EEPROM_HPP
10 
11 #include <uhd/config.hpp>
13 #include <uhd/types/dict.hpp>
14 #include <string>
15 
16 namespace uhd { namespace usrp_clock {
17 
25 class UHD_API octoclock_eeprom_t : public uhd::dict<std::string, std::string>
26 {
27 public:
29  octoclock_eeprom_t(void);
30 
36  octoclock_eeprom_t(transport::udp_simple::sptr transport, uint32_t proto_ver);
37 
41  void commit() const;
42 
43 private:
45  uint32_t _proto_ver;
46  void _load();
47  void _store() const;
48 };
49 
50 }} // namespace uhd::usrp_clock
51 
52 #endif /* INCLUDED_UHD_USRP_CLOCK_OCTOCLOCK_EEPROM_HPP */
Definition: dict.hpp:20
Definition: build_info.hpp:13
#define UHD_API
Definition: config.h:68
boost::shared_ptr< udp_simple > sptr
Definition: udp_simple.hpp:22
Definition: octoclock_eeprom.hpp:25