From 814a5c40c6fbaedba3dafabbe30d00a05af6a274 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 22 Feb 2011 10:19:09 -0800 Subject: uhd: added 9 byte serial to dboard eeprom class --- host/include/uhd/usrp/dboard_eeprom.hpp | 7 ++++--- host/include/uhd/utils/algorithm.hpp | 14 -------------- 2 files changed, 4 insertions(+), 17 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/usrp/dboard_eeprom.hpp b/host/include/uhd/usrp/dboard_eeprom.hpp index 108027b46..bbad0eee4 100644 --- a/host/include/uhd/usrp/dboard_eeprom.hpp +++ b/host/include/uhd/usrp/dboard_eeprom.hpp @@ -26,11 +26,12 @@ namespace uhd{ namespace usrp{ struct UHD_API dboard_eeprom_t{ - /*! - * The dboard id that was read from eeprom or will be set to eeprom. - */ + //! The ID for the daughterboard type dboard_id_t id; + //! The unique serial number + std::string serial; + /*! * Create a dboard eeprom struct from the bytes read out of eeprom. * The constructor will parse out the dboard id from a vector of bytes. diff --git a/host/include/uhd/utils/algorithm.hpp b/host/include/uhd/utils/algorithm.hpp index 5e2230371..d3a07db96 100644 --- a/host/include/uhd/utils/algorithm.hpp +++ b/host/include/uhd/utils/algorithm.hpp @@ -29,20 +29,6 @@ */ namespace std{ - /*! - * A wrapper around std::copy that takes ranges instead of iterators. - * - * Copy the elements of the source range into the destination range. - * The destination range should be at least as large as the source range. - * - * \param src the range of elements to copy from - * \param dst the range of elements to be filled - */ - template inline - void copy(const RangeSrc &src, RangeDst &dst){ - std::copy(boost::begin(src), boost::end(src), boost::begin(dst)); - } - /*! * A wrapper around std::sort that takes a range instead of an iterator. * -- cgit v1.2.3