📄 caldata.h
字号:
/*
Copyright (C) 2001 Optimay GmbH. All Rights Reserved.
File: custt7\cal\caldata.h
Desc:
Author: Hai Wang
Date:
Notes: Here are the constants specific used on Edge platform
$Source basecust\custt7\cal\caldata.h (Clearcase Element) $
$Log: $
* BRANDSMA 9. Jun. 2004 13:21:11 RB: rb_gsmms2, IB: REL_MGMT_024, PB: BRA000055, Rev: 1
* -> OCR00007317 PTE to support calibration of RX - TX frequency offset
* -> OCR00007316 new PTE command to store parameters for RFConfig command
*
*
* BRANDSMA 8. Apr. 2004 14:19:16 RB: rb_gsmms2, IB: REL_MGMT_024, PB: SJB000045, Rev: 1
* -> OCR00006928 PTE, Dual TX ramp data for GMSK and 8PSK each
*
*/
#if !defined(CUSTT7)
#error "Wrong customer for this file!!"
#endif
/*---------------------------- Global Defines: ---------------------------*/
#ifndef CUSTT7_CALDATA_H
#define CUSTT7_CALDATA_H
#if defined (RENESAS_RF_B5)
/* Calibration data structure willbe built using the following defines */
/* The following defines MUST all exist - set to '0' if not used in this calibration data structure.*/
/* Altering the following data may invalidate existing calibration data, cause stack crashes and
failure of PTE commands. */
#define NO_RF_BANDS 4
#define NO_RAMPS_BAND0 15
#define NO_RAMPS_BAND1 16
#define NO_RAMPS_BAND2 16
#define NO_RAMPS_BAND3 15
#define TX_RAMP_BURST_SIZE 68
#define TX_RAMP_ADJUST_SIZE 0
#define NO_TX_RAMP_ADJUST 0
#define SIZE_OF_GSM_RAMP (TX_RAMP_BURST_SIZE + (TX_RAMP_ADJUST_SIZE * NO_TX_RAMP_ADJUST) + 1)
#define TX_RAMP_BAND0_OFFSET 12
#define TX_RAMP_BAND1_OFFSET (TX_RAMP_BAND0_OFFSET + (SIZE_OF_GSM_RAMP * sizeof(UINT16) * NO_RAMPS_BAND0))
#define TX_RAMP_BAND2_OFFSET (TX_RAMP_BAND1_OFFSET + (SIZE_OF_GSM_RAMP * sizeof(UINT16) * NO_RAMPS_BAND1))
#define TX_RAMP_BAND3_OFFSET (TX_RAMP_BAND2_OFFSET + (SIZE_OF_GSM_RAMP * sizeof(UINT16) * NO_RAMPS_BAND2))
#define FIRSTPCLBAND0 5
#define FIRSTPCLBAND1 0
#define FIRSTPCLBAND2 0
#define FIRSTPCLBAND3 5
#define RX_BB_TABLE_POS 0
#if defined(__SGH_E770_TARGET__) || defined(__SGH_D800_TARGET__) // req h/w tl.lee add goparty
#define RX_BB_TABLE_SIZE 0 //s400i侩 亩 函荐
#else
#define RX_BB_TABLE_SIZE 4
#endif
#define RX_BAND_TABLE_SIZE 26
#define SIZE_OF_RX_TABLE ( RX_BB_TABLE_SIZE + (NO_RF_BANDS * RX_BAND_TABLE_SIZE) )
#define RX_BAND0_TABLE_POS (RX_BB_TABLE_POS + RX_BB_TABLE_SIZE)
#define RX_BAND1_TABLE_POS (RX_BAND0_TABLE_POS + RX_BAND_TABLE_SIZE)
#define RX_BAND2_TABLE_POS (RX_BAND1_TABLE_POS + RX_BAND_TABLE_SIZE)
#define RX_BAND3_TABLE_POS (RX_BAND2_TABLE_POS + RX_BAND_TABLE_SIZE)
#define ADC_CAL_POINTS 2
#define ADC_CAL_CHANNELS 6
#define RF_CONFIG_DATA_SIZE_MAX 16
//#if defined(WIN32)
#define NO_OF_RFINIT_PARM 16
//#endif
typedef struct
{
UINT16 CheckSum; /* 16 bit CRC */
UINT8 Version[10];
UINT16 PowerRampTablesBand0[NO_RAMPS_BAND0][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTablesBand1[NO_RAMPS_BAND1][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTablesBand2[NO_RAMPS_BAND2][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTablesBand3[NO_RAMPS_BAND3][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTables8PSKBand0[NO_RAMPS_BAND0][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTables8PSKBand1[NO_RAMPS_BAND1][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTables8PSKBand2[NO_RAMPS_BAND2][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTables8PSKBand3[NO_RAMPS_BAND3][SIZE_OF_GSM_RAMP];
UINT8 Hw_Rf_Gain_Cal_Table[SIZE_OF_RX_TABLE];
UINT16 AFCDACStartValue;
UINT8 GLIMEISV[8];
BOOLEAN PTEBootSeq;
INT16 ADCcal[ADC_CAL_POINTS][ADC_CAL_CHANNELS]; /* e.g. Vbatt measurement offset... */
INT16 CVAR_SLOPE;
UINT16 CDAC;
UINT8 RFConfigLength;
UINT16 RFConfig[RF_CONFIG_DATA_SIZE_MAX];
UINT16 RxTxFreqOffset[NO_RF_BANDS];
UINT8 RFInitDataLength;
UINT16 RFInitData[NO_OF_RFINIT_PARM];
} CALIBRATION_DATA;
#elif defined (AERO_PLUS) //20050310 cmj for Lindy3 AERO_PLUS
// this is for AEROII, AERO+
#define NO_RF_BANDS 4
#define NO_RAMPS_BAND0 15
#define NO_RAMPS_BAND1 16
#define NO_RAMPS_BAND2 16
#define NO_RAMPS_BAND3 15
#define TX_RAMP_BURST_SIZE 33
#define TX_RAMP_ADJUST_SIZE 18
#define NO_TX_RAMP_ADJUST 0
#define SIZE_OF_GSM_RAMP 69
#define TX_RAMP_BAND0_OFFSET 12
#define TX_RAMP_BAND1_OFFSET (TX_RAMP_BAND0_OFFSET + (SIZE_OF_GSM_RAMP * sizeof(UINT16) * NO_RAMPS_BAND0))
#define TX_RAMP_BAND2_OFFSET (TX_RAMP_BAND1_OFFSET + (SIZE_OF_GSM_RAMP * sizeof(UINT16) * NO_RAMPS_BAND1))
#define TX_RAMP_BAND3_OFFSET (TX_RAMP_BAND2_OFFSET + (SIZE_OF_GSM_RAMP * sizeof(UINT16) * NO_RAMPS_BAND2))
#define FIRSTPCLBAND0 5
#define FIRSTPCLBAND1 0
#define FIRSTPCLBAND2 0
#define FIRSTPCLBAND3 5
#define RX_BB_TABLE_POS 0
#define RX_BB_TABLE_SIZE 4
#define RX_BAND_TABLE_SIZE 26
#define SIZE_OF_RX_TABLE ( RX_BB_TABLE_SIZE + (NO_RF_BANDS * RX_BAND_TABLE_SIZE) )
#define RX_BAND0_TABLE_POS (RX_BB_TABLE_POS + RX_BB_TABLE_SIZE)
#define RX_BAND1_TABLE_POS (RX_BAND0_TABLE_POS + RX_BAND_TABLE_SIZE)
#define RX_BAND2_TABLE_POS (RX_BAND1_TABLE_POS + RX_BAND_TABLE_SIZE)
#define RX_BAND3_TABLE_POS (RX_BAND2_TABLE_POS + RX_BAND_TABLE_SIZE)
#define ADC_CAL_POINTS 2
#define ADC_CAL_CHANNELS 6
//#define RF_CONFIG_DATA_SIZE_MAX 16
typedef struct
{
UINT16 CheckSum; /* 16 bit CRC */
UINT8 Version[10];
UINT16 PowerRampTablesBand0[NO_RAMPS_BAND0][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTablesBand1[NO_RAMPS_BAND1][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTablesBand2[NO_RAMPS_BAND2][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTablesBand3[NO_RAMPS_BAND3][SIZE_OF_GSM_RAMP];
UINT8 Hw_Rf_Gain_Cal_Table[SIZE_OF_RX_TABLE];
UINT16 AFCDACStartValue;
UINT8 GLIMEISV[8];
BOOLEAN PTEBootSeq;
INT16 ADCcal[ADC_CAL_POINTS][ADC_CAL_CHANNELS]; /* e.g. Vbatt measurement offset... */
//need to put AERO_PLUS option later.
INT16 CVAR_SLOPE;
UINT16 CDAC;
} CALIBRATION_DATA;
#elif defined (RFMD) /* RFMD !! */
#define NO_RF_BANDS 4
#define NO_RAMPS_BAND0 15 /* GSM900 */
#define NO_RAMPS_BAND1 16 /* DCS1800 */
#define NO_RAMPS_BAND2 16 /* PCS1900 */
#define NO_RAMPS_BAND3 15 /* GSM850 */
#define SIZE_OF_GSM_RAMP 20
#define TX_RAMP_BURST_SIZE 20
#define SIZE_OF_RX_TABLE 104 /* 4* 26 */
/* We may have no adjust data for Edge. HWA */
#define TX_RAMP_ADJUST_SIZE (SIZE_OF_GSM_RAMP - TX_RAMP_BURST_SIZE)
#define TX_RAMP_BAND0_OFFSET 12
#define TX_RAMP_BAND1_OFFSET (TX_RAMP_BAND0_OFFSET + (SIZE_OF_GSM_RAMP * sizeof(UINT16) * NO_RAMPS_BAND0))
#define TX_RAMP_BAND2_OFFSET (TX_RAMP_BAND1_OFFSET + (SIZE_OF_GSM_RAMP * sizeof(UINT16) * NO_RAMPS_BAND1))
#define TX_RAMP_BAND3_OFFSET (TX_RAMP_BAND2_OFFSET + (SIZE_OF_GSM_RAMP * sizeof(UINT16) * NO_RAMPS_BAND2))
#define FIRSTPCLBAND0 5
#define FIRSTPCLBAND1 0
#define FIRSTPCLBAND2 0
#define FIRSTPCLBAND3 5
#define RX_BB_TABLE_POS 0
#define RX_BB_TABLE_SIZE 0
#define RX_BAND_TABLE_SIZE 26 /* Assumes the RX gain table size is the same for every
band. */
#define RX_BAND0_TABLE_POS (RX_BB_TABLE_POS + RX_BB_TABLE_SIZE)
#define RX_BAND1_TABLE_POS (RX_BAND0_TABLE_POS + RX_BAND_TABLE_SIZE)
#define RX_BAND2_TABLE_POS (RX_BAND1_TABLE_POS + RX_BAND_TABLE_SIZE)
#define RX_BAND3_TABLE_POS (RX_BAND2_TABLE_POS + RX_BAND_TABLE_SIZE)
#define ADC_CAL_POINTS 2
#define ADC_CAL_CHANNELS 6
#define DCROFFS_GAIN_SETTINGS 7
#define DCROFFS_SUBBANDS 7
#define SIZE_OF_DCROFFS 392
typedef struct
{
UINT16 CheckSum; /* 16 bit CRC */
UINT8 Version[10];
UINT16 PowerRampTablesBand0[NO_RAMPS_BAND0][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTablesBand1[NO_RAMPS_BAND1][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTablesBand2[NO_RAMPS_BAND2][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTablesBand3[NO_RAMPS_BAND3][SIZE_OF_GSM_RAMP];
UINT8 Hw_Rf_Gain_Cal_Table[SIZE_OF_RX_TABLE];
UINT16 AFCDACStartValue;
UINT8 GLIMEISV[8];
BOOLEAN PTEBootSeq;
INT16 ADCcal[ADC_CAL_POINTS][ADC_CAL_CHANNELS]; /* e.g. Vbatt measurement offset... */
INT16 DCRRXOffset[NO_RF_BANDS][DCROFFS_GAIN_SETTINGS][DCROFFS_SUBBANDS][2];
} CALIBRATION_DATA;
#else
#define NO_RF_BANDS 4
#define NO_RAMPS_BAND0 15
#define NO_RAMPS_BAND1 16
#define NO_RAMPS_BAND2 16
#define NO_RAMPS_BAND3 15
#define TX_RAMP_BURST_SIZE 68
#define TX_RAMP_ADJUST_SIZE 0
#define NO_TX_RAMP_ADJUST 0
#define SIZE_OF_GSM_RAMP (TX_RAMP_BURST_SIZE + (TX_RAMP_ADJUST_SIZE * NO_TX_RAMP_ADJUST) + 1)
#define TX_RAMP_BAND0_OFFSET 12
#define TX_RAMP_BAND1_OFFSET (TX_RAMP_BAND0_OFFSET + (SIZE_OF_GSM_RAMP * sizeof(UINT16) * NO_RAMPS_BAND0))
#define TX_RAMP_BAND2_OFFSET (TX_RAMP_BAND1_OFFSET + (SIZE_OF_GSM_RAMP * sizeof(UINT16) * NO_RAMPS_BAND1))
#define TX_RAMP_BAND3_OFFSET (TX_RAMP_BAND2_OFFSET + (SIZE_OF_GSM_RAMP * sizeof(UINT16) * NO_RAMPS_BAND2))
#define FIRSTPCLBAND0 5
#define FIRSTPCLBAND1 0
#define FIRSTPCLBAND2 0
#define FIRSTPCLBAND3 5
#define RX_BB_TABLE_POS 0
#define RX_BB_TABLE_SIZE 4
#define RX_BAND_TABLE_SIZE 26
#define SIZE_OF_RX_TABLE ( RX_BB_TABLE_SIZE + (NO_RF_BANDS * RX_BAND_TABLE_SIZE) )
#define RX_BAND0_TABLE_POS (RX_BB_TABLE_POS + RX_BB_TABLE_SIZE)
#define RX_BAND1_TABLE_POS (RX_BAND0_TABLE_POS + RX_BAND_TABLE_SIZE)
#define RX_BAND2_TABLE_POS (RX_BAND1_TABLE_POS + RX_BAND_TABLE_SIZE)
#define RX_BAND3_TABLE_POS (RX_BAND2_TABLE_POS + RX_BAND_TABLE_SIZE)
#define ADC_CAL_POINTS 2
#define ADC_CAL_CHANNELS 6
//#define RF_CONFIG_DATA_SIZE_MAX 16
typedef struct
{
UINT16 CheckSum; /* 16 bit CRC */
UINT8 Version[10];
UINT16 PowerRampTablesBand0[NO_RAMPS_BAND0][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTablesBand1[NO_RAMPS_BAND1][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTablesBand2[NO_RAMPS_BAND2][SIZE_OF_GSM_RAMP];
UINT16 PowerRampTablesBand3[NO_RAMPS_BAND3][SIZE_OF_GSM_RAMP];
UINT8 Hw_Rf_Gain_Cal_Table[SIZE_OF_RX_TABLE];
UINT16 AFCDACStartValue;
UINT8 GLIMEISV[8];
BOOLEAN PTEBootSeq;
INT16 ADCcal[ADC_CAL_POINTS][ADC_CAL_CHANNELS]; /* e.g. Vbatt measurement offset... */
} CALIBRATION_DATA;
#endif /* End of file */
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -