diff options
author | jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-12-31 22:19:48 +0000 |
---|---|---|
committer | jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-12-31 22:19:48 +0000 |
commit | 5eb35d758f7bf08b821479d11a8784689eef239c (patch) | |
tree | 5746da92ca312c4615b81503ef24f822e21d2a8a /usrp2/host/lib/usrp2.cc | |
parent | be2af97adb04146243019b5d3eb8bc44ca44e1a4 (diff) |
For USRP2, implement auto scaling of TX pipeline such that [-1.0 1.0] input to
usrp2.sink_32fc results in full-scale DAC outputs, regardless of interpolation
rate.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10182 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/host/lib/usrp2.cc')
-rw-r--r-- | usrp2/host/lib/usrp2.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usrp2/host/lib/usrp2.cc b/usrp2/host/lib/usrp2.cc index 2a7fe5963a..90a31b2205 100644 --- a/usrp2/host/lib/usrp2.cc +++ b/usrp2/host/lib/usrp2.cc @@ -309,6 +309,12 @@ namespace usrp2 { return d_impl->tx_interp(); } + void + usrp2::default_tx_scale_iq(int interpolation_factor, int *scale_i, int *scale_q) + { + d_impl->default_tx_scale_iq(interpolation_factor, scale_i, scale_q); + } + bool usrp2::set_tx_scale_iq(int scale_i, int scale_q) { |