Revision 09de3c07 host/lib/usrp/dboard/db_sbx_version4.cpp
| b/host/lib/usrp/dboard/db_sbx_version4.cpp | ||
|---|---|---|
| 168 | 168 |
UHD_ASSERT_THROW(rfdivsel_to_enum.has_key(RFdiv)); |
| 169 | 169 |
regs.rf_divider_select = rfdivsel_to_enum[RFdiv]; |
| 170 | 170 |
|
| 171 |
//reset the N and R counter |
|
| 172 |
regs.counter_reset = adf4351_regs_t::COUNTER_RESET_ENABLED; |
|
| 173 |
self_base->get_iface()->write_spi(unit, spi_config_t::EDGE_RISE, regs.get_reg(2), 32); |
|
| 174 |
regs.counter_reset = adf4351_regs_t::COUNTER_RESET_DISABLED; |
|
| 175 |
|
|
| 171 | 176 |
//write the registers |
| 172 | 177 |
//correct power-up sequence to write registers (5, 4, 3, 2, 1, 0) |
| 173 | 178 |
int addr; |
Also available in: Unified diff