0 | module Bindings.RtlSdr.Raw.Frequency
 1 |
 2 | import Bindings.RtlSdr.Device
 3 |
 4 | %default total
 5 |
 6 | -- RTLSDR_API int rtlsdr_set_xtal_freq(rtlsdr_dev_t *dev, uint32_t rtl_freq, uint32_t tuner_freq);
 7 | export
 8 | %foreign (librtlsdr "set_xtal_freq")
 9 | set_xtal_freq: Ptr RtlSdrHandle -> Int -> Int -> PrimIO Int
10 |
11 | -- RTLSDR_API int rtlsdr_get_xtal_freq(rtlsdr_dev_t *dev, uint32_t *rtl_freq, uint32_t *tuner_freq);
12 | export
13 | %foreign (librtlsdr "get_xtal_freq")
14 | get_xtal_freq: Ptr RtlSdrHandle -> Ptr Int -> Ptr Int -> PrimIO Int
15 |
16 |
17 | -- RTLSDR_API int rtlsdr_set_center_freq(rtlsdr_dev_t *dev, uint32_t freq);
18 | export
19 | %foreign (librtlsdr "set_center_freq")
20 | set_center_freq: Ptr RtlSdrHandle -> Int -> PrimIO Int
21 |
22 | -- RTLSDR_API uint32_t rtlsdr_get_center_freq(rtlsdr_dev_t *dev);
23 | export
24 | %foreign (librtlsdr "get_center_freq")
25 | get_center_freq: Ptr RtlSdrHandle -> PrimIO Int
26 |
27 | -- RTLSDR_API int rtlsdr_set_freq_correction(rtlsdr_dev_t *dev, int ppm);
28 | export
29 | %foreign (librtlsdr "set_freq_correction")
30 | set_freq_correction: Ptr RtlSdrHandle -> Int -> PrimIO Int
31 |
32 | -- RTLSDR_API int rtlsdr_get_freq_correction(rtlsdr_dev_t *dev);
33 | export
34 | %foreign (librtlsdr "get_freq_correction")
35 | get_freq_correction: Ptr RtlSdrHandle -> PrimIO Int
36 |