1 #ifndef __TUNER_FC2580_H
2 #define __TUNER_FC2580_H
4 #define BORDER_FREQ 2600000 //2.6GHz : The border frequency which determines whether Low VCO or High VCO is used
5 #define USE_EXT_CLK 0 //0 : Use internal XTAL Oscillator / 1 : Use External Clock input
8 #define FC2580_I2C_ADDR 0xac
9 #define FC2580_CHECK_ADDR 0x01
10 #define FC2580_CHECK_VAL 0x56
22 } fc2580_fci_result_type;
30 extern void fc2580_wait_msec(void *pTuner, int a);
32 fc2580_fci_result_type fc2580_i2c_write(void *pTuner, unsigned char reg, unsigned char val);
33 fc2580_fci_result_type fc2580_i2c_read(void *pTuner, unsigned char reg, unsigned char *read_data);
35 /*==============================================================================
36 fc2580 initial setting
38 This function is a generic function which gets called to initialize
40 fc2580 in DVB-H mode or L-Band TDMB mode
47 2 : Voltage Control Mode
49 ==============================================================================*/
50 fc2580_fci_result_type fc2580_set_init(void *pTuner, int ifagc_mode, unsigned int freq_xtal );
52 /*==============================================================================
53 fc2580 frequency setting
55 This function is a generic function which gets called to change LO Frequency
57 of fc2580 in DVB-H mode or L-Band TDMB mode
62 Value of target LO Frequency in 'kHz' unit
65 ==============================================================================*/
66 fc2580_fci_result_type fc2580_set_freq(void *pTuner, unsigned int f_lo, unsigned int freq_xtal );
69 /*==============================================================================
70 fc2580 filter BW setting
72 This function is a generic function which gets called to change Bandwidth
74 frequency of fc2580's channel selection filter
85 ==============================================================================*/
86 fc2580_fci_result_type fc2580_set_filter( void *pTuner, unsigned char filter_bw, unsigned int freq_xtal );
88 // The following context is FC2580 tuner API source code
94 FC2580_AGC_INTERNAL = 1,
95 FC2580_AGC_EXTERNAL = 2,
100 enum FC2580_BANDWIDTH_MODE
102 FC2580_BANDWIDTH_1530000HZ = 1,
103 FC2580_BANDWIDTH_6000000HZ = 6,
104 FC2580_BANDWIDTH_7000000HZ = 7,
105 FC2580_BANDWIDTH_8000000HZ = 8,
108 // Manipulaing functions
117 unsigned long RfFreqHz
120 // Extra manipulaing functions
122 fc2580_SetBandwidthMode(