From 83dde40090e0bbd91c304602cc0e3c365f7878bb Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 26 Sep 2017 18:22:25 -0700 Subject: uhd: Changed mboard_eeprom_t interface, refactored MB EEPROM code - uhd::usrp::mboard_eeprom_t is now simply a map. Its commit() method has no utility being a public API call, because the user never gets access to the appropriate I2C object (Minor API breakage) - The central mboard_eeprom.cpp file was broken up and put into many smaller compilation units in every device's implementation folder. - Renamed some of the constants (e.g. B000_* -> USRP1_*, N100_* -> N200_*) - Removed the N000_* EEPROM code, because, well, you know, there's no such device --- host/lib/usrp/x300/x300_mb_eeprom.hpp | 37 ----------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 host/lib/usrp/x300/x300_mb_eeprom.hpp (limited to 'host/lib/usrp/x300/x300_mb_eeprom.hpp') diff --git a/host/lib/usrp/x300/x300_mb_eeprom.hpp b/host/lib/usrp/x300/x300_mb_eeprom.hpp deleted file mode 100644 index 0649855c6..000000000 --- a/host/lib/usrp/x300/x300_mb_eeprom.hpp +++ /dev/null @@ -1,37 +0,0 @@ -// -// Copyright 2016 Ettus Research LLC -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . -// - -#ifndef INCLUDED_X300_MB_EEPROM_HPP -#define INCLUDED_X300_MB_EEPROM_HPP - -#include -#include -#include -#include -#include - -class x300_mb_eeprom_iface : public uhd::i2c_iface -{ -public: - typedef boost::shared_ptr sptr; - - virtual ~x300_mb_eeprom_iface(void) = 0; - - static sptr make(uhd::wb_iface::sptr wb, uhd::i2c_iface::sptr i2c); -}; - -#endif /* INCLUDED_X300_MB_EEPROM_HPP */ -- cgit v1.2.3