diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2011-06-28 13:40:27 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2011-06-28 13:40:27 (GMT) |
commit | fecdd9457cd3912c2b89aff1f99db0ba669af93b (patch) | |
tree | 34bbc7387ded825e303c3117b6c6da2cbe1fd771 /api/Integrant_ITD3020.c | |
download | AF903x_SRC-fecdd9457cd3912c2b89aff1f99db0ba669af93b.zip AF903x_SRC-fecdd9457cd3912c2b89aff1f99db0ba669af93b.tar.gz AF903x_SRC-fecdd9457cd3912c2b89aff1f99db0ba669af93b.tar.bz2 |
Initial checkin' of sourceball extracted from installer.
DRIVER_RELEASE_VERSION : v9.08.14.1
FW_RELEASE_VERSION : v8_8_63_0
API_RELEASE_VERSION : 200.20090402.0
Not sure what those version numbers relate to.
Might be Driver, the actual driver (src)
FW, the little bin file that is only a keymapping for the remote
API, all the tuners or so from /api?
No support for Asus U3100
mini (yet).
Diffstat (limited to 'api/Integrant_ITD3020.c')
-rw-r--r-- | api/Integrant_ITD3020.c | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/api/Integrant_ITD3020.c b/api/Integrant_ITD3020.c new file mode 100644 index 0000000..e1fcc0d --- /dev/null +++ b/api/Integrant_ITD3020.c @@ -0,0 +1,106 @@ +/** + * @(#)Integrant_ITD3020_EXT.cpp + * + * ========================================================== + * Version: 2.0 + * Date: 2008.07.02 + * ========================================================== + * + * ========================================================== + * History: + * + * Date Author Description + * ---------------------------------------------------------- + * + * 2008.07.02 Tom Lin added tuner version + * ========================================================== + * + * Copyright 2005 Afatech, Inc. All rights reserved. + * + */ + + +//#include <stdio.h> //for Linux +#include "type.h" +#include "error.h" +#include "user.h" +#include "register.h" +#include "standard.h" +#include "ITD30x0.h" +#include "Integrant_ITD3020_Script.h" + + +Demodulator* Integrant_ITD3020_EXT_demodulator; +Byte Integrant_ITD3020_EXT_chip; + + +Dword ITD3020_open ( + IN Demodulator* demodulator, + IN Byte chip +) { + Dword error = Error_NO_ERROR; + Ganymede* ganymede; + + ganymede = (Ganymede*) demodulator; + Integrant_ITD3020_EXT_demodulator = demodulator; + Integrant_ITD3020_EXT_chip = chip; + + AGCMODE = 1; /** If this value = 0, Internal AGC mode. */ + /** If this value = 1, External AGC mode */ + + TUNER_IF = ganymede->tunerDescription->ifFrequency / 1000; + TUNER_RF = 88000; + TUNER_REFCLK = REF_CLK16_384M; + + ITD30x0MP_Tuner_Init(); + + return (error); +} + + +Dword ITD3020_close ( + IN Demodulator* demodulator, + IN Byte chip +) { + return (Error_NO_ERROR); +} + + +Dword ITD3020_set ( + IN Demodulator* demodulator, + IN Byte chip, + IN Word bandwidth, + IN Dword frequency +) { + Dword error = Error_NO_ERROR; + Ganymede* ganymede; + + ganymede = (Ganymede*) demodulator; + Integrant_ITD3020_EXT_demodulator = demodulator; + Integrant_ITD3020_EXT_chip = chip; + + AGCMODE = 1; /** If this value = 0, Internal AGC mode. */ + /** If this value = 1, External AGC mode */ + + TUNER_IF = ganymede->tunerDescription->ifFrequency / 1000; + TUNER_RF = frequency; + TUNER_REFCLK = REF_CLK16_384M; + + SetFreq(TUNER_RF); + + return (error); +} + + +TunerDescription tuner_ITD3020 = { + ITD3020_open, + ITD3020_close, + ITD3020_set, + ITD3020_scripts, + ITD3020_scriptSets, + ITD3020_ADDRESS, /** tuner i2c address */ + 1, /** length of tuner register address */ + 850000, /** tuner if */ + True, /** spectrum inverse */ + 0x24, /** tuner id */ +}; |