diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-15 22:23:04 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-15 22:23:04 -0700 |
commit | a80a62dfe6ebfe5a814c71880b83b64a6bee0d0a (patch) | |
tree | a8d8e6105ad54608883e85f0e2e17ffeb99089fe /host/include | |
parent | 58519b292b561cbec5eb41c85f85c8c6bd4a06fe (diff) | |
download | uhd-a80a62dfe6ebfe5a814c71880b83b64a6bee0d0a.tar.gz uhd-a80a62dfe6ebfe5a814c71880b83b64a6bee0d0a.tar.bz2 uhd-a80a62dfe6ebfe5a814c71880b83b64a6bee0d0a.zip |
usrp: use different priority policies for gain group (rx vs tx)
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/usrp/misc_utils.hpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/host/include/uhd/usrp/misc_utils.hpp b/host/include/uhd/usrp/misc_utils.hpp index 14db80162..2af9f5b40 100644 --- a/host/include/uhd/usrp/misc_utils.hpp +++ b/host/include/uhd/usrp/misc_utils.hpp @@ -26,9 +26,23 @@ namespace uhd{ namespace usrp{ /*! + * Different policies for gain group prioritization. + */ + enum gain_group_policy_t{ + GAIN_GROUP_POLICY_RX = 'R', + GAIN_GROUP_POLICY_TX = 'T' + }; + + /*! * Create a gain group that represents the subdevice and its codec. + * \param subdev the object with subdevice properties + * \param codec the object with codec properties + * \param gain_group_policy the policy to use */ - UHD_API gain_group::sptr make_gain_group(wax::obj subdev, wax::obj codec); + UHD_API gain_group::sptr make_gain_group( + wax::obj subdev, wax::obj codec, + gain_group_policy_t gain_group_policy + ); /*! * Verify the rx subdevice specification. |