diff options
| author | Steve Markgraf <steve@steve-m.de> | 2012-03-31 21:01:25 +0200 |
|---|---|---|
| committer | Steve Markgraf <steve@steve-m.de> | 2012-03-31 21:01:25 +0200 |
| commit | ff7910482453d39a776fbbe2ad79c59e87fa5132 (patch) | |
| tree | c16965b22589a3d7fc7f950ef0ccfc7454500362 /include | |
| parent | c09fbb7c579d95a6b8d1ae319489cb5bc77a2a23 (diff) | |
add support for autoprobing the tuners
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'include')
| -rw-r--r-- | include/tuner_e4000.h | 111 | ||||
| -rw-r--r-- | include/tuner_fc0013.h | 4 |
2 files changed, 7 insertions, 108 deletions
diff --git a/include/tuner_e4000.h b/include/tuner_e4000.h index 4c78f3e..5aa71f5 100644 --- a/include/tuner_e4000.h +++ b/include/tuner_e4000.h @@ -1,120 +1,15 @@ #ifndef __TUNER_E4000_H #define __TUNER_E4000_H -/** - -@file - -@brief E4000 tuner module declaration - -One can manipulate E4000 tuner through E4000 module. -E4000 module is derived from tuner module. - - - -@par Example: -@code - -// The example is the same as the tuner example in tuner_base.h except the listed lines. - - - -#include "tuner_e4000.h" - - -... - - - -int main(void) -{ - TUNER_MODULE *pTuner; - E4000_EXTRA_MODULE *pTunerExtra; - - TUNER_MODULE TunerModuleMemory; - BASE_INTERFACE_MODULE BaseInterfaceModuleMemory; -// I2C_BRIDGE_MODULE I2cBridgeModuleMemory; - - unsigned long BandwidthMode; - - - ... - - - - // Build E4000 tuner module. - BuildE4000Module( - &pTuner, - &TunerModuleMemory, - &BaseInterfaceModuleMemory, - &I2cBridgeModuleMemory, - 0xac, // I2C device address is 0xac in 8-bit format. - CRYSTAL_FREQ_16384000HZ, // Crystal frequency is 16.384 MHz. - E4000_AGC_INTERNAL // The E4000 AGC mode is internal AGC mode. - ); - - - - - - // Get E4000 tuner extra module. - pTunerExtra = (T2266_EXTRA_MODULE *)(pTuner->pExtra); - - - - - - // ==== Initialize tuner and set its parameters ===== - - ... - - // Set E4000 bandwidth. - pTunerExtra->SetBandwidthMode(pTuner, E4000_BANDWIDTH_6MHZ); - - - - - - // ==== Get tuner information ===== - - ... - - // Get E4000 bandwidth. - pTunerExtra->GetBandwidthMode(pTuner, &BandwidthMode); - - - - // See the example for other tuner functions in tuner_base.h - - - return 0; -} - - -@endcode - -*/ - - - - - -//#include "tuner_base.h" - - - - - -// The following context is implemented for E4000 source code. - - // Definition (implemeted for E4000) #define E4000_1_SUCCESS 1 #define E4000_1_FAIL 0 #define E4000_I2C_SUCCESS 1 #define E4000_I2C_FAIL 0 - +#define E4K_I2C_ADDR 0xc8 +#define E4K_CHECK_ADDR 0x02 +#define E4K_CHECK_VAL 0x40 // Function (implemeted for E4000) int diff --git a/include/tuner_fc0013.h b/include/tuner_fc0013.h index b405808..ed89465 100644 --- a/include/tuner_fc0013.h +++ b/include/tuner_fc0013.h @@ -15,6 +15,10 @@ FC0013 module is derived from tuner module. **/ +#define FC0013_I2C_ADDR 0xc6 +#define FC0013_CHECK_ADDR 0x00 +#define FC0013_CHECK_VAL 0xa3 + // Definitions enum FC0013_TRUE_FALSE_STATUS { |
