|
|
@ -522,7 +522,7 @@ int main(int argc, char **argv) {
|
|
|
|
cuhd_set_master_clock_rate(uhd, srate);
|
|
|
|
cuhd_set_master_clock_rate(uhd, srate);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
printf("Setting sampling rate %.2f MHz\n", (float) srate/1000000);
|
|
|
|
printf("Setting sampling rate %.2f MHz\n", (float) srate/1000000);
|
|
|
|
float srate_uhd = cuhd_set_rx_srate(uhd, (double) srate);
|
|
|
|
float srate_uhd = cuhd_set_tx_srate(uhd, (double) srate);
|
|
|
|
if (srate_uhd != srate) {
|
|
|
|
if (srate_uhd != srate) {
|
|
|
|
fprintf(stderr, "Could not set sampling rate\n");
|
|
|
|
fprintf(stderr, "Could not set sampling rate\n");
|
|
|
|
exit(-1);
|
|
|
|
exit(-1);
|
|
|
@ -531,7 +531,6 @@ int main(int argc, char **argv) {
|
|
|
|
fprintf(stderr, "Invalid number of PRB %d\n", cell.nof_prb);
|
|
|
|
fprintf(stderr, "Invalid number of PRB %d\n", cell.nof_prb);
|
|
|
|
exit(-1);
|
|
|
|
exit(-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
printf("Set TX gain: %.1f dB\n", cuhd_set_tx_gain(uhd, uhd_gain));
|
|
|
|
printf("Set TX gain: %.1f dB\n", cuhd_set_tx_gain(uhd, uhd_gain));
|
|
|
|
printf("Set TX freq: %.2f MHz\n",
|
|
|
|
printf("Set TX freq: %.2f MHz\n",
|
|
|
|
cuhd_set_tx_freq(uhd, uhd_freq) / 1000000);
|
|
|
|
cuhd_set_tx_freq(uhd, uhd_freq) / 1000000);
|
|
|
|