fprintf(stderr,
"play_sdr, an I/Q recorder for SDRplay RSP receivers\n\n"
"Usage:\t -f frequency_to_tune_to [Hz]\n"
"\t[-s samplerate (default: 2048000 Hz)]\n"
"\t[-g gain (default: 50)]\n"
"\t[-n number of samples to read (default: 0, infinite)]\n"
"\t[-R enable gain reduction (default: 0, disabled)]\n"
"\t[-L RSP LNA enable (default: 0, disabled)]\n"
"\tfilename (a '-' dumps samples to stdout)\n\n");
exit(1);
------------------------------------------------------------------------------------------------
case 'r':
rspMode = atoi(optarg);
break;
case 'l':
rspLNA = atoi(optarg);
------------------------------------------------------------------------------------------------
if (rspMode == 1)
{
mir_sdr_SetParam(201,1);
if (rspLNA == 1)
{
mir_sdr_SetParam(202,0);
}
else
{
mir_sdr_SetParam(202,1);
}
r = mir_sdr_Init(gain, (samp_rate/1e6), (frequency/1e6),
mir_sdr_BW_1_536, mir_sdr_IF_Zero, &samplesPerPacket );
}
else
{
r = mir_sdr_Init((78-gain), (samp_rate/1e6), (frequency/1e6),
mir_sdr_BW_1_536, mir_sdr_IF_Zero, &samplesPerPacket );
}