mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-13 22:12:52 +01:00
rtl_tcp: add handlers for sample rate and gain mode commands
This commit is contained in:
parent
9167a01248
commit
e5adc9a3ad
@ -279,6 +279,14 @@ static void *command_worker(void *arg)
|
|||||||
printf("set freq %d\n", cmd.param);
|
printf("set freq %d\n", cmd.param);
|
||||||
rtlsdr_set_center_freq(dev, cmd.param);
|
rtlsdr_set_center_freq(dev, cmd.param);
|
||||||
break;
|
break;
|
||||||
|
case 0x02:
|
||||||
|
printf("set sample rate %d\n", cmd.param);
|
||||||
|
rtlsdr_set_sample_rate(dev, cmd.param);
|
||||||
|
break;
|
||||||
|
case 0x03:
|
||||||
|
printf("set gain mode %d\n", cmd.param);
|
||||||
|
rtlsdr_set_tuner_gain_mode(dev, cmd.param);
|
||||||
|
break;
|
||||||
case 0x04:
|
case 0x04:
|
||||||
printf("set gain %d\n", cmd.param);
|
printf("set gain %d\n", cmd.param);
|
||||||
rtlsdr_set_tuner_gain(dev, cmd.param);
|
rtlsdr_set_tuner_gain(dev, cmd.param);
|
||||||
|
Loading…
Reference in New Issue
Block a user