Revision 45a40a0f host/lib/usrp/multi_usrp.cpp
| b/host/lib/usrp/multi_usrp.cpp | ||
|---|---|---|
| 567 | 567 |
} |
| 568 | 568 |
} |
| 569 | 569 |
|
| 570 |
void set_rx_correction(const std::complex<double> &offset, size_t chan){
|
|
| 571 |
if (chan != ALL_CHANS){
|
|
| 572 |
_tree->access<std::complex<double> >(rx_rf_fe_root(chan).branch_path() / "correction" / "value").set(offset); |
|
| 573 |
return; |
|
| 574 |
} |
|
| 575 |
for (size_t c = 0; c < get_rx_num_channels(); c++){
|
|
| 576 |
this->set_rx_correction(offset, c); |
|
| 577 |
} |
|
| 578 |
} |
|
| 579 |
|
|
| 570 | 580 |
/******************************************************************* |
| 571 | 581 |
* TX methods |
| 572 | 582 |
******************************************************************/ |
| ... | ... | |
| 691 | 701 |
} |
| 692 | 702 |
} |
| 693 | 703 |
|
| 704 |
void set_tx_correction(const std::complex<double> &offset, size_t chan){
|
|
| 705 |
if (chan != ALL_CHANS){
|
|
| 706 |
_tree->access<std::complex<double> >(tx_rf_fe_root(chan).branch_path() / "correction" / "value").set(offset); |
|
| 707 |
return; |
|
| 708 |
} |
|
| 709 |
for (size_t c = 0; c < get_tx_num_channels(); c++){
|
|
| 710 |
this->set_tx_correction(offset, c); |
|
| 711 |
} |
|
| 712 |
} |
|
| 713 |
|
|
| 694 | 714 |
private: |
| 695 | 715 |
device::sptr _dev; |
| 696 | 716 |
property_tree::sptr _tree; |
Also available in: Unified diff