📄 heeradio.ho
字号:
/******************************************************************************/
/* SCCS: %Z% Name: %M% Date US: %G% %U% Ver.: %I% */
/******************************************************************************/
/*F(***************************************************************************
* File name : rfradio.ho
* Project : POLYPHASE
* Module : RF
* Date : 10/02/99
* Version : 1.0
* Compiler name and release(s) :
*----------------------------------------------------------------------------*
*----------------------------------------------------------------------------*
* DESCRIPTION
*
*----------------------------------------------------------------------------*
*----------------------------------------------------------------------------*
* FUNCTIONS DEFINED IN THIS FILE
*----------------------------------------------------------------------------*
* Name | Object
*----------------------------------------------------------------------------*
*
*----------------------------------------------------------------------------*
*----------------------------------------------------------------------------*
* EVOLUTION
*----------------------------------------------------------------------------*
* Date | Author | Arnb | Description
*----------------------------------------------------------------------------*
* 10-02-99 | N.GANRY | | Creation from X15G heex15g.ho (EEPROM). *
* | A.LEROY | | Update Radio Table for 50732 + OM5178 *
***************************************************************************)F*/
#if defined(RADIO_TABLE_4TX_FTR)
#include "rfradio_4tx.ho"
#else /* defined(RADIO_TABLE_4TX_FTR) */
/******************************************************************************/
/*****************default radio parameters for vague H*************************/
/******************************************************************************/
#ifndef RFRADIO_HO
#define RFRADIO_HO
#define HEE_RADIO_SECTION_NAME "RADIO"
MC_HEE_SECTION_LOADED_IN_RAM_IMAGE
/* == DEFINITION OF GLOBAL TYPES ====================================== */
/* */
/* Type declaration for Information elements */
#undef GLOBAL
/*======================================================================*/
/* THE DESCRIPTION OF THE RADIO PARAMETERS, AND RADIO MANAGEMENT ARE */
/* BASED ON THE FOLLOWING DOCUMENT */
/* 1-"Procedure de reglage du terminal A1" */
/* 2-"Radio Interface" */
/*======================================================================*/
#define HEE_RX_CHANNEL_RANGE_NB_GSM 5
#define HEE_RX_CHANNEL_RANGE_NB_DCS 5
#if defined RADIO_PA_FREQ_COMPENSATION_HDW
#define HEE_TX_CHANNEL_RANGE_NB_GSM 5
#define HEE_TX_CHANNEL_RANGE_NB_DCS 5
#endif
#if defined __TRIBAND__
#define HEE_RX_CHANNEL_RANGE_NB_PCS 5
#define HEE_RX_CHANNEL_RANGE_NB_GSM850 HEE_RX_CHANNEL_RANGE_NB_GSM
#if defined RADIO_PA_FREQ_COMPENSATION_HDW
#define HEE_TX_CHANNEL_RANGE_NB_PCS 5
#define HEE_TX_CHANNEL_RANGE_NB_GSM850 HEE_TX_CHANNEL_RANGE_NB_GSM
#endif /* RADIO_PA_FREQ_COMPENSATION_HDW */
#endif /* __TRIBAND__ */
#define HEE_TEMPERATURE_RANGE_NB 3
#define HEE_TX_POWER_LEVEL_NB_GSM 15 /*nb step of power in GSM*/
#define HEE_TX_POWER_LEVEL_NB_DCS 16 /*nb step of power in DCS*/
#if defined __TRIBAND__
#define HEE_TX_POWER_LEVEL_NB_PCS 16 /*nb step of power in PCS*/
#endif /* __TRIBAND__ */
MC_HEE_BEGIN_PACKED_TYPE( st_pa_TxGainTuning )
/* This structure contains some features of the power amplifier */
/* command. */
/* Peak power */
u16 v_hee_TxPeakPower;
/* First sample of the Hamming window */
u16 v_hee_TxHamming_0;
/* Last sample of the Hamming window */
u16 v_hee_TxHamming_30;
/* Min power */
u16 v_hee_TxMinPower;
MC_HEE_END_PACKED_TYPE( st_pa_TxGainTuning )
/***********************************************************************/
/* Structure in RX */
/***********************************************************************/
MC_HEE_BEGIN_PACKED_TYPE( st_Rx_GSM )
/* The following table contains the channel range boundary */
/* because, we have to make a fine final compensation in function */
/* of the choosen gain, and the channel range */
u8 a_rf_ChanBound[HEE_RX_CHANNEL_RANGE_NB_GSM-1];
/* this table contains the fine final gain compensation */
s8 a_rf_FineGain[HEE_TEMPERATURE_RANGE_NB][HEE_RX_CHANNEL_RANGE_NB_GSM];
/* lower antenna power boundary */
s8 v_rf_Pant1;
MC_HEE_END_PACKED_TYPE( st_Rx_GSM )
MC_HEE_BEGIN_PACKED_TYPE( st_Rx_DCS )
/* The following table contains the channel range boundary */
/* because, we have to make a fine final compensation in function */
/* of the choosen gain, and the channel range */
u16 a_rf_ChanBound[HEE_RX_CHANNEL_RANGE_NB_DCS-1];
/* this table contains the fine final gain compensation */
s8 a_rf_FineGain[HEE_TEMPERATURE_RANGE_NB][HEE_RX_CHANNEL_RANGE_NB_DCS];
/* lower antenna power boundary */
s8 v_rf_Pant1;
MC_HEE_END_PACKED_TYPE( st_Rx_DCS )
#if defined __TRIBAND__
MC_HEE_BEGIN_PACKED_TYPE( st_Rx_PCS )
/* The following table contains the channel range boundary */
/* because, we have to make a fine final compensation in function */
/* of the choosen gain, and the channel range */
u16 a_rf_ChanBound[HEE_RX_CHANNEL_RANGE_NB_PCS-1];
/* this table contains the fine final gain compensation */
s8 a_rf_FineGain[HEE_TEMPERATURE_RANGE_NB][HEE_RX_CHANNEL_RANGE_NB_PCS];
/* lower antenna power boundary */
s8 v_rf_Pant1;
MC_HEE_END_PACKED_TYPE( st_Rx_PCS )
MC_HEE_BEGIN_PACKED_TYPE( st_Rx_GSM850 )
/* The following table contains the channel range boundary */
/* because, we have to make a fine final compensation in function */
/* of the choosen gain, and the channel range */
u16 a_rf_ChanBound[HEE_RX_CHANNEL_RANGE_NB_GSM850-1];
/* this table contains the fine final gain compensation */
s8 a_rf_FineGain[HEE_TEMPERATURE_RANGE_NB][HEE_RX_CHANNEL_RANGE_NB_GSM850];
/* lower antenna power boundary */
s8 v_rf_Pant1;
MC_HEE_END_PACKED_TYPE( st_Rx_GSM850 )
#endif /* __TRIBAND __ */
MC_HEE_BEGIN_PACKED_TYPE( st_Rx_Generic )
/* Margin taken into account in AGC computation */
u8 v_rf_RxMargin;
/*fill bytes */
MC_HEE_GAP(dummy,3)
MC_HEE_END_PACKED_TYPE( st_Rx_Generic )
/***********************************************************************/
/* Structure in TX */
/***********************************************************************/
MC_HEE_BEGIN_PACKED_TYPE( st_Tx_GSM )
/* the 2 following tables contain all the values for the */
/* programmation of the PA controler in GSM. */
st_pa_TxGainTuning s_pa_GainTuning[HEE_TX_POWER_LEVEL_NB_GSM];
/* Fine Tx TRU delay tuning in GSM */
s8 a_pa_TRU_DeltaT[HEE_TX_POWER_LEVEL_NB_GSM];
/* Fine Tx TRD delay tuning in GSM */
s8 a_pa_TRD_DeltaT[HEE_TX_POWER_LEVEL_NB_GSM];
/* Compensation of F(0) following temperature. */
s8 a_pa_TxHamming_0_Adjust[HEE_TEMPERATURE_RANGE_NB];
/* Compensation of v_hee_TxPeakPower following temperature. */
s8 a_pa_PeakPowerAdjust[HEE_TEMPERATURE_RANGE_NB];
/* Compensation of TRU following temperature. */
s8 a_pa_TRU_Adjust[HEE_TEMPERATURE_RANGE_NB];
/*Boundary on power level for F(0),PeakPower,TRU */
u8 v_pa_Thresh_Hamming0;
u8 v_pa_Thresh_PeakPower;
u8 v_pa_Thresh_TRU;
/*Boundary on power level between Hamming parameter for high/low level */
u8 v_pa_Thresh_HammingLevel;
/*fill bytes */
MC_HEE_GAP(dummy,1)
/* Fine Tx TRM delay tuning in GSM */
s8 a_pa_TRM_DeltaT[HEE_TX_POWER_LEVEL_NB_GSM];
/* Compensation of TRM following temperature. */
s8 a_pa_TRM_Adjust[HEE_TEMPERATURE_RANGE_NB];
/*Boundary on power level between MiddleHamming parameter for high/low */
/* level */
u8 v_pa_Thresh_MiddleHammingLevel;
u8 v_pa_Thresh_TRM;
#if defined RADIO_PA_FREQ_COMPENSATION_HDW
/* Channel boundaries to define channel ranges */
u8 a_rf_ChanBound[HEE_TX_CHANNEL_RANGE_NB_GSM-1];
/* Compensation of v_hee_TxPeakPower following the used radio channel for high PCLs. */
s8 a_rf_FreqPeakPowerAdjust_HighPCL[HEE_TX_CHANNEL_RANGE_NB_GSM];
/* Compensation of v_hee_TxPeakPower following the used radio channel for low PCLs. */
s8 a_rf_FreqPeakPowerAdjust_LowPCL[HEE_TX_CHANNEL_RANGE_NB_GSM];
/* Compensation of v_hee_TxPeakPower following temperature for Low PCLs. */
/* The array above (a_pa_PeakPowerAdjust) is then used for High PCLs */
s8 a_pa_TempPeakPowerAdjust_LowPCL[HEE_TEMPERATURE_RANGE_NB];
/*fill bytes */
MC_HEE_GAP(dummy2,3)
#endif
MC_HEE_END_PACKED_TYPE( st_Tx_GSM )
MC_HEE_BEGIN_PACKED_TYPE( st_Tx_DCS )
/* the 2 following tables contain all the values for the */
/* programmation of the PA controler in DCS. */
st_pa_TxGainTuning s_pa_GainTuning[HEE_TX_POWER_LEVEL_NB_DCS];
/* Fine Tx TRU delay tuning in DCS */
s8 a_pa_TRU_DeltaT[HEE_TX_POWER_LEVEL_NB_DCS];
/* Fine Tx TRD delay tuning in DCS */
s8 a_pa_TRD_DeltaT[HEE_TX_POWER_LEVEL_NB_DCS];
/* Compensation of F(0) following temperature. */
s8 a_pa_TxHamming_0_Adjust[HEE_TEMPERATURE_RANGE_NB];
/* Compensation of v_hee_TxPeakPower following temperature. */
s8 a_pa_PeakPowerAdjust[HEE_TEMPERATURE_RANGE_NB];
/* Compensation of TRU following temperature. */
s8 a_pa_TRU_Adjust[HEE_TEMPERATURE_RANGE_NB];
/*Boundary on power level for F(0),PeakPower,TRU */
u8 v_pa_Thresh_Hamming0;
u8 v_pa_Thresh_PeakPower;
u8 v_pa_Thresh_TRU;
/*Boundary on power level between Hamming parameter for high/low level */
u8 v_pa_Thresh_HammingLevel;
MC_HEE_GAP(dummy,3)
/* Fine Tx TRM delay tuning in DCS */
s8 a_pa_TRM_DeltaT[HEE_TX_POWER_LEVEL_NB_DCS];
/* Compensation of TRM following temperature. */
s8 a_pa_TRM_Adjust[HEE_TEMPERATURE_RANGE_NB];
u8 v_pa_Thresh_TRM;
/*Boundary on power level between MiddleHamming parameter for high/low */
/* level */
u8 v_pa_Thresh_MiddleHammingLevel;
MC_HEE_GAP(dummy2,3)
#if defined RADIO_PA_FREQ_COMPENSATION_HDW
/* Channel boundaries to define channel ranges */
u16 a_rf_ChanBound[HEE_TX_CHANNEL_RANGE_NB_DCS-1];
/* Compensation of v_hee_TxPeakPower following the used radio channel for high PCLs. */
s8 a_rf_FreqPeakPowerAdjust_HighPCL[HEE_TX_CHANNEL_RANGE_NB_DCS];
/* Compensation of v_hee_TxPeakPower following the used radio channel for low PCLs. */
s8 a_rf_FreqPeakPowerAdjust_LowPCL[HEE_TX_CHANNEL_RANGE_NB_DCS];
/* Compensation of v_hee_TxPeakPower following temperature for Low PCLs. */
/* The array above (a_pa_PeakPowerAdjust) is then used for High PCLs */
s8 a_pa_TempPeakPowerAdjust_LowPCL[HEE_TEMPERATURE_RANGE_NB];
/*fill bytes */
MC_HEE_GAP(dummy3,3)
#endif
MC_HEE_END_PACKED_TYPE( st_Tx_DCS )
#if defined __TRIBAND__
MC_HEE_BEGIN_PACKED_TYPE( st_Tx_PCS )
/* the 2 following tables contain all the values for the */
/* programmation of the PA controler in PCS. */
st_pa_TxGainTuning s_pa_GainTuning[HEE_TX_POWER_LEVEL_NB_PCS];
/* Fine Tx TRU delay tuning in PCS */
s8 a_pa_TRU_DeltaT[HEE_TX_POWER_LEVEL_NB_PCS];
/* Fine Tx TRD delay tuning in PCS */
s8 a_pa_TRD_DeltaT[HEE_TX_POWER_LEVEL_NB_PCS];
/* Compensation of F(0) following temperature. */
s8 a_pa_TxHamming_0_Adjust[HEE_TEMPERATURE_RANGE_NB];
/* Compensation of v_hee_TxPeakPower following temperature. */
s8 a_pa_PeakPowerAdjust[HEE_TEMPERATURE_RANGE_NB];
/* Compensation of TRU following temperature. */
s8 a_pa_TRU_Adjust[HEE_TEMPERATURE_RANGE_NB];
/*Boundary on power level for F(0),PeakPower,TRU */
u8 v_pa_Thresh_Hamming0;
u8 v_pa_Thresh_PeakPower;
u8 v_pa_Thresh_TRU;
/*Boundary on power level between Hamming parameter for high/low level */
u8 v_pa_Thresh_HammingLevel;
MC_HEE_GAP(dummy,3)
/* Fine Tx TRM delay tuning in PCS */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -