librtlsdr  UNKNOWN
RTL-SDR library
convenience.h
1 /*
2  * Copyright (C) 2014 by Kyle Keen <keenerd@gmail.com>
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /* a collection of user friendly tools */
19 
27 double atofs(char *s);
28 
36 double atoft(char *s);
37 
45 double atofp(char *s);
46 
55 int nearest_gain(rtlsdr_dev_t *dev, int target_gain);
56 
65 int verbose_set_frequency(rtlsdr_dev_t *dev, uint32_t frequency);
66 
75 int verbose_set_sample_rate(rtlsdr_dev_t *dev, uint32_t samp_rate);
76 
85 int verbose_direct_sampling(rtlsdr_dev_t *dev, int on);
86 
94 int verbose_offset_tuning(rtlsdr_dev_t *dev);
95 
103 int verbose_auto_gain(rtlsdr_dev_t *dev);
104 
113 int verbose_gain_set(rtlsdr_dev_t *dev, int gain);
114 
123 int verbose_ppm_set(rtlsdr_dev_t *dev, int ppm_error);
124 
132 int verbose_reset_buffer(rtlsdr_dev_t *dev);
133 
141 int verbose_device_search(char *s);
142