RCT_ctrl.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:8k
- /*****************************************************************************
- * 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:
- * ---------
- * RCT_ctrl.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * Radio Communication Tester control function 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 _RCT_CTRL_H_
- #define _RCT_CTRL_H_
- // equipment
- #ifndef _AGECOMMON_H_
- #include "AgeCommon.h"
- #endif
- #ifndef _RCT_COMMON_H_
- #include "rct_common.h"
- #endif
- #ifndef _CMU200_H_
- #include "cmu200.h"
- #endif
- /*---------------------------------------------------------------------------*/
- class CRCTCTRL
- {
- private:
- //CMU_VAR cmu;
- protected:
- public:
- CRCTCTRL(void);
- ~CRCTCTRL();
- bool RCT_Init(S_RCT *p_rct, AnsiString asFreqBand);
- bool RCT_dcl(S_RCT *p_rct);
- bool RCT_reset(S_RCT *p_rct);
- bool RCT_close(S_RCT *p_rct, AnsiString asFreqBand);
- bool RCT_close_RM(S_RCT *p_rct);
- bool RCT_QueryTaModel(S_RCT *p_rct, AnsiString &asTaModel);
- bool RCT_operatingMode( S_RCT *p_rct, ViInt16 OperatingMode );
- bool RCT_cellBand(S_RCT *p_rct, int i_BAND);
- bool RCT_BurstModTran(S_RCT *p_rct);
- bool RCT_ContModTran(S_RCT *p_rct);
- bool RCT_BCHARFCN(S_RCT *p_rct, short s_ARFCN);
- bool RCT_GenFreq_CW(S_RCT *p_rct, FrequencyBand FreqBand, short arfcn);
- bool RCT_cellPower_CW(S_RCT *p_rct, double d_P_DL);
- bool RCT_cellPower(S_RCT *p_rct, double d_P_DL);
- bool RCT_PowTranCont(S_RCT *p_rct);
- bool RCT_PowTranBurst(S_RCT *p_rct);
- bool RCT_GenFreqOffset(S_RCT *p_rct, double d_kHz);
- bool RCT_GenTsc(S_RCT *p_rct, E_CMU200_GEN_TSC_TYPE_T tsc);
- bool RCT_GenBitMod(S_RCT *p_rct, E_CMU200_GEN_BIT_MODU_T bit_mod);
- bool RCT_InitRfg(S_RCT *p_rct);
- bool RCT_TCHARFCN(S_RCT *p_rct, short s_ARFCN);
- bool RCT_PDTCHARFCN(S_RCT *p_rct, short s_ARFCN);
- bool RCT_TCHTimeslot(S_RCT *p_rct, int TCHTimeslot);
- bool RCT_TCHLevel(S_RCT *p_rct, double level);
- bool RCT_initMeasFcn_TXPOWER(S_RCT *p_rct);
- bool RCT_initMeasFcn_EGPRS_TXPOWER(S_RCT *p_rct);
- bool RCT_MSTXLevel(S_RCT *p_rct, int i_pcl);
- bool RCT_PDTCHMSTargetPower(S_RCT *p_rct, double dBm);
- bool RCT_PDTCHMSTxLevel(S_RCT *p_rct, int i_pcl);
- bool RCT_Config_ExpectedTxPower(S_RCT *p_rct, bool b_auto_control, double d_expected_power);
- bool RCT_confTXPower(S_RCT *p_rct);
- bool RCT_confTXPower_EPSK(S_RCT *p_rct);
- bool RCT_ConfigTSC(S_RCT *p_rct, char c_TSC);
- bool RCT_Config_EPSK_CodingScheme(S_RCT *p_rct, int i_MCS);
- bool RCT_TXPowerContOn(S_RCT *p_rct);
- bool RCT_EPSK_TXPowerContOn( S_RCT *p_rct );
- bool RCT_TXPowerContOff(S_RCT *p_rct);
- bool RCT_EPSK_TXPowerContOff( S_RCT *p_rct );
- bool RCT_ReadTxPower(S_RCT *p_rct, ViReal64 &virTX);
- bool RCT_ReadTxPower_EPSK( S_RCT *p_rct, ViReal64 &virTX );
- // phase, frequency error
- bool RCT_confPFER(S_RCT *p_rct, int measure_count );
- // bool RCT_initMeasFcn_PFER(S_RCT *p_rct);
- bool RCT_FetchAvgFreqErr(S_RCT *p_rct, ViReal64 &AvgFreqErr);
- bool RCT_FetchAvgPhErr(S_RCT *p_rct, ViReal64 &AvgPhErr);
- bool RCT_ReadAvgFreqErr(S_RCT *p_rct, ViReal64 &AvgFreqErr);
- bool RCT_ReadAvgPhErr(S_RCT *p_rct, ViReal64 &AvgPhErr);
- // IQ tunning
- bool RCT_initMeasFcn_IQTuning(S_RCT *p_rct);
- bool RCT_confIQTuning(S_RCT *p_rct, int measure_count);
- bool RCT_readTxOriginalOffset(S_RCT *p_rct, double &d_Original_Offset);
- bool RCT_fetchTxOriginalOffset(S_RCT *p_rct, double &d_Original_Offset);
- bool RCT_readTxIqImbalance(S_RCT *p_rct, double &d_IQ_Imbalance);
- bool RCT_fetchTxIqImbalance(S_RCT *p_rct, double &d_IQ_Imbalance);
- bool RCT_readTxIq(S_RCT *p_rct, double &d_IQ_Imbalance, double &d_Original_Offset);
- // EPSK
- bool RCT_Config_EPSK_ModACcuracy(S_RCT *p_rct, int iMeasureCount, int iTriSour, int iDelay, int iTimeout);
- bool RCT_Fetch_EPSK_Average_OrignalOffset(S_RCT *p_rct, ViReal64 *p_virOOS);
- bool RCT_Fetch_EPSK_Average_IQImbalance(S_RCT *p_rct, ViReal64 *p_virSBS);
- bool RCT_Fetch_EPSK_Average_TxIq(S_RCT *p_rct, ViReal64 *p_virSBS, ViReal64 *p_virOOS);
- // Multislot TX power
- bool RCT_confMultiSlotTxPower( S_RCT *p_rct, int measure_count, E_MODULATION_TYPE modulation );
- bool RCT_readMultiSlotAverageTxPower( S_RCT *p_rct, S_MULTISLOT_BURST_POWER *power );
- // signalling
- bool RCT_sig_Init(S_RCT *p_rct, AnsiString asFreqBand);
- bool RCT_sig_close(S_RCT *p_rct, AnsiString asFreqBand);
- bool RCT_sig_cellBand(S_RCT *p_rct, int i_BAND);
- bool RCT_sig_cellPower(S_RCT *p_rct, double d_P_DL);
- bool RCT_sig_BCHARFCN(S_RCT *p_rct, short s_ARFCN);
- bool RCT_sig_TCHARFCN(S_RCT *p_rct, short s_ARFCN);
- bool RCT_sig_TCHTimeslot(S_RCT *p_rct, int TCHTimeslot);
- bool RCT_sig_TCHLevel(S_RCT *p_rct, double level);
- bool RCT_sig_ConfigTSC(S_RCT *p_rct, char c_TSC);
- bool RCT_sig_MSTXLevel(S_RCT *p_rct, int i_pcl);
- bool RCT_sig_confPFER(S_RCT *p_rct, int measure_count );
- bool RCT_sig_initMeasFcn_PFER(S_RCT *p_rct);
- bool RCT_sig_FetchAvgFreqErr(S_RCT *p_rct, ViReal64 &AvgFreqErr);
- bool RCT_sig_FetchAvgPhErr(S_RCT *p_rct, ViReal64 &AvgPhErr);
- bool RCT_sig_ReadAvgFreqErr(S_RCT *p_rct, ViReal64 &AvgFreqErr);
- bool RCT_sig_ReadAvgPhErr(S_RCT *p_rct, ViReal64 &AvgPhErr);
- // string
- int RCT_StringToDeviceType( AnsiString as_str );
- AnsiString RCT_DeviceTypeToString( E_DEVICE_TYPE device_type );
- };
- #endif