aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/cores
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-10-24 10:36:41 -0700
committerJosh Blum <josh@joshknows.com>2011-11-03 20:37:13 -0700
commita62645089202ac2ac39a55c48d3876474b54223e (patch)
tree76fb64908218a804aa1cdb476d52068898393ae7 /host/lib/usrp/cores
parentbd08f403e3936d9c35b04f8990605dd49310fbfd (diff)
downloaduhd-a62645089202ac2ac39a55c48d3876474b54223e.tar.gz
uhd-a62645089202ac2ac39a55c48d3876474b54223e.tar.bz2
uhd-a62645089202ac2ac39a55c48d3876474b54223e.zip
usrp: prefer name iq_balance for api call
Diffstat (limited to 'host/lib/usrp/cores')
-rw-r--r--host/lib/usrp/cores/rx_frontend_core_200.cpp2
-rw-r--r--host/lib/usrp/cores/rx_frontend_core_200.hpp2
-rw-r--r--host/lib/usrp/cores/tx_frontend_core_200.cpp2
-rw-r--r--host/lib/usrp/cores/tx_frontend_core_200.hpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/cores/rx_frontend_core_200.cpp b/host/lib/usrp/cores/rx_frontend_core_200.cpp
index bb87cb600..d42022947 100644
--- a/host/lib/usrp/cores/rx_frontend_core_200.cpp
+++ b/host/lib/usrp/cores/rx_frontend_core_200.cpp
@@ -63,7 +63,7 @@ public:
_iface->poke32(REG_RX_FE_OFFSET_Q, flags | _q_dc_off);
}
- void set_correction(const std::complex<double> &cor){
+ void set_iq_balance(const std::complex<double> &cor){
_iface->poke32(REG_RX_FE_MAG_CORRECTION, fs_to_bits(std::abs(cor), 18));
_iface->poke32(REG_RX_FE_PHASE_CORRECTION, fs_to_bits(std::atan2(cor.real(), cor.imag()), 18));
}
diff --git a/host/lib/usrp/cores/rx_frontend_core_200.hpp b/host/lib/usrp/cores/rx_frontend_core_200.hpp
index 73dfbdc72..5755424c8 100644
--- a/host/lib/usrp/cores/rx_frontend_core_200.hpp
+++ b/host/lib/usrp/cores/rx_frontend_core_200.hpp
@@ -37,7 +37,7 @@ public:
virtual std::complex<double> set_dc_offset(const std::complex<double> &off) = 0;
- virtual void set_correction(const std::complex<double> &cor) = 0;
+ virtual void set_iq_balance(const std::complex<double> &cor) = 0;
};
diff --git a/host/lib/usrp/cores/tx_frontend_core_200.cpp b/host/lib/usrp/cores/tx_frontend_core_200.cpp
index 71555e47f..327e8d344 100644
--- a/host/lib/usrp/cores/tx_frontend_core_200.cpp
+++ b/host/lib/usrp/cores/tx_frontend_core_200.cpp
@@ -61,7 +61,7 @@ public:
return std::complex<double>(i_dc_off/scaler, q_dc_off/scaler);
}
- void set_correction(const std::complex<double> &cor){
+ void set_iq_balance(const std::complex<double> &cor){
_iface->poke32(REG_TX_FE_MAG_CORRECTION, fs_to_bits(std::abs(cor), 18));
_iface->poke32(REG_TX_FE_PHASE_CORRECTION, fs_to_bits(std::atan2(cor.real(), cor.imag()), 18));
}
diff --git a/host/lib/usrp/cores/tx_frontend_core_200.hpp b/host/lib/usrp/cores/tx_frontend_core_200.hpp
index f905e447d..8ee0f3e6d 100644
--- a/host/lib/usrp/cores/tx_frontend_core_200.hpp
+++ b/host/lib/usrp/cores/tx_frontend_core_200.hpp
@@ -35,7 +35,7 @@ public:
virtual std::complex<double> set_dc_offset(const std::complex<double> &off) = 0;
- virtual void set_correction(const std::complex<double> &cor) = 0;
+ virtual void set_iq_balance(const std::complex<double> &cor) = 0;
};