tuner_ls_bf203s.h

来自「这是T118和T103的通用程序」· C头文件 代码 · 共 44 行

H
44
字号
//==================== Listen LS_BF203S ====================
//------- Address BYTE (ADB)
#define TUNER_ADB                 0xC2                        // (ADB) Tuner Address
  
//------- Control information BYTE1 (CB1)
#define TUNER_RS                  TUNER_RS_6250               // Ratio select bits
#define TUNER_CB1                 0x08 | TUNER_T0 | TUNER_RS  // (CB1) Control information BYTE 1
  
//------- Control information BYTE2 (CB2)
// Band Switching
#define TUNER_BS_L_BAND           0x01                        // Band switching value in low band
#define TUNER_BS_M_BAND           0x02                        // Band switching value in middle band
#define TUNER_BS_H_BAND           0x08                        // Band switching value in high band
  
// Frequency limit of band
#define TUNER_L_BAND_MIN_FREQ     FREQ_NTSC( 55.25, MHZ)      // Minimum frequency of low band
#define TUNER_M_BAND_MIN_FREQ     FREQ_NTSC(133.25, MHZ)      // Minimum frequency of middle band
#define TUNER_H_BAND_MIN_FREQ     FREQ_NTSC(367.25, MHZ)      // Minimum frequency of high band

//------- AFC control function
#define TUNER_AFC_CONTROL         ON                          // AFC control function

// -----------------------------------------------------------------------------
//   Tuner Related Parameter Declaration
// -----------------------------------------------------------------------------
//------- Define tuner type according to selected tuner module
#if  (TUNER == TUNER_NONE)
  #define TUNER_TYPE                TUNER_NONE
#elif(TUNER <  TUNER_NTSC)
  #define TUNER_TYPE                TUNER_NTSC
#elif(TUNER <  TUNER_PAL )
  #define TUNER_TYPE                TUNER_PAL
#endif

//------- Dedine tuning step-size according to tuner ratio select bits
#if   (TUNER_RS==TUNER_RS_50)
	#define TUNER_DIV_RATIO           FREQ( 50.00, KHZ)
#elif (TUNER_RS==TUNER_RS_3125)
	#define TUNER_DIV_RATIO           FREQ( 31.25, KHZ)
#elif (TUNER_RS==TUNER_RS_6250)
	#define TUNER_DIV_RATIO           FREQ( 62.50, KHZ)
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?