radio_mv114_kst.h
资源名称:8202s.rar [点击查看]
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:2k
源码类别:
DVD
开发平台:
C/C++
- #ifndef __RADIO_MV114_H
- #define __RADIO_MV114_H
- #define INC_SPEED_TIMES 1
- /*add this for easy config.huziqin 2004-4-14*/
- #define _AM_MID_FREQ 450
- #define _AM_TIMES 3
- #define _AM_DIV 16
- #define _AM_FREQ_MIN 522
- #define _AM_FREQ_MAX 1620
- #define _FM_MID_FREQ 1070
- #define _FM_TIMES 5
- #define _FM_FREQ_MIN 8750
- #define _FM_FREQ_MAX 10800
- // formulate: am: 0x2b2-->0x2b2, dec(0x2b2) * ref frequency(3) - IF(450) = 1620khz;
- // fm: 0x7b2-->0x7b2, dec(0x7b2) * ref frequency(25) * 2 - IF( 10700 ) = 87800khz
- #define AM_FREQ_MAX (((_AM_FREQ_MAX+_AM_MID_FREQ)/_AM_TIMES)*_AM_DIV) //0x2b20 // 1620k, ref 3khz
- #define AM_FREQ_MIN (((_AM_FREQ_MIN+_AM_MID_FREQ)/_AM_TIMES)*_AM_DIV) //0x1440 // 522k, ref 3khz
- #define FM_FREQ_MIN ((_FM_FREQ_MIN+_FM_MID_FREQ)/_FM_TIMES)
- #define FM_FREQ_MAX ((_FM_FREQ_MAX+_FM_MID_FREQ)/_FM_TIMES)
- #define SEARCHADD 1
- #define SEARCHDEC 2
- #define AUTOSEARCHUP 1
- #define AUTOSEARCHDOWN 2
- #define NO_MEM_MODE 0
- #define MEM_MODE 1
- #define RECALL_STATION 1
- #define STORAGE_STATION 2
- #define NORMAL_TUNE 1
- #define RECALL_OR_STORE 2
- #define AUTO_SEARCH 3 //2004-7-27
- #define FREQ_DIRECT_CALL 4
- #if defined(XINGQIU_DVD_RECEIVER)
- #define MAX_MEM_BAND 50//xyy 2004-5-24
- #else
- #define MAX_MEM_BAND 20
- #endif
- #define MIN_MEM_BAND 1
- /*start point from 24c02*/
- #define TUNER_START 128
- typedef struct
- {
- /*
- * default memory band
- */
- BYTE memory_status;
- BYTE bandswitch; /*0,fm;1,am*/
- BYTE st_mono; /*0--mono ; 1--st*/
- BYTE Istuning[2];
- //BYTE in2_data1;
- BYTE fm_ch;
- BYTE am_ch;
- UINT16 fmfreq[MAX_MEM_BAND];
- UINT16 amfreq[MAX_MEM_BAND];
- UINT16 ambak;
- UINT16 fmbak;
- UINT16 checksum;
- } t_tuner;
- t_tuner tuner;
- BYTE tuner_mute_flag;
- BYTE station_input_index;
- UINT8 stationNm;
- BYTE recall_store_flag;
- BYTE tuner_oper_mode;
- BYTE tunerflag;
- #if defined(SUPPORT_STATION_INPUT)
- UINT32 uFreqVal;
- #endif
- void output_vfd_msg(void);
- void init_tuner_var(void);
- void disfreq(void);
- void search(BYTE search_status);
- void Fmautosearch( BYTE );
- void Amautosearch( BYTE );
- void tuner_auto_search( void );
- void save_tuner_E2PROM(void);
- void load_tuner_E2PROM(void);
- void tuner_st_mono(void);
- #ifdef SUPPORT_RDS_FUNCTION
- void disp_rds(BYTE enter_flag);
- #endif
- #endif