From c348a98c8004e7ac9d28231ae80dadef415440ef Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Wed, 28 Jul 2010 11:48:00 -0700 Subject: Added gain range property to rx_codec_get. --- host/lib/usrp/usrp2/codec_impl.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/lib') diff --git a/host/lib/usrp/usrp2/codec_impl.cpp b/host/lib/usrp/usrp2/codec_impl.cpp index b246a35f8..5cc7a47ec 100644 --- a/host/lib/usrp/usrp2/codec_impl.cpp +++ b/host/lib/usrp/usrp2/codec_impl.cpp @@ -78,6 +78,11 @@ void usrp2_mboard_impl::rx_codec_get(const wax::obj &key_, wax::obj &val){ val = _codec_rx_gains[name]; return; + case CODEC_PROP_GAIN_RANGE: + assert_has(codec_rx_gain_ranges.keys(), name, "codec rx gain range name"); + val = codec_rx_gain_ranges[name]; + return; + default: UHD_THROW_PROP_GET_ERROR(); } } -- cgit v1.2.3