Mercurial > pt1.oyama
view driver/pt1_tuner_data.h @ 114:3eccf1ef4853
improve checksignal command:
- retries MAX_RETRY times when tuning fails. if device is specified, reties forever.
- notifies signal quality by audible beep.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 19 Mar 2010 16:42:32 +0900 |
parents | 6e661e828b43 |
children |
line wrap: on
line source
#ifndef __PT1_TUNER_DATA_H__ #define __PT1_TUNER_DATA_H__ /***************************************************************************/ /* */ /***************************************************************************/ #define PT1_MAX_ISDB_S_INIT 19 // ISDB-S 初期化データ数 #define PT1_MAX_ISDB_T_INIT 16 // ISDB-T 初期化データ数 #define PT2_MAX_ISDB_S_INIT 18 // ISDB-S 初期化データ数 #define PT2_MAX_ISDB_T_INIT 12 // ISDB-T 初期化データ数 #define MAX_BS_CHANNEL 36 // 周波数テーブル数 #define MAX_ISDB_T_CHANNEL 113 // 周波数テーブル数(地デジタル) #define MAX_BS_CHANNEL_PLL_COMMAND 3 // PLLロックするためのコマンド数 /***************************************************************************/ /* */ /***************************************************************************/ /***************************************************************************/ /* */ /***************************************************************************/ typedef struct _WBLOCK_BS_PLL{ WBLOCK *wblock[MAX_BS_CHANNEL_PLL_COMMAND] ; }WBLOCK_BS_PLL; /***************************************************************************/ /* */ /***************************************************************************/ extern WBLOCK com_initdata; //初期化(共通) extern WBLOCK isdb_s_init1; //ISDB-S先頭 extern WBLOCK isdb_s_init21; //ISDB-S最終 extern WBLOCK isdb_t_init17; //ISDB-T最終 extern WBLOCK bs_pll_lock; //ISDB-S PLLロック確認 extern WBLOCK *isdb_s_initial_pt1[PT1_MAX_ISDB_S_INIT]; extern WBLOCK *isdb_t_initial_pt1[PT1_MAX_ISDB_T_INIT]; extern WBLOCK *isdb_s_initial_pt2[PT2_MAX_ISDB_S_INIT]; extern WBLOCK *isdb_t_initial_pt2[PT2_MAX_ISDB_T_INIT]; /***************************************************************************/ /* BS用データ定義 */ /***************************************************************************/ extern WBLOCK_BS_PLL bs_pll[MAX_BS_CHANNEL] ; // 周波数テーブル extern WBLOCK *bs_get_ts_id[(MAX_BS_TS_ID / 2)] ; // TS-ID取得テーブル extern WBLOCK bs_tmcc_get_1; // TMCC取得テーブル extern WBLOCK bs_tmcc_get_2; // TMCC取得テーブル extern WBLOCK bs_get_ts_lock; extern WBLOCK bs_set_ts_lock; extern WBLOCK bs_get_slot; extern WBLOCK bs_get_clock; extern WBLOCK bs_get_carrir; extern WBLOCK bs_get_signal1; extern WBLOCK bs_get_signal2; extern WBLOCK bs_get_agc; /***************************************************************************/ /* 地デジ用データ定義 */ /***************************************************************************/ extern WBLOCK isdb_t_pll_base; // 地デジ用周波数テーブルbase extern WBLOCK isdb_t_pll_lock; extern WBLOCK_BS_PLL isdb_t_info[MAX_ISDB_T_INFO_LEN]; extern WBLOCK isdb_t_check_tune; extern WBLOCK isdb_t_tune_read; extern WBLOCK isdb_t_tmcc_read_1; extern WBLOCK isdb_t_tmcc_read_1; extern WBLOCK isdb_t_signal1; extern WBLOCK isdb_t_signal2; extern WBLOCK isdb_t_agc2; extern WBLOCK isdb_t_get_clock; extern WBLOCK isdb_t_get_carrir; /***************************************************************************/ /* 省電力用データ定義 */ /***************************************************************************/ extern WBLOCK isdb_s_wake; extern WBLOCK isdb_t_wake; extern WBLOCK isdb_s_wake2; extern WBLOCK isdb_t_wake2; extern WBLOCK isdb_s_sleep; extern WBLOCK isdb_t_sleep; extern ISDB_S_CH_TABLE isdb_t_table[11]; #endif