Revision a6ec6e25 host/lib/usrp/dboard/db_wbx_version4.cpp
| b/host/lib/usrp/dboard/db_wbx_version4.cpp | ||
|---|---|---|
| 1 | 1 |
// |
| 2 |
// Copyright 2011 Ettus Research LLC |
|
| 2 |
// Copyright 2011-2012 Ettus Research LLC
|
|
| 3 | 3 |
// |
| 4 | 4 |
// This program is free software: you can redistribute it and/or modify |
| 5 | 5 |
// it under the terms of the GNU General Public License as published by |
| ... | ... | |
| 85 | 85 |
//////////////////////////////////////////////////////////////////// |
| 86 | 86 |
// Register RX properties |
| 87 | 87 |
//////////////////////////////////////////////////////////////////// |
| 88 |
this->get_rx_subtree()->create<std::string>("name").set("WBX RX v4");
|
|
| 88 |
this->get_rx_subtree()->create<std::string>("name").set("WBXv4 RX");
|
|
| 89 | 89 |
this->get_rx_subtree()->create<double>("freq/value")
|
| 90 | 90 |
.coerce(boost::bind(&wbx_base::wbx_version4::set_lo_freq, this, dboard_iface::UNIT_RX, _1)) |
| 91 | 91 |
.set((wbx_v4_freq_range.start() + wbx_v4_freq_range.stop())/2.0); |
| ... | ... | |
| 94 | 94 |
//////////////////////////////////////////////////////////////////// |
| 95 | 95 |
// Register TX properties |
| 96 | 96 |
//////////////////////////////////////////////////////////////////// |
| 97 |
this->get_tx_subtree()->create<std::string>("name").set("WBX TX v4");
|
|
| 97 |
this->get_tx_subtree()->create<std::string>("name").set("WBXv4 TX");
|
|
| 98 | 98 |
BOOST_FOREACH(const std::string &name, wbx_v4_tx_gain_ranges.keys()){
|
| 99 | 99 |
self_base->get_tx_subtree()->create<double>("gains/"+name+"/value")
|
| 100 | 100 |
.coerce(boost::bind(&wbx_base::wbx_version4::set_tx_gain, this, _1, name)) |
Also available in: Unified diff