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

📄 baidef.hec

📁 这是用Labwindows开发的一个RF test程序。 用于日本机种的组装后ANT 测试。
💻 HEC
📖 第 1 页 / 共 2 页
字号:
/******************************************************************************/
/* SCCS: %Z% Name: %M% Date US: %G% %U% Ver.: %I% */
/******************************************************************************/
/*F(*************************************************************************** 
 * File name : baidef.hic
 * Project :   NELDAH
 * Module :    BAI
 * Date : (US) %G% %U%
 * Version : %I%
 * Compiler name and release(s) :
 *----------------------------------------------------------------------------* 
 *----------------------------------------------------------------------------* 
 *                                    DESCRIPTION
 *
 *----------------------------------------------------------------------------* 
 *----------------------------------------------------------------------------* 
 *                           FUNCTIONS DEFINED IN THIS FILE
 *----------------------------------------------------------------------------* 
 * Name            | Object
 *----------------------------------------------------------------------------* 
 * 
 *----------------------------------------------------------------------------* 
 *----------------------------------------------------------------------------* 
 *                                    EVOLUTION
 *----------------------------------------------------------------------------* 
 * Date     | Author    | Arnb   | Description
 *----------------------------------------------------------------------------* 
 * 17-06-97 | G.AUDIO   |        | Creation                                   *
 * 02-06-99 | N.GANRY   |        | Update for new branch PCF50732             *
 ***************************************************************************)F*/
#ifndef BAIDEF_HEC
#define BAIDEF_HEC


/*----------------------------------------------------------------------*/
/* if the melody drivers want to switch on the audio, the command       */
/* should be : BAI1_0CtrlSetAudioOnMode(mode,BAI_MELODY_ACTIVE_AUDIO)   */
/* if the melody drivers want to switch off the audio, the command      */
/* should be : BAI1_2CtrlSetAudioOff(BAI_MELODY_DEACTIVE_AUDIO)         */
/* if the MMI or ENV wants to switch on the audio, the command          */
/* should be : BAI1_0CtrlSetAudioOnMode(mode,BAI_HEN_ACTIVE_AUDIO)      */
/* or          BAI1_0CtrlSetAudioOnMode(mode,BAI_MMI_ACTIVE_AUDIO)      */
/* if the MMI or ENV wants to switch off the audio, the command         */
/* should be : BAI1_2CtrlSetAudioOff(BAI_HEN_DEACTIVE_AUDIO)            */
/* or          BAI1_2CtrlSetAudioOff(BAI_MMI_DEACTIVE_AUDIO)            */
/* In fact, MMI and ENV have the same codes because they do the same    */
/* work on audio activation/commutation/desactivation                   */
/* if SR wants to switch on the audio, the command should be:           */
/*	       BAI1_0CtrlSetAudioOnMode(mode,BAI_SR_ACTIVE_AUDIO )      */
/* if SR wants to switch on only the micro the command should be:       */
/*      BAI1_0CtrlSetAudioOnMode(mode,BAI_SR_ACTIVE_ONLY_AUDIO_MICRO)   */
/* if SR wants to switch on only the earpiece the command should be:    */
/*	BAI1_0CtrlSetAudioOnMode(mode,BAI_SR_ACTIVE_ONLY_AUDIO_EARPIECE)*/
/* if SR wants to switch off audio the command should be: 	        */
/*      BAI1_2CtrlSetAudioOFF(mode,BAI_SR_DEACTIVE_AUDIO)	        */
/*----------------------------------------------------------------------*/

/* Structure of the constant for the parameter requester  used in       */
/* BAI1_0CtrlSetAudioOnMode and BAI1_2CtrlSetAudioOFF                   */
/*                                                                    

 ---------------------------------------------------------------------------
|Active TX|Active RX |Not Used|Requester SR|Requester MELO|  Requester ENV  |
| (Micro) |(Earpiece)|        |            |              |            MMI  |
 ---------------------------------------------------------------------------
       b7      b6     b5    b3      b2             b1             b0  */


#define BAI_AUDIO_MICRO_ON      BAI_ACTIVE_AUDIO_MICRO_MASK
#define BAI_AUDIO_EARPIECE_ON   BAI_ACTIVE_AUDIO_EARPIECE_MASK

#define BAI_HEN_ACTIVE_AUDIO       0xC1
#define BAI_HEN_DEACTIVE_AUDIO     0x3E
#define BAI_MELODY_ACTIVE_AUDIO    0xC2
#define BAI_MELODY_DEACTIVE_AUDIO  0x3D

#define BAI_SR_ACTIVE_AUDIO        	0xC4
#define BAI_SR_ACTIVE_ONLY_MICRO        0x84
#define BAI_SR_ACTIVE_ONLY_EARPIECE     0x44
#define BAI_SR_DEACTIVE_AUDIO      	0x3B


#define BAI_AUDIO_EARP_ON	1
#define BAI_AUDIO_MIC_ON	2
#define BAI_AUDIO_ALL_ON	3

#define BAI_AUDIO_EARP_OFF	1
#define BAI_AUDIO_MIC_OFF	2
#define BAI_AUDIO_ALL_OFF	3

#define BAI_MMI_ACTIVE_AUDIO       BAI_HEN_ACTIVE_AUDIO
#define BAI_MMI_DEACTIVE_AUDIO     BAI_HEN_DEACTIVE_AUDIO

/*----------------------------------------------------------------------*/
/* Defines for ADC                                                      */
/*----------------------------------------------------------------------*/

#define BAI_FIFO_SIZE              8

/*====================================================================*/
/*====================================================================*/
/*                                                                    */
/*             GENERAL DEFINES FOR    PCF 50732                       */
/*                                                                    */
/*====================================================================*/
/*====================================================================*/

/*====================================================================*/
/*                                                                    */
/*               REGISTERS ADDRESS, SUBADDR and SUBADDR_MASK          */
/*                                                                    */
/*====================================================================*/

#define BAI_READ_REQ_ADR         0x0 
#define BAI_AUXDAC1_ADR              0x1  
#define BAI_AUXDAC2_ADR              0x2       
#define BAI_BCR_ADR 			0x3
#define BAI_AUXADCCR_ADR		0x4
#define BAI_AUXADC_CH1A_ADR              0x5 /*adc starting point address*/    
#define BAI_ADC1_ADR                     0 /*0x6*/
#define BAI_ADC2_ADR                     1 /*0x7*/
#define BAI_ADC3_ADR                     2 /*0x8*/
#define BAI_ADC4_ADR                     3 /*0x9*/
#define BAI_VCR_ADR			0XA
#define BAI_VVR_ADR			0xB
#define BAI_PCR_ADR			0xC
#define BAI_RIR_ADR			0xD
#define BAI_BBCR_ADR			0xE

/******************************************************************/
/***************************Generic********************************/
/******************************************************************/

#define BAI_NO_SUBREG			0x0
#define BAI_NO_REG			0x0
#define BAI_NO_SUBREG_MASK		0xFFF


/******************************************************************/
/***************AUXADC Control Register****************************/
/******************************************************************/
#define AUXADCCR_MASK			0x1FF
#define AUXADCCR_delay_SADR		0x0
#define AUXADCCR_flag_SADR		0x200
#define AUXADCCR_ADCoffset_SADR		0x800
#define AUXADCCR_Ioffset_SADR		0xA00
#define AUXADCCR_Qoffset_SADR		0xC00
#define AUXADCCR_TRIGoffset_SADR	0xE00

/******************************************************************/
/***************Burst Control Register*****************************/
/******************************************************************/
#define BCR_mode_MASK			0x1
#define BCR_mode_SADR			0xA00

#define BCR_lo_MASK			0xFF
#define BCR_hi_MASK			0xF
#define BCR_RU_lo_SADR			0x0			
#define BCR_RU_hi_SADR			0x100			
#define BCR_RM_lo_SADR			0x200			
#define BCR_RM_hi_SADR			0x300
#define BCR_RD_lo_SADR			0x400			
#define BCR_RD_hi_SADR			0x500
#define BCR_BIEN0_lo_SADR		0x600			
#define BCR_BIEN0_hi_SADR		0x700
#define BCR_BIEN1_lo_SADR		0x800			
#define BCR_BIEN1_hi_SADR		0x900

#define BCR_1_2TX_ADR			0xC00

#define HEE_BCR_BIEN1_lo_SADR		0x8			
#define HEE_BCR_BIEN1_hi_SADR		0x9
#define HEE_BCR_1_2TX_ADR		0xA
#define HEE_1_TX			0X0
#define HEE_2_TX			0X1

#define BCR_DAC3_Adr_MASK		0x3F
#define BCR_DAC3_Adr_SADR		0xB00

#define BCR_DAC3_Data_MASK		0x3FF
#define BCR_DAC3_Data_SADR		0xC00

/******************************************************************/
/***************Base Band Control Register*************************/
/******************************************************************/
#define BBCR_50732_3E_IRAM_LOCK		0x808
	
/******************************************************************/
/***************Voiceband Volume Register**************************/
/******************************************************************/
#define VVR_MASK			0x3F
#define VVR_TXPGA_SADR			0x0
#define VVR_RXPGA_SADR			0x200
#define VVR_RXVOL_SADR			0x400
#define VVR_SidePGA_SADR		0x600
#define VVR_tuning_SADR			0xC00

/******************************************************************/

⌨️ 快捷键说明

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