123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- /**
- * Copyright(c) 2011 Sunmedia Technologies - All Rights Reserved.
- *
- * @file
- * Common macros, declarations and definitions of Analog Database.
- *
- * @author jun.luo
- *
- */
- #ifndef _ADB_H_
- #define _ADB_H_
- #include "db_common.h"
- #ifdef __cplusplus
- extern "C"{
- #endif
- /**
- * @addtogroup ADB_APIS Common macros, declarations and definitions of Analog Database.
- * @{
- */
- /** Exported constants */
- enum {
- ADB_MAGIC_CODE = 0xbabeface, /**< used to judge the analog DB whether be initialized */
- /** Values for frequency scan range */
- ADB_FREQUENCY_MIN = 44250000, /**<DRV_MAIN_TUNER_RF_MIN - 1000000 */
- ADB_FREQUENCY_MAX = 870000000 /**< DRV_MAIN_TUNER_RF_MAX + 500000 */
- };
- /** Type define of Colour system type */
- typedef enum {
- ADB_COLOR_SYSTEM_AUTO = 0,
- ADB_COLOR_SYSTEM_PAL,
- ADB_COLOR_SYSTEM_SECAM,
- ADB_COLOR_SYSTEM_MAX,
- } colorSystem_t;
- /** Type define of Sound system type */
- typedef enum {
- ADB_SOUND_SYSTEM_AUTO = 0,
- ADB_SOUND_SYSTEM_BG,
- ADB_SOUND_SYSTEM_DK,
- ADB_SOUND_SYSTEM_I,
- ADB_SOUND_SYSTEM_L,
- ADB_SOUND_SYSTEM_L1,
- ADB_SOUND_SYSTEM_MAX,
- } soundSystem_t;
- /** Type define of audio format */
- typedef enum{
- ADB_AUDIO_SIF_MODE_ANALOG_MONO = 0,
- ADB_AUDIO_SIF_MODE_NICAM_MONO,
- ADB_AUDIO_SIF_MODE_STEREO,
- ADB_AUDIO_SIF_MODE_DUAL_I,
- ADB_AUDIO_SIF_MODE_DUAL_II,
- ADB_AUDIO_SIF_MODE_DUAL_I_II,
- ADB_AUDIO_SIF_MODE_SAP,
- ADB_AUDIO_SIF_MODE_MAX,
- } multiAudio_t;
- /** Analog Service details define */
- typedef struct // __attribute__ ((packed))
- {
- UINT32 u32Freq;
- UINT8 inuse :1;
- UINT8 soundSystem :4; /**< refer to soundSystem_t */
- UINT8 fav1 :1;
- UINT8 fav2 :1;
- UINT8 fav3 :1;
- UINT8 fav4 :1;
- UINT8 lock :1;
- UINT8 del :1;
- UINT8 AFC :1;
- UINT8 skip :1;
- UINT8 mov :1;
- UINT8 colorSystem :4; /**< refer to colorSystem_t */
- UINT8 multiAudio :4; /**< refer to multiAudio_t */
- UINT8 available :1; /**< This means usable or not*/
- UINT8 tvtype :1; /**< 0: air atv 1: cable atv */
- UINT8 szChannelName[DB_ATV_MAX_CHNAME_LEN];
- } SADBServInfo_t;
- /**
- * @}
- */
- #ifdef __cplusplus
- }
- #endif
- #endif
|