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/driver_tua9001.h | |
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/driver_tua9001.h')
-rw-r--r-- | api/driver_tua9001.h | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/api/driver_tua9001.h b/api/driver_tua9001.h new file mode 100644 index 0000000..75e8c8a --- /dev/null +++ b/api/driver_tua9001.h @@ -0,0 +1,112 @@ +/* ============================================================================ +** Copyright (C) 1997-2007 Infineon AG All rights reserved. +** ============================================================================ +** +** ============================================================================ +** Revision Information : +** File name: driver_tua9001.h +** Version: +** Date: +** +** ============================================================================ +** History: +** +** Date Author Comment +** ---------------------------------------------------------------------------- +** +** 2007.11.06 Walter Pichler created. +** ============================================================================ +*/ + + +/*============================================================================ + Named Constants Definitions +============================================================================*/ + +#define TUNER_OK 0 +#define TUNER_ERR 0xff + +#define H_LEVEL 1 +#define L_LEVEL 0 + + +/*============================================================================ + Types definition +============================================================================*/ + + +typedef enum { + TUNER_BANDWIDTH_8MHZ, + TUNER_BANDWIDTH_7MHZ, + TUNER_BANDWIDTH_6MHZ, + TUNER_BANDWIDTH_5MHZ, + } tunerDriverBW_t; + + +typedef enum { + PLL_LOCKED, + PLL_NOT_LOCKED + }tunerPllLocked_t; + + +typedef enum { + STANDBY, + IDLE, + RX + } tunerReceiverState_t; + + +typedef enum { + L_INPUT_ACTIVE, + UHF_INPUT_ACTIVE, + VHF_INPUT_ACTIVE + } tunerActiveInput_t; + + + +/*============================================================================ + Public functions +============================================================================*/ + +/** + * tuner initialisation + * @retval TUNER_OK No error + * @retval TUNER__ERROR Error +*/ +extern int initializeTua9001 (void); + + +/** + * tuner tune + * @param i_freq tuning frequency + * @param i_bandwidth channel bandwidth + * @retval TUNER_OK No error + * @retval TUNER__ERROR Error +*/ +extern int tuneTua9001 (long i_freq, tunerDriverBW_t i_bandwidth); + + +/** + * Get tuner state + * @param o_tunerState tuner state + * @retval TUNER_OK No error + * @retval TUNER__ERROR Error +*/ +extern int getReceiverStateTua9001 (tunerReceiverState_t *o_tunerState); + +/** + * Get active input + * @param o_activeInput active input info + * @retval TUNER_OK No error + * @retval TUNER__ERROR Error +*/ +extern int getActiveInputTua9001 (tunerActiveInput_t *o_activeInput); + + +/** + * Get baseband gain value + * @param o_basebandGain baseband gain value + * @retval TUNER_OK No error + * @retval TUNER__ERROR Error +*/ +extern int getBasebandGainTua9001 (char *o_basebandGain); |