Age1968A.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:9k
- /*****************************************************************************
- * 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:
- * ---------
- * Age1968a.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * Agilent 1968A software utility 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 _AGE1968A_H_
- #define _AGE1968A_H_
- #ifndef META_DLL_H
- #include "meta.h"
- #endif
- #ifndef _AGECOMMON_H_
- #include "agecommon.h"
- #endif
- #define AGE1960_READ_TX_POWER_TIMEOUT 3
- #define AGE1960_TX_POWER_MEASURE_COUNT 5
- #define AGE1960_TX_POWER_TRIGGER_DELAY 0
- #define AGE1960_TX_POWER_TRIGGER_QUALIFIER_ON 1
- #define AGE1960_TX_POWER_TRIGGER_QUALIFIER_OFF 0
- #define AGE1960_EPSK_TX_POWER_MEASURE_COUNT 5
- #define AGE1960_READ_PFER_TIMEOUT 3
- #define AGE1960_PFER_MEASURE_COUNT 10
- #define AGE1960_PFER_TRIGGER_DELAY 0
- #define AGE1960_PFER_TRIGGER_QUALIFIER_ON 1
- #define AGE1960_PFER_TRIGGER_QUALIFIER_OFF 0
- #define AGE1960_READ_IQ_TUNNING_TIMEOUT 3
- #define AGE1960_IQ_TUNNING_MEASURE_COUNT 20
- #define AGE1960_IQ_TUNNING_TRIGGER_DELAY 0
- #define AGE1960_IQ_TUNNING_SPUR_FREQ 10E06
- #define AGE1960_IQ_TUNNING_TRIGGER_QUALIFIER_ON 1
- #define AGE1960_IQ_TUNNING_TRIGGER_QUALIFIER_OFF 0
- // integrity
- #define INTEGRITY_NORMAL 0
- #define INTEGRITY_NO_RESULT_AVAILABLE 1
- #define INTEGRITY_MEASUREMENT_TIMEOUT 2
- #define INTEGRITY_HARDWARE_NOT_INSTASLLED 3
- #define INTEGRITY_HARDWARE_ERROR 4
- #define INTEGRITY_OVER_RANGE 5
- #define INTEGRITY_UNDER_RANGE 6
- #define INTEGRITY_BURST_SHORT 7
- #define INTEGRITY_TRIGGER_EARLY_OR_FALL_EARLY 8
- #define INTEGRITY_TRIGGER_LATE_OR_RISE_LATE 9
- #define INTEGRITY_SIGNAL_TOO_NOISY 10
- #define INTEGRITY_SYNC_NOT_FOUND 11
- #define INTEGRITY_OVEN_OUT_OF_RANGE 12
- #define INTEGRITY_UNIDENTIFIED_ERROR 13
- #define INTEGRITY_PCM_FULL_SCALE_WARNING 14
- #define INTEGRITY_QUESTIONABLE_RESULT_FOR_PGSM 15
- #define INTEGRITY_QUESTIONABLE_RESULT_DUE_TO_CHANNEL_MODE 16
- #define INTEGRITY_CAN_NOT_CORRELATE 17
- #define INTEGRITY_FREQUENCY_OUT_OF_RANGE 18
- #define INTEGRITY_UNCALIBRATED_DUE_TO_TEMPERATURE 19
- #define INTEGRITY_POTENTIAL_RECEIVER_SATURATION 20
- #define INTEGRITY_PARAMETER_ERROR 21
- #define INTEGRITY_UNSUPPORT_CONFIGURATION 22
- #define INTEGRITY_CALL_PROCESSING_OPERATION_FAILED 23
- #define INTEGRITY_CALIBRATION_ERROR 24
- #define INTEGRITY_BURST_NOT_FOUND 25
- #define INTEGRITY_MISSING_LOOKBACK_PACKETS 26
- #define INTEGRITY_NO_AT_LOOKBACK_PACKETS 27
- #define INTEGRITY_QUESTIONABLE_MS_TO_CELL_DATA 28
- extern ViStatus age1968A_operatingMode(ViSession vi, E_AGE_OPERATING_MODE OperatingMode);
- // CW mode
- extern ViStatus age1968A_cellPower_CW(ViSession vi, double dBm);
- extern ViStatus age1968A_GenFreq_CW(ViSession vi, FrequencyBand FreqBand, short arfcn);
- // PDTCH
- extern ViStatus age1968A_PDTCHMSTargetPower(ViSession vi, double dBm);
- extern ViStatus age1968A_PDTCHMSTxLevel(ViSession vi, int i_PCL);
- extern ViStatus age1968A_PDTCHARFCN(ViSession vi, short s_ARFCN);
- extern ViStatus age1968A_TXPowerContOn( ViSession vi );
- extern ViStatus age1968A_TXPowerContOff( ViSession vi );
- extern ViStatus age1968A_EPSK_TXPowerContOn( ViSession vi );
- extern ViStatus age1968A_EPSK_TXPowerContOff( ViSession vi );
- extern ViStatus age1968A_initMeasFcn_EGPRS_TXPOWER(ViSession vi);
- extern ViStatus age1968A_Config_ExpectedTxPower(ViSession vi, bool b_auto_control, double d_expected_power);
- extern ViStatus age1968A_ConfigTxPower(ViSession vi, int iMeasureCount, int iTriSour, int iDelay, int iTriQual, int iTimeout);
- extern ViStatus age1968A_confTXPower( ViSession vi, int iMeasureCount, int iTriSour,
- int iDelay, int iTriQual, int iTimeout );
- extern ViStatus age1968A_ReadTxPower(ViSession vi, ViReal64 *p_virTX);
- // PFER
- extern ViStatus age1968A_confPFER(ViSession vi, int iMeasureCount, int iTriSour,
- int iDelay, int iTriQual, int iTimeout);
- extern ViStatus age1968A_ReadFreqError(ViSession vi, ViReal64 *p_virFreqErr);
- extern ViStatus age1968A_ConfigTSC(ViSession vi, int i_TSC);
- extern ViStatus age1968A_Config_EPSK_CodingScheme(ViSession vi, int i_MCS);
- extern ViReal64 __fastcall get_Original_Offset(ViReal64 *p_IQTFreqs, ViReal64 *p_IQTResults, ViInt32 IQTTuningCount);
- extern ViReal64 __fastcall get_IQ_Imbalance(ViReal64 *p_IQTFreqs, ViReal64 *p_IQTResults, ViInt32 IQTTuningCount);
- extern ViStatus age1968A_Config_DynPower( ViSession vi, int iMeasureCount, int iTimeout );
- //---------------------------------------------------------------------------
- // EPSK
- extern ViStatus age1968A_Config_EPSK_TxPower(ViSession vi, int iMeasureCount, int iTriSour, int iDelay, int iTriQual, int iTimeout);
- extern ViStatus age1968A_ReadEGPRSTxPower(ViSession vi, ViReal64 *p_virTX);
- extern ViStatus age1968A_FetchEpskTxPower(ViSession vi, ViReal64 *p_virTX);
- // EPSK modulation accuracy
- extern ViStatus age1968A_Config_EPSK_ModACcuracy(ViSession vi, int iMeasureCount, int iTriSour, int iDelay, int iTimeout);
- extern ViStatus age1968A_Fetch_EPSK_Average_PhaseError(ViSession vi, ViReal64 *p_virPhErr);
- extern ViStatus age1968A_Fetch_EPSK_Average_OrignalOffset(ViSession vi, ViReal64 *p_virOOS);
- extern ViStatus age1968A_Fetch_EPSK_Average_IQImbalance(ViSession vi, ViReal64 *p_virSBS);
- extern ViStatus age1968A_Fetch_EPSK_Average_TxIq(ViSession vi, ViReal64 *p_virSBS, ViReal64 *p_virOOS);
- #endif