/**************************************************************************//*** * @brief Sets the TX LO frequency [MHz]. * * @return None. *******************************************************************************/ void set_tx_lo_freq(double* param, char param_no) // "tx_lo_freq=" command { uint64_t lo_freq_hz; if(param_no >= 1) { lo_freq_hz = param[0]; lo_freq_hz *= 1000000; ad9361_set_tx_lo_freq(ad9361_phy, lo_freq_hz); lo_freq_hz /= 1000000; console_print("tx_lo_freq=%d\n", (uint32_t)lo_freq_hz); } }
/**************************************************************************//*** * @brief Sets the TX LO frequency [MHz]. * * @return None. *******************************************************************************/ void set_tx_lo_freq(double* param, char param_no) // "tx_lo_freq=" command { uint64_t lo_freq_hz; if (ad9361_phy==0) { console_print ("Error: no AD9361 device selected\n"); return; } if(param_no >= 1) { lo_freq_hz = param[0]; lo_freq_hz *= 1000000; ad9361_set_tx_lo_freq(ad9361_phy, lo_freq_hz); lo_freq_hz /= 1000000; console_print("tx_lo_freq=%d\n", (uint32_t)lo_freq_hz); } }