aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/usrp2_iface.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-26 00:17:08 -0700
committerJosh Blum <josh@joshknows.com>2010-04-26 00:17:08 -0700
commit0c609b96574095affe12d9aaa53bead98faba4f3 (patch)
tree9e10b9d6ddabca60b33898514df5948f8ed02b18 /host/lib/usrp/usrp2/usrp2_iface.cpp
parent61ec6711bb4bbae7a8a26cc631eeb88fb3e7d688 (diff)
downloaduhd-0c609b96574095affe12d9aaa53bead98faba4f3.tar.gz
uhd-0c609b96574095affe12d9aaa53bead98faba4f3.tar.bz2
uhd-0c609b96574095affe12d9aaa53bead98faba4f3.zip
Added i2c interface to serial.hpp, using in usrp2_iface for i2c and eeprom.
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_iface.cpp')
-rw-r--r--host/lib/usrp/usrp2/usrp2_iface.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_iface.cpp b/host/lib/usrp/usrp2/usrp2_iface.cpp
index 76ee5d6fe..27b6f8907 100644
--- a/host/lib/usrp/usrp2/usrp2_iface.cpp
+++ b/host/lib/usrp/usrp2/usrp2_iface.cpp
@@ -134,27 +134,6 @@ public:
}
/***********************************************************************
- * EEPROM
- **********************************************************************/
- void write_eeprom(boost::uint8_t addr, boost::uint8_t offset, const byte_vector_t &bytes){
- BOOST_FOREACH(boost::uint8_t byte, bytes){
- //write a byte at a time, its easy that way
- byte_vector_t cmd = boost::assign::list_of(offset)(byte);
- this->write_i2c(addr, cmd);
- }
- }
-
- byte_vector_t read_eeprom(boost::uint8_t addr, boost::uint8_t offset, size_t num_bytes){
- byte_vector_t bytes;
- for (size_t i = 0; i < num_bytes; i++){
- //do a zero byte write to start read cycle
- write_i2c(addr, byte_vector_t(1, offset));
- bytes.push_back(read_i2c(addr, 1).at(0));
- }
- return bytes;
- }
-
-/***********************************************************************
* Send/Recv over control
**********************************************************************/
usrp2_ctrl_data_t ctrl_send_and_recv(const usrp2_ctrl_data_t &out_data){