meta_const.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:6k
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2005
- *
- * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
- * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
- * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
- * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
- * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
- * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
- * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
- * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
- * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
- * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
- *
- * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
- * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
- * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
- * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
- * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
- *
- * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
- * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
- * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
- * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
- * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
- *
- *****************************************************************************/
- /*****************************************************************************
- *
- * Filename:
- * ---------
- * meta_const.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * META constant header
- *
- * Author:
- * -------
- * Andy Ueng (mtk00490)
- *
- *============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * $Revision$
- * $Modtime$
- * $Log$
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *============================================================================
- ****************************************************************************/
- #ifndef _META_CONST_H_
- #define _META_CONST_H_
- // GSM400 (GSM450)
- const short GSM400_MIN_ARFCN = 259;
- const short GSM400_MAX_ARFCN = 293;
- const short GSM850_MIN_ARFCN = 128;
- const short GSM850_MAX_ARFCN = 251;
- // E-GSM900
- const short GSM900_MIN_ARFCN = 0;
- const short GSM900_MAX_ARFCN = 1023;
- const short DCS1800_MIN_ARFCN = 512;
- const short DCS1800_MAX_ARFCN = 885;
- const short PCS1900_MIN_ARFCN = 512;
- const short PCS1900_MAX_ARFCN = 810;
- const int RF_RX_LOSS_END_OF_TABLE = -1;
- const float TARGET_TO_PC_DEVIDE = 8.0;
- const float PC_TO_TARGET_MULTIPLY = 8.0;
- const float AVG_POWER_PC_SIDE_MULTIPLY = PC_TO_TARGET_MULTIPLY;
- const AVG_POWER_DIGITS = 4;
- const float DEVIATION_PC_SIDE_MULTIPLY = PC_TO_TARGET_MULTIPLY;
- const float GAIN_REQUEST_PC_SIDE_MULTIPLY = PC_TO_TARGET_MULTIPLY;
- const float GAIN_OFFSET_PC_DEVIDE = TARGET_TO_PC_DEVIDE;
- const float GAIN_OFFSET_PC_MULTIPLY = PC_TO_TARGET_MULTIPLY;
- const DEVIATION_DIGITS = 4;
- const GAIN_DIGITS = 4;
- const RF_AFC_SLOPE_DENOMINATOR = 4096; //denominator
- // TX_Level
- const RF_RAMP_TABLE_TX_LEVEL_COUNT=16;
- const RF_RAMP_TABLE_RAMP_COUNT=16;
- const RF_RAMP_RANGE_COUNT =4;
- const RF_RAMP_UP_INDEX = 0;
- const RF_RAMP_DOWN_INDEX = 1;
- const RF_RAMP_GSM_LOWEST_POWER = 5;
- const RF_RAMP_DCS_PCS_LOWEST_POWER = 0;
- const RF_PM_MAX_TEST_SAMPLES = 2000;
- const MIDI_BUF_SIZE= 2100;
- const MAX_GROUP_NUM_IN_FDM = 20; // MAX group num in FDM
- const MAX_ELEMENT_NUM_IN_GROUP = 60; // MAX element num in a group
- const MEAT_MAX_GROUP_NAME_LEN = 100;
- const META_MAX_ELEMENT_NAME_LEN = 200;
- const META_MAX_REC_NAME_LEN = 200;
- const char CH_SEP = ' ';
- const META_FIR_COEFF_INPUT_ELEMENT_COUNT = 30;
- const META_FIR_COEFF_OUTPUT_ELEMENT_COUNT = 30;
- const META_FIR_COEFF_ELEMENT_COUNT = META_FIR_COEFF_INPUT_ELEMENT_COUNT +
- META_FIR_COEFF_OUTPUT_ELEMENT_COUNT ;
- const FDM_DATA_VALID = 0;
- const FDM_DATA_INVALID = 1;
- const FDM_WRITE_SUCCESS = 0;
- const FDM_WRITE_FAIL = 1;
- const FDM_READ_SUCCESS = 0; // added by Andy Ueng
- const FDM_READ_FAIL = 1; // added by Andy Ueng
- const RAW_DATA_START_COL = 1;
- const RAW_DATA_START_ROW = 1;
- const RAW_DATA_COL_COUNTS = 8; // 8 col raw data in a row.
- const RAW_DATA_BUF_LEN = 2000;
- const MAX_GROUP_NAME_LEN = 50;
- const MAX_ELEMENT_NAME_LEN = 50;
- const MAX_STRUCT_NAME_LEN = 50;
- const MAX_FDM_REC_LEN = 1024*16;
- const MAX_ELEMENT_IN_FDM = 300;
- // META factory constant
- // const int BAND_COUNT = 5;
- const char DEFAULT_SEP_CHAR = ',';
- const int MF_RF_LAST_ELEMENT = RF_RX_LOSS_END_OF_TABLE;
- // const int MF_RF_GAIN_TO_BE_SUB = -40;
- const int MF_RF_GAIN_TO_BE_SUB = -35;
- // const int MF_RF_PATH_LOSS_COUNT = 12;
- #endif