Revision b6dae16e host/lib/usrp/usrp2/clock_ctrl.cpp
| b/host/lib/usrp/usrp2/clock_ctrl.cpp | ||
|---|---|---|
| 212 | 212 |
std::vector<double> get_rates_tx_dboard_clock(void){
|
| 213 | 213 |
return get_rates_rx_dboard_clock(); //same master clock, same dividers... |
| 214 | 214 |
} |
| 215 |
|
|
| 216 |
void enable_test_clock(bool enb) {
|
|
| 217 |
_ad9510_regs.power_down_lvpecl_out0 = enb? |
|
| 218 |
ad9510_regs_t::POWER_DOWN_LVPECL_OUT0_NORMAL : |
|
| 219 |
ad9510_regs_t::POWER_DOWN_LVPECL_OUT0_SAFE_PD; |
|
| 220 |
_ad9510_regs.output_level_lvpecl_out0 = ad9510_regs_t::OUTPUT_LEVEL_LVPECL_OUT0_810MV; |
|
| 221 |
_ad9510_regs.divider_low_cycles_out0 = 0; |
|
| 222 |
_ad9510_regs.divider_high_cycles_out0 = 0; |
|
| 223 |
_ad9510_regs.bypass_divider_out0 = 1; |
|
| 224 |
this->write_reg(0x3c); |
|
| 225 |
this->write_reg(0x48); |
|
| 226 |
this->write_reg(0x49); |
|
| 227 |
} |
|
| 215 | 228 |
|
| 216 | 229 |
/*! |
| 217 | 230 |
* If we are to use an external reference, enable the charge pump. |
Also available in: Unified diff