⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tuner_rh_reg.h

📁 模拟高频头的 驱动程序(搜台、换台等功能)
💻 H
字号:
/******************************************************************************/
/**
 * @file    tuner_rh_reg.h
 *
 * @brief   Tuner Driver Functions of Layer 2.
 *          Updated by Register Handler.
 *
 * @note    (c) 2005 - 2008 Micronas GmbH. All rights reserved.
 *          Any use of the Software is permitted only in accordance
 *          with the terms set forth in the Disclaimer text file.
 *
 * @author  ACOM software team
 ******************************************************************************/

#ifndef __TUNER_RH_REG_H__
#define __TUNER_RH_REG_H__



/******************************************************************************/
/*****************                                           ******************/
/*****************     BEGIN of Register Handler Section     ******************/
/*****************     =================================     ******************/
/*****************                                           ******************/
/******************************************************************************/

/*[#RH_SECTION_BEGIN]*/



/*====================================================================================================================*/
/*[#RHOH_REG - Tuner]  Ver. 3.1.19 */

   /* Register Type ID's */

   #define TUNER_REGTYPE_I2C8   0x01


   /* 'Number of' and 'Size' Constants */
#ifdef __AD_TUNER_ALPS__
   #define TUNER_NUM_REGISTERS       6
   #define TUNER_NUM_VARIABLES       5
   #define TUNER_NUM_BITSLICES       19
#else
   #define TUNER_NUM_REGISTERS       5
   #define TUNER_NUM_VARIABLES       4
   #define TUNER_NUM_BITSLICES       13
#endif
   #define TUNER_NUM_HIDDEN          0


   /* 'Control' Constants */

   #define TUNER_CTRL_SIGNED          0x80
   #define TUNER_CTRL_READ            0x40
   #define TUNER_CTRL_WRITE           0x20
   #define TUNER_CTRL_SHIFT           0x1F

   /* Register Type */

   typedef struct _TUNER_t
   {
      uint8_t  uCtrl;     /* TUNER_CTRL_SIGNED, .._READ, .._WRITE, .._SHIFT */
      uint8_t  uType;     /* Register Type */
      uint8_t  uMask;     /* Mask within hardware register */
      uint8_t  uAddr;     /* Address */
      uint8_t  uVar;      /* Index of Shadow variable (0 = no variable) */
   } TUNER_t;


   /* Bitslice Identifiers (index for tuner[]) */

   typedef enum
   {
      TUNER_NOTHING = 0,
      TUNER_Por,
      TUNER_Fl,
      TUNER_A2_0,
      TUNER_ProgDividerByte1Const,
      TUNER_ProgDividerByte1_14_8,
      TUNER_ProgDividerByte2_7_0,
      TUNER_ControlByte1Const,
      TUNER_Chp,
      TUNER_T2_0,
      TUNER_RsaRsb,
      TUNER_Os,
      TUNER_ControlByte2NotUsed,
    #ifdef __AD_TUNER_ALPS__
      TUNER_ControlByte2Chp1_0,
      TUNER_BandPorts2_0,
      TUNER_ControlByte3NotUsed,
      TUNER_IFBW2_1,
      TUNER_CP2,
      TUNER_ControlByte3Const,
      TUNER_POW
    #else
      TUNER_BandPorts2_0
    #endif 
   } TUNER_ID_t;


   /* Bitslice and Shadow Variable Declaration */

#ifdef __AD_TUNER_ALPS__
   extern uint8_t tunerVar [6];
   extern code TUNER_t tuner [20];
#else
   extern uint8_t tunerVar [5];
   extern code TUNER_t tuner [14];
#endif

/*[#RH_END]*/
/*====================================================================================================================*/



/*[#RH_SECTION_END]*/

/******************************************************************************/
/*****************                                         ********************/
/*****************     END of Register Handler Section     ********************/
/*****************     ===============================     ********************/
/*****************                                         ********************/
/******************************************************************************/


#endif   /* __TUNER_RH_REG_H__ */

⌨️ 快捷键说明

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