From bad6fb080b774c680f6d1eda4e1a00dad5a8cd20 Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Wed, 25 Apr 2012 22:32:51 +0200 Subject: introduce api to configure crystal oscillator frequency Usually both, the RTL and the tuner ICs use the same clock. Changing the clock may make sense if you are applying an external clock to the tuner or to compensate the frequency (and samplerate) error caused by the original cheap crystal. This commit covers all tuner drivers except of the Fitipower FC2580 --- include/rtlsdr_i2c.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/rtlsdr_i2c.h') diff --git a/include/rtlsdr_i2c.h b/include/rtlsdr_i2c.h index 56ac9b6..7676689 100644 --- a/include/rtlsdr_i2c.h +++ b/include/rtlsdr_i2c.h @@ -1,9 +1,8 @@ #ifndef __I2C_H #define __I2C_H -typedef struct rtlsdr_dev rtlsdr_dev_t; - -int rtlsdr_i2c_write(rtlsdr_dev_t *dev, uint8_t i2c_addr, uint8_t *buffer, int len); -int rtlsdr_i2c_read(rtlsdr_dev_t *dev, uint8_t i2c_addr, uint8_t *buffer, int len); +uint32_t rtlsdr_get_tuner_clock(void *dev); +int rtlsdr_i2c_write_fn(void *dev, uint8_t addr, uint8_t *buf, int len); +int rtlsdr_i2c_read_fn(void *dev, uint8_t addr, uint8_t *buf, int len); #endif -- cgit v1.3.1