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

📄 dspdef.hec

📁 这是用Labwindows开发的一个RF test程序。 用于日本机种的组装后ANT 测试。
💻 HEC
📖 第 1 页 / 共 5 页
字号:
#define PIOS_reg	PCF508x_PIOS


#define DSP_SPOE         (1 << 0)      /* 1  = Output Register SPO empty*/
                                       /* 0  = Output Register SPO full */

#define DSP_SPIF         (1 << 1)      /* 1  = Output Register SPI full */
                                       /* 0  = Output Register SPI empty*/

#define DSP_SIYSS_REGISTER           0x24   /* 0x04 (I/O map) + 0x20    */
#define DSP_SOYSS_REGISTER           0x25   /* 0x04 (I/O map) + 0x20    */
#define DSP_TBUC_REGISTER            0x40   /* 0x20 (I/O map) + 0x20    */
#define DSP_QBC_REGISTER             0x42   /* 0x22 (I/O map) + 0x20    */
#define DSP_SQBCINC_L_REGISTER       0x43   /* 0x23 (I/O map) + 0x20    */
#define DSP_SQBCINC_H_REGISTER       0x44   /* 0x24 (I/O map) + 0x20    */
#define DSP_IER			     0x6B
#define DSP_ISR			     0x6C
#define DSP_IDR			     0x6D


/*======================================================================*/
/* LENGTH OF NEXT FRAME MESSAGE 					*/
/*======================================================================*/
#define DSP_EXEC_PROC_FG_NF_LEN		0x01

/*======================================================================*/
/*  MESSAGE LENGTH OF BASEBAND PROCEDURES (DEBUGGING)                   */
/*======================================================================*/
/* ATTENTION pour cette commande on doit rajouter le nb de mots a ecrire*/                  
#define DSP_DB_WRITE_BUFFER_LEN                 (DSP_MSG_HEADER_LEN+3)

/*======================================================================*/
/*  MESSAGE LENGTH OF GPRS PROCEDURES (EXEC_PROC_FG_RF)                 */
/*======================================================================*/
#define DSP_RF_NEW_RAMP_LEN			(DSP_MSG_HEADER_LEN+3)

/*======================================================================*/
/*  PROC_ID DEFINITION						        */
/*======================================================================*/

/* Delayed field 							*/

#define STC_TDMA 	DSP_STC_TDMA_MASK
#define STC_CONT 	DSP_STC_CONT_MASK
#define STC_EOB 	DSP_STC_EOB_MASK
#define STC_BB 		DSP_STC_BB_MASK
#define STC_DUMMY 	DSP_STC_DUMMY_MASK


#define NO_EXEC_COND	0 /* the resource is not dependent of USF	     */
#define EXEC_COND	1 /* the resource is dependent of USF		     */

#define INVERT_COND 	1   /* the resource exists if none of the mentionned */
			  /* Rx and TX resource in Rx/Tx alloc  is allocated */
#define NO_INVERT_COND 	0 /* the resource exists if one of the Rx/Tx resource*/
			 /* in the Rx/Tx allocation exitsts		     */

/*======================================================================*/
/* LENGTH OF MESSAGES DEDICATED TO BACKGROUND TASK 			*/
/*======================================================================*/
/* ATTENTION : il faut rajouter le nombre de parametres !!! 		*/
#define DSP_BG_ST_EVT_LEN	4
#define DSP_BG_CR_TSK_LEN	5
#define DSP_BG_DL_TSK_LEN	3

/*======================================================================*/
/* variable length depending on read buffer command length              */
/*======================================================================*/
#define DSP_MSG_HEADER_LEN         3
#define DSP_MSG_INIT_LEN           6

/*======================================================================*/
/* No side tone						                */
/*======================================================================*/
#define DSP_SIDE_TONE_OFF	0         

/*======================================================================*/
/* COMPENSATION OF DC OFFSETS						*/
/*======================================================================*/
#define DSP_SOFT_DCOFFSET_MEAS	0         
#define DSP_HARD_DCOFFSET_MEAS	1         
   
/*======================================================================*/
/* RACH IN TCH / CCH 							*/
/*======================================================================*/
#define DSP_RACH_WHILE_CCH	0
#define DSP_RACH_WHILE_TCH	1
#define DSP_RACH_GPRS_PTCCH	2
#define DSP_RACH_GPRS_PCCCH	4

/*======================================================================*/
/* DRX									*/
/*======================================================================*/
#define DSP_DRX_OFF	0         
#define DSP_DRX_ON	1         
#define DSP_DRX_OFF_IMMEDIATE	2         

/*======================================================================*/
/* STC FOR DRX								*/
/*======================================================================*/
#define DSP_DRX_STC_FRAME	0 << 13 
#define DSP_DRX_STC_IMMEDIATE	1 << 13       
#define DSP_DRX_STC_EOB		2 << 13       

/*======================================================================*/
/* CCH MESSAGE TO BE DECODED						*/
/*======================================================================*/
#define DSP_DECODE_CCH_DISABLE	0         
#define DSP_DECODE_CCH_ENABLE	1    

/*======================================================================*/
/* REPORTING PERIOD STATUS						*/
/*======================================================================*/
#define DSP_REPORTING_PERIOD_GOING_ON	0         
#define DSP_END_REPORTING_PERIOD	1    
     
/*======================================================================*/
/* CONTROL MODE PARAMETERS						*/
/*======================================================================*/
#define DSP_NO_SCH_IMMEDIATE	0         
#define DSP_SCH_IMMEDIATE	1         
#define DSP_CCH_DECODER_DISABLE	0         
#define DSP_CCH_DECODER_ENABLE	1    
#define DSP_CCH_COMPARE_DISABLE	0         
#define DSP_CCH_COMPARE_ENABLE	1    
#define DSP_NO_COPY_CCH_CMI	0         
#define DSP_COPY_CCH_CMI	1    

#define DSP_FIFO_LENGTH         0
#define DSP_MEM_HIGH_ADR        0
#define DSP_MEM_LOW_ADR         0

/*======================================================================*/
/* Audio (SIOY) Time Slots number                                       */
/*======================================================================*/
#define DSP_AUDIO_SLOT_NUMBER    6  /* Master mode at 1,536 MHz         */
                                    /* and Double Clock mode            */

/* This constant is use in fonction DSP9_7CtrlChangeDSPAudioTimeslot    */
/* for changing audio time slot between 50732 and Bluethooth		*/
/* The uses time slot is defined by the fonction :			*/
/* TS = (1 << DSP_AUDIO_SLOT_X)						*/
/* During InitAll, we use the constant DSP_SOYSS_INIT = 4 (TS 2)	*/

#define DSP_AUDIO_SLOT_BLUETOOTH 0  /* Audio Timeslot = 0 for BLUETOOTH	*/
#define DSP_AUDIO_SLOT_1	 1  /* Audio Timeslot = 1 for DAI mode  */
#define DSP_AUDIO_SLOT_5073      2  /* Audio Timeslot = 2 for 50732	*/
#define DSP_AUDIO_SLOT_4	 4  /* Audio Timeslot = 4 for DAI mode  */

/*======================================================================*/
/* Data modes definition                                                */
/*======================================================================*/
#define DSP_TCH_DATA_144FR 0
#define DSP_TCH_DATA_96FR  1
#define DSP_TCH_DATA_48FR  2
#define DSP_TCH_DATA_24FR  3
#define DSP_TCH_DATA_48HR  4
#define DSP_TCH_DATA_24HR  5

/*======================================================================*/
/* Bit mask for calibration mode                                        */
/*======================================================================*/
#define DSP_SET_TBUC_CAL_START        1<<0
#define DSP_SET_TBUC_CAL_SET          1<<2
#define DSP_RESET_TBUC_CAL_START    0xFFFE
#define DSP_RESET_TBUC_CAL_SET      0xFFFB

#define DSP_SET_BIT                     1
#define DSP_RESET_BIT                   2

/*======================================================================*/
/* Constant for IC access				 	        */
/*======================================================================*/
#if (!defined(RADIO_3536_HDW) && !defined(RF_UAA3537_HDW))
#define DSP_OM5178		1
#else	/*!defined(RADIO_3536_HDW) && !defined(RF_UAA3537_HDW)*/
#if defined (RF_UAA3537_HDW)
#define DSP_UAA3537		1
#else	/*if defined (RF_UAA3537_HDW)*/
#define DSP_UAA3536		1
#endif	/*if defined (RF_UAA3537_HDW)*/
#endif /* !defined(RADIO_3536_HDW) && !defined(RF_UAA3537_HDW) */

#define DSP_PCF5073             2

/* Speed of transmition for SCI                                         */
#define DSP_SCI_1M              0
#define DSP_SCI_2M              1
#define DSP_SCI_4M              2
#define DSP_SCI_8M		1


#if defined (RF_UAA3537_HDW)
#if defined(HWL_SCIBUS_13MHZ_FTR)
#define DSP_SCI_13M		2
#define DSP_ASYNC_SCI_LEN	2
#define DSP_ASYNC_SCI_SP	DSP_SCI_13M
#else	/*if defined(HWL_SCIBUS_13MHZ_FTR)*/
#define DSP_ASYNC_SCI_LEN	3
#define DSP_ASYNC_SCI_SP	DSP_SCI_8M
#endif	/*if defined(HWL_SCIBUS_13MHZ_FTR)*/
#endif	/*if defined (RF_UAA3537_HDW)*/

#if (!defined(RADIO_3536_HDW) && !defined(RF_UAA3537_HDW))
/* +LMSdv97702 - 09/10/03 - SCH */
#define DSP_ASYNC_SCI_LEN	3
/* -LMSdv97702 - 09/10/03 - SCH */
#define DSP_OM5178_SP           DSP_SCI_2M
#else	/*(!defined(RADIO_3536_HDW) && !defined(RF_UAA3537_HDW))*/
#if defined RF_UAA3537_HDW
#if defined(HWL_SCIBUS_13MHZ_FTR)
#define DSP_SCI_13M		2
#define DSP_ASYNC_SCI_LEN	2
#define DSP_ASYNC_SCI_SP	DSP_SCI_13M
#else	/*if defined(HWL_SCIBUS_13MHZ_FTR)*/
#define DSP_ASYNC_SCI_LEN	3
#define DSP_ASYNC_SCI_SP	DSP_SCI_8M
#endif	/*if defined(HWL_SCIBUS_13MHZ_FTR)*/
#else	/*if define RF_UAA3537_HDW*/
/* +LMSdv97702 - 09/10/03 - SCH */
#define DSP_ASYNC_SCI_LEN	3
/* -LMSdv97702 - 09/10/03 - SCH */
#define DSP_UAA3536_SP		DSP_SCI_2M
#endif	/*if define RF_UAA3537_HDW*/
#endif /* (!defined(RADIO_3536_HDW) && !defined(RF_UAA3537_HDW)) */

#if !defined (RF_UAA3537_HDW)
#define DSP_PCF5073_SP          DSP_SCI_2M
#else	/*if defined (RF_UAA3537_HDW)*/
#define DSP_PCF5073_SP          DSP_SCI_8M
#endif	/*if defined (RF_UAA3537_HDW)*/


/*======================================================================*/
/* Module Coding for ADC reading                                        */
/*======================================================================*/

#if !defined (CR_DDTS_98132_ADC_HA2D_FTR)

#if defined CR_1343
#define DSP_HACDMODULE         4
#endif
#define DSP_NOTDEFMODULE       3
#define DSP_TATMODULE          2
#define DSP_ENVMODULE          1
#define DSP_BATMODULE          0

#else	/*if !defined (CR_DDTS_98132_ADC_HA2D_FTR)*/

#define DSP_NOTDEFMODULE       0
#define DSP_HA2DMODULE	       1
#define DSP_TATMODULE          2

#endif	/*if !defined (CR_DDTS_98132_ADC_HA2D_FTR)*/

#define DSP_FRAME2WAIT         2

/*======================================================================*/
/* Muting/unmuting parameters                                           */
/*======================================================================*/
#define DSP_AUDIO_TX			     0
#define DSP_AUDIO_RX                         1
#define DSP_UNMUTE                           0
#define DSP_MUTE                             1

/*======================================================================*/
/* Half duplex parameters for Handsfree                   	        */
/*======================================================================*/
#define DSP_HANDSFREE_MODE              0

#define DSP_ALPHA_AC                 0x013D           
#define DSP_FAST_ALPHA_AC            0x013D           
#define DSP_MAX_LEV_BGR              0x6000 /*25-07-96:old value=0x4CCD */
#define DSP_MIN_LEV_BGR              0x3333
#define DSP_THRESHOLD_NEAR_ECHO      0x1395 /*25-07-96:old value=0x1147 */
#define DSP_THRESHOLD_FAR_ECHO       0x1831 /*25-07-96:old value=0x170A */
#define DSP_THRESHOLD_SEND_IN        0x08F5
#define DSP_THRESHOLD_RECEIVE_IN     0x08F5
#define DSP_CN_FACTOR                0x4000 /*25-07-96:old value=0x4000 */

/*======================================================================*/
/* Full duplex parameters for Handsfree                  	        */
/*======================================================================*/
#if defined(DSP_EC_AEC_FTR)
#define DSP_AEC_ERLE				0x0
#define DSP_AEC_HISTORY_BUFF			0x1BF
#endif /* DSP_EC_AEC_FTR */

/*======================================================================*/
/* Half duplex parameters for compact carkit                  	        */
/*======================================================================*/
/* If AEC is mixed with Half Duplex					*/
/* #if defined(DSP_EC_AEC_FTR)
   #define DSP_ATT_CORRECTION_HDCK           0xD000
   #else								*/
#define DSP_ATT_CORRECTION_HDCK           0xFD70
/* #endif								*/

/*======================================================================*/
/* Echo Cancelling parameter for headset                                */
/*======================================================================*/
#define DSP_TOTAL_ATTENUATION_HEADSET     0x7

/*======================================================================*/
/* Number of samples for RX pattern                           	        */
/*======================================================================*/
/* Polyphase mode - NZIF configuration 
                                 */
#define DSP_SAMPLES_RX_FREQ		  (156)*2
#define DSP_SAMPLES_RX_OFFSET		   (80)*2
#define DSP_SAMPLES_RX_POWER		   (40)*2
#define DSP_SAMPLES_RX_NB_TCH		  (149)*2
#define DSP_SAMPLES_RX_NB_CCH		  (149)*2
#define DSP_SAMPLES_RX_SCH		  (167)*2
#define DSP_SAMPLES_RX_INTERFERENCE       (156)*2

#if defined(GPRS_FTR)

⌨️ 快捷键说明

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