| /******************************************************************************* |
| * Modification Notice: |
| * -------------------------- |
| * This software is modified by MediaTek Inc. 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) 2016 |
| * |
| * 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: |
| * --------- |
| * cl1tsteltif.h |
| * |
| * Project: |
| * -------- |
| * MTXXXX Project |
| * |
| * Description: |
| * ------------ |
| * This file contains the elt if functions declare. |
| * |
| * Author: |
| * ------- |
| * |
| * |
| *============================================================================== |
| * HISTORY |
| * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| *------------------------------------------------------------------------------ |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * |
| * |
| * |
| * |
| * |
| *------------------------------------------------------------------------------ |
| * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| *============================================================================== |
| ******************************************************************************/ |
| |
| #ifndef _CL1TST_ELT_IF_H_ |
| #define _CL1TST_ELT_IF_H_ |
| |
| /*---------------------------------------------------------------------------- |
| Include Files |
| ----------------------------------------------------------------------------*/ |
| #include "cl1tstmetaif.h" |
| |
| /* RCP_ETS_TX_AVAILABLE_PWR_TEST_MODE_MSG*/ |
| typedef enum |
| { |
| TXAGC_CTRL_TYPE_STOP = 0, |
| TXAGC_CTRL_TYPE_START = 1, |
| TXAGC_CTRL_TYPE_GET_TX_PWR = 2, |
| TXAGC_CTRL_TYPE_INVALID = 0xFF |
| } RcpTstTxAgcCtrlTypeT; |
| |
| /** define the transmission signal type enumeration */ |
| typedef enum |
| { |
| CL1TST_ELT_TX_SIG_TYPE_1X = 1, |
| CL1TST_ELT_TX_SIG_TYPE_DO_PILOT = 2, |
| CL1TST_ELT_TX_SIG_TYPE_DO_ST2 = 3, |
| CL1TST_ELT_TX_SIG_TYPE_DO_PHYUT = 4, |
| CL1TST_ELT_TX_SIG_TYPE_RF_TONE = 6, |
| CL1TST_ELT_TX_SIG_TYPE_BB_TONE = 7 |
| } Cl1TstEltTxSigTypeT; |
| |
| |
| typedef enum |
| { |
| CL1TST_NULL = 0, |
| CL1TST_OVERHEADMESSAGE_TEST = 1, |
| CL1TST_FTCCRC_TEST = 2, |
| CL1TST_PHY_UT_TEST = 3, |
| CL1TST_FTCCRC_SINGLE_TEST = 4, |
| CL1TST_FCCCRC_TEST = 5 |
| } Cl1TstCfgTypeT; |
| |
| typedef enum |
| { |
| CL1TST_SUCCESSFULL = 0, |
| CL1TST_FAIL = 1 |
| } Cl1TstRspResultT; |
| |
| /** define the Pwr mode enumeration (Or APT, DPD) */ |
| typedef enum |
| { |
| CL1TST_PWR_MODE_ETM, |
| CL1TST_PWR_MODE_APT, |
| CL1TST_PWR_MODE_DPD |
| } Cl1TstPwrModeT; |
| |
| typedef struct |
| { |
| kal_uint16 FtcPerStatic; |
| kal_uint16 FccPerStatic; |
| kal_uint32 FtcTotalFwdPacketsCount; |
| kal_uint32 FtcTotalFwdGoodPacketsCount; |
| kal_uint32 FccTotalFwdPacketsCount; |
| kal_uint8 PreambleMacId; |
| kal_uint8 DrcIndex; |
| kal_uint32 RspFramConut; |
| }Cl1TstRspInfoT; |
| |
| |
| /** define RF transmitter control command structure */ |
| typedef struct |
| { |
| /* 0: 1xRTT, 1: EVDO */ |
| kal_uint8 RfMode; |
| |
| /* 0: OFF, 1: ON */ |
| kal_uint8 Action; |
| |
| /* 0: TXDFE RF tone for 1xRTT and EVDO |
| 1: TXDFE BB signal tone for 1xRTT and EVDO |
| 2: reverse 1xRTT signal for 1xRTT |
| 3: reverse EVDO pilot only for EVDO |
| 4: reverse EVDO subtype2 for EVDO */ |
| kal_uint8 SigType; |
| |
| /* CDMA Band Class to turn on*/ |
| kal_uint8 BandClass; |
| |
| /* Channel Number to turn on*/ |
| kal_uint16 ChannelNum; |
| |
| /* Power reference used for open loop estimation in 1/64dBm@S9.6 unit.*/ |
| kal_int16 PwrRef; |
| |
| /* Frequency offset for RF tone transmission */ |
| kal_uint32 FreqOffset; |
| |
| /* BB tone configuration parameters */ |
| kal_uint32 BbToneCfg; |
| |
| Cl1Tst1xSigParaT RttSigPara; |
| |
| /* total frequency offset error in Hz*/ |
| kal_int32 FoeHz; |
| |
| /* Open loop correct gain with S0.16 unit*/ |
| kal_int32 OlCorrGain; |
| |
| /* Open loop max slew with S2.6 unit*/ |
| kal_int32 OlMaxSlew; |
| |
| /* RPC combine with U5.0*/ |
| kal_uint16 RpcCombThr; |
| |
| /* RSSI value with filter in 1/64dBm@S7.6 unit.*/ |
| kal_int16 RssiWiFilter; |
| |
| /* TXAGC SW mode control |
| bit[7:0]: rpc_bit_src_sel, 1: sw mode, 0: normal mode |
| bit[15:8]: ks_value_src_sel, 1: sw mode, 0: normal mode |
| bit[23:16]: rpc_sym_pos_sel, 1: sw mode, 0: normal mode |
| */ |
| kal_uint32 TxAgcSwMode; |
| |
| /* Tx Agc control flag */ |
| kal_uint8 TxAgcFlag; |
| |
| /* TX AGC control type, |
| 0: stop sw txagc, |
| 1: start sw txagc */ |
| kal_uint8 CtrlType; |
| |
| /* Access/ Traffic channel */ |
| kal_uint8 ChanType; |
| |
| /* PHY subtype */ |
| kal_uint8 PhySubType; |
| |
| /* Power reference used for open loop estimation in 1/64dBm@S9.6 unit.*/ |
| kal_int16 PowerBase; /* Q6 dB */ |
| |
| /* Bit0: trans ind TRUE/FALSE, |
| Bit4: Close loop parameters enable/disable */ |
| kal_uint16 TestBmp; |
| |
| /* close loop step up size in 1/64dB@S2.6 unit */ |
| kal_int16 ClStepUp; |
| |
| /* close loop step down size in 1/64dB@S2.6 unit */ |
| kal_int16 ClStepDown; |
| |
| /* close loop adjustment limited in 1/64dB@S8.6 unit */ |
| kal_int16 ClAdjMax; |
| |
| /* close loop adjustment limited in 1/64dB@S8.6 unit */ |
| kal_int16 ClAdjMin; |
| |
| /* maximum transmit power adjustment in 1/64dB@S5.6 unit, set zero |
| if not use it */ |
| kal_int16 MaxPwrAdj; |
| |
| /* KS value in SW mode with S6.6 unit*/ |
| kal_uint16 PcgVldPat; //Indicate PCG valid pattern |
| |
| /* RPC bit in SW mode with U2.0 unit*/ |
| kal_uint16 RpcBitSw; |
| |
| /* KS value in SW mode with S6.6 unit*/ |
| kal_int16 KsValueSw; |
| |
| /* Indicate RPC symbol position */ |
| kal_uint16 RpcSymPosSw[16]; //1xRTT only |
| |
| /* bitmap indicate RC configuration for 16 PCGs */ |
| kal_uint16 RcCfgPat; // 1xRTT only, bitmap indicate RC configuration for 16 PCGs |
| |
| kal_uint16 Reserved; |
| |
| } Cl1TstTransmitCtrlEltCmdT; |
| |
| typedef struct |
| { |
| /*For EVDO*/ |
| Cl1TstTransmitCtrlCmdT Msg; |
| kal_uint16 EvChannelType; |
| kal_uint16 EvProtocolSubtype; |
| kal_uint16 EvAuxPilotMiniPayload; |
| kal_uint16 EvDrcGating; |
| kal_uint16 EvDrcBoostLength; |
| kal_uint16 EvDscBoostLength; |
| kal_uint16 EvDrcLength; |
| kal_uint16 EvFrameOffset; |
| /*subype0:0,0,1:9.6K,2:19.2k,3:38.4k,4:76.8k, 5:153.6 */ |
| kal_uint16 EvDataRate; |
| kal_uint16 EvDRCCover; |
| kal_uint16 EvDRCCover1; |
| kal_uint16 EvDRCCover2; |
| kal_uint16 EvDRCValue; |
| kal_uint16 EvDRCValue1; |
| kal_uint16 EvDSCValue; |
| kal_uint16 EvDSCValue1; |
| kal_uint16 EvDSCValue2; |
| kal_uint16 EvAckEnalble; |
| kal_uint16 EvAckUserType; |
| kal_uint16 EvAckBits; |
| kal_uint16 EvAckBits1; |
| kal_uint16 EvAckSuScale; |
| kal_uint16 EvAckMuScale; |
| kal_uint16 EvPreSlot; |
| kal_uint16 EvCapFrame; |
| } Cl1TstTransmitCtrlCmdPhyUT; |
| |
| /** define temperature back off data structure */ |
| typedef struct |
| { |
| kal_uint8 Band; |
| kal_int8 Temperature; |
| kal_int16 BackOff; |
| } Cl1TstTempBackOffDataT; |
| |
| /** define temperature back off set command structure */ |
| typedef struct |
| { |
| Cl1TstTempBackOffDataT BackOffData; |
| } Cl1TstTempBackOffSetCmdT; |
| |
| /** define temperature back off set response structure */ |
| typedef struct |
| { |
| /* Request execute status */ |
| Cl1TstReqStatusE Status; |
| } Cl1TstTempBackOffSetRspT; |
| |
| /** define temperature back off get command structure */ |
| typedef struct |
| { |
| /* band class */ |
| kal_uint8 Band; |
| kal_uint8 Reserved1; |
| kal_uint16 Reserved2; |
| } Cl1TstTempBackOffGetCmdT; |
| |
| /** define temperature back off get response structure */ |
| typedef struct |
| { |
| /* Request execute status */ |
| Cl1TstReqStatusE Status; |
| |
| /* Back off data */ |
| Cl1TstTempBackOffDataT BackOffData; |
| } Cl1TstTempBackOffGetRspT; |
| |
| typedef struct |
| { |
| /* TX AGC control type, |
| 0: stop sw txagc, |
| 1: start sw txagc, |
| 2: obtain current request power */ |
| kal_uint8 CtrlType; |
| |
| /* Tx slot */ |
| kal_uint8 TxSlot; |
| |
| /* Access/ Traffic channel */ |
| kal_uint8 ChanType; |
| |
| /* PHY subtype */ |
| kal_uint8 PhySubType; |
| |
| /* Power reference used for open loop estimation in 1/64dBm@S9.6 unit.*/ |
| kal_int16 PowerBase; /* Q6 dB */ |
| |
| /* Bit0: trans ind TRUE/FALSE, |
| Bit4: Close loop parameters enable/disable */ |
| kal_uint16 TestBmp; |
| |
| /* close loop step up size in 1/64dB@S2.6 unit */ |
| kal_int16 ClStepUp; |
| |
| /* close loop step down size in 1/64dB@S2.6 unit */ |
| kal_int16 ClStepDown; |
| |
| /* close loop adjustment limited in 1/64dB@S8.6 unit */ |
| kal_int16 ClAdjMax; |
| |
| /* close loop adjustment limited in 1/64dB@S8.6 unit */ |
| kal_int16 ClAdjMin; |
| |
| /* maximum transmit power adjustment in 1/64dB@S5.6 unit, set zero |
| if not use it */ |
| kal_int16 MaxPwrAdj; |
| |
| /* RPC bit in SW mode with U2.0 unit*/ |
| kal_uint16 RpcBitSw; /* Q6 dB */ |
| |
| /* KS value in SW mode with S6.6 unit*/ |
| kal_int16 KsValueSw; /* Q6 dB */ |
| |
| /* Reserved */ |
| kal_uint16 Reserved; |
| |
| } RcpTstTxAgcCtrlCmdT; |
| |
| /** define Tx AGC test ctrl message */ |
| typedef struct |
| { |
| kal_uint16 CtrlType; //1: start TxAGC test, 0: Stop TxAGC test |
| kal_uint16 PcgVldPat; //Indicate PCG valid pattern |
| kal_uint16 RpcBitSw; //RPC bit in SW mode with U2.0 unit |
| kal_uint16 RpcSymPosSw[16]; //Indicate RPC symbol position |
| kal_int16 KsValueSw; //KS value in SW mode with S6.6 unit |
| kal_uint16 ClStepUp; //Step size of close loop adjustment for increment |
| kal_uint16 ClStepDown; //Step size of close loop adjustment for decrement |
| kal_uint16 GatePat; //GateOn/Off pattern |
| kal_int16 ClAdjMax; //Maximum close loop accumulation |
| kal_int16 ClAdjMin; //Minimum close loop accumulation |
| kal_int16 MaxPwrAdj; //Maximum power adjustment |
| kal_uint16 RcCfgPat; //RC configuration per slot basis |
| kal_uint16 TxAgcCfgSlot;//Indicate TxAGC configuration start Slot |
| |
| } L1dTstTxAgcCtrlCmdT; |
| |
| |
| /** define Tx AGC test ctrl message response */ |
| typedef struct |
| { |
| /* Request execute status */ |
| Cl1TstReqStatusE Status; |
| } L1dTstTxAgcCtrlRspT; |
| |
| typedef struct |
| { |
| /* Preemption type:, |
| 0: stop preemption, |
| 1: start RTB/HSC preemption, */ |
| kal_uint8 Preempt; |
| } RcpTxSthRtbHscPreemptCtrlCmdT; |
| |
| typedef struct |
| { |
| /* Request execute status */ |
| Cl1TstReqStatusE Status; |
| } Cl1TstRxAntennaTestModeRspT; |
| |
| typedef struct |
| { |
| kal_uint32 CfgData; |
| } TxDfeBbToneCfgCmdT; |
| |
| |
| typedef struct |
| { |
| /* Request execute status */ |
| Cl1TstReqStatusE Status; |
| } TxDfeBbToneCfgRspT; |
| |
| typedef struct |
| { |
| kal_uint32 CfgData; |
| } TxDfeBbNcoCfgCmdT; |
| |
| typedef struct |
| { |
| /* Request execute status */ |
| Cl1TstReqStatusE Status; |
| } TxDfeBbNcoCfgRspT; |
| |
| /** define SNR query command structure */ |
| typedef struct |
| { |
| /* 0: 1xRTT, 1: EVDO */ |
| kal_uint8 RfMode; |
| |
| /* Bit0: main antenna, Bit1: diversity antenna, Bit2: SHDR */ |
| kal_uint8 PathBitMap; |
| } Cl1TstRxSnrQueryCmdT; |
| |
| /** define SNR query confirm structure */ |
| typedef struct |
| { |
| /* Request execute status */ |
| Cl1TstReqStatusE Status; |
| |
| /* Main antenna Rx Main Ant SNR, unit is Q5 dBm */ |
| kal_uint16 RxMainAntSnr; |
| |
| /* Diversity antenna Rx power, unit is Q5 dBm */ |
| kal_uint16 RxDivAntSnr; |
| |
| } Cl1TstRxSnrQueryRspT; |
| |
| /** define Ec/Io query command structure */ |
| typedef struct |
| { |
| /* 0: 1xRTT, 1: EVDO */ |
| kal_uint8 RfMode; |
| |
| /* Bit0: main antenna, Bit1: diversity antenna, Bit2: SHDR */ |
| kal_uint8 PathBitMap; |
| } Cl1TstRxEcIoQueryCmdT; |
| |
| /** define Ec/Io query confirm structure */ |
| typedef struct |
| { |
| /* Request execute status */ |
| Cl1TstReqStatusE Status; |
| |
| /* Main antenna Rx power, unit is Q5 dBm */ |
| kal_int16 RxMainAntEcIo; |
| |
| /* Diversity antenna Rx power, unit is Q5 dBm */ |
| kal_int16 RxDivAntEcIo; |
| |
| } Cl1TstRxEcIoQueryRspT; |
| |
| /** define ICS SYNC command ELT msg */ |
| typedef struct |
| { |
| /* |
| 0: ics wo afc wo 1x |
| 1: ics wi afc wo 1x |
| 2: ics wo afc wi 1x |
| 3: ics wi afc wi 1x |
| 4: ics wo signal |
| 5: ics wi strong signal |
| 6: ics foe |
| 7: ics preempt |
| 0xf----->valid(no test )*/ |
| kal_uint16 caseId ; |
| kal_uint16 Dummy ; |
| |
| } EltTstIcsTstCaseIdCfgT; |
| |
| typedef struct |
| { |
| kal_bool RcpDbgEn; /* 1->RCP subchannel in Debug mode, 0->normal mode */ |
| kal_bool RcpDbgVal; |
| kal_bool ArqDbgEn; /* 1->H/LARQ subchannel in Debug mode, 0->normal mode */ |
| kal_bool ArqDbgVal; |
| }EltTstMcdDebugMsgT; |
| |
| |
| typedef struct |
| { |
| SysCdmaBandT Band; |
| kal_uint16 Chan; |
| kal_uint8 TriggerSource; /* 0->IDP; 1->RUP */ |
| }EltRmcInterhoTstCfgT; |
| |
| typedef struct |
| { |
| kal_uint16 ResePilotPN; |
| }EltRmcIntrahoTstCfgT; |
| |
| |
| typedef struct |
| { |
| kal_uint8 DoSignalValidFlag; |
| } EltTstStbDoSignalCfgT; |
| |
| |
| typedef struct |
| { |
| kal_uint8 RttTimingValid; |
| kal_uint8 DoTimingValid; |
| } EltTstStbTimingCfgT; |
| |
| typedef struct |
| { |
| kal_uint8 temp_type; |
| } EltTstReadTempT; |
| |
| |
| /** define temperature get response structure */ |
| typedef struct |
| { |
| /* Request execute status */ |
| Cl1TstReqStatusE Status; |
| |
| /* Get temperature*/ |
| CL1D_RF_TEMPERATURE_QUERY_T Temperature; |
| } Cl1TstReadTempRspT; |
| |
| typedef struct |
| { |
| kal_uint8 State; |
| kal_uint8 DfsType; |
| kal_uint8 ChanIndex; |
| } Cl1TstRmcDfsMeasDoneRspT; |
| |
| |
| typedef struct |
| { |
| kal_bool result;/* 1->Pass, 0->Fail */ |
| }EltC2kPhyUtTstRptT; |
| |
| typedef struct |
| { |
| kal_bool CrcResult;/* 1->Pass, 0->Fail */ |
| kal_uint8 PreambleMacId; |
| kal_uint8 DrcIndex; |
| }EltC2kPhyUtRxCaseTstRptT; |
| |
| typedef struct |
| { |
| kal_bool RESET_EN; |
| kal_bool EQ_MODE_L1_EN; |
| kal_uint32 EQ_MODE; |
| kal_bool MMSE_FLAG_L1_EN; |
| kal_uint32 MMSE_FLAG; |
| kal_bool ITER_NUM_L1_EN; |
| kal_uint32 ITER_NUM; |
| kal_bool ALPHA_FILTER_MODE_L1_EN; |
| kal_uint32 ALPHA_FILTER_MODE; |
| kal_bool DATA_FTM_L1_EN; |
| kal_uint32 DATA_FRAC; |
| kal_uint32 C2I_FRAC; |
| kal_bool PRE_COURSE_L1_EN; |
| kal_uint32 PRE_COURSE; |
| kal_bool CORR_LEN_L1_EN; |
| kal_uint32 CORR_LEN; |
| kal_bool ALPHA_SHIFT_L1_EN; |
| kal_uint32 ALPHA_SHIFT; |
| kal_bool WIN_ADD_BD_L1_EN; |
| kal_uint32 WIN_ADD_BD; |
| kal_bool PD_MATRIX_NOISE_L1_EN; |
| kal_uint32 PD_MATRIX_NOISE; |
| }EltTstCuifCfgT; |
| |
| |
| typedef struct |
| { |
| Cl1TstCfgTypeT TestType; |
| }EltTstCfgT; |
| |
| typedef struct |
| { |
| Cl1TstCfgTypeT TestType; |
| Cl1TstRspResultT TestResult; |
| Cl1TstRspInfoT TestRspInfo; |
| }EltTstRspT; |
| |
| typedef struct |
| { |
| kal_uint8 IsStbOnlyMode; |
| } EltTstStbOnlyModeCfgT; |
| |
| typedef struct |
| { |
| SysAirInterfaceT Mode; |
| kal_uint32 Cl1RcdPwrCtrlPartialBypassConf; |
| kal_uint32 Cl1RcdClkCtrlPartialBypassConf; |
| kal_uint32 Cl1RcdSramCtrlPartialBypassConf; |
| } Cl1RcdPartialBypassConfT; |
| |
| typedef struct |
| { |
| CL1D_RF_TPC_SECTION_TABLE_T Table[C2K_MIPI_SUBBAND_NUM]; |
| } NvEditorMipiPaSectionDataTableT; |
| |
| /** define TPC MIPI codeword Setting command structure */ |
| typedef struct |
| { |
| /* update NVRAM flag, 0: do not update, 1: update */ |
| kal_uint8 UpdateNvram; |
| |
| /* 0: 1xRTT, 1: EVDO */ |
| kal_uint8 RfMode; |
| |
| /* To update, 0:ETM, 1:APT, 2:DPD */ |
| kal_uint8 PwrMode; |
| |
| /* CDMA Band Class to turn on*/ |
| kal_uint8 BandClass; |
| |
| /* TpcMipi*/ |
| NvEditorMipiPaSectionDataTableT TpcMipi; |
| |
| /* Reserved */ |
| kal_uint8 Reserved; |
| } Cl1TstSetTpcMipiCwCmdT; |
| |
| /** define TPC MIPI codeword setting confirm structure */ |
| typedef struct |
| { |
| /* Request execute status */ |
| Cl1TstReqStatusE Status; |
| } Cl1TstSetTpcMipiCwRspT; |
| |
| /** define TPC MIPI codeword getting command structure */ |
| typedef struct |
| { |
| /* 0: 1xRTT, 1: EVDO */ |
| kal_uint8 RfMode; |
| |
| /* To update, 0:ETM, 1:APT, 2:DPD */ |
| kal_uint8 PwrMode; |
| |
| /* CDMA Band Class to turn on*/ |
| kal_uint8 BandClass; |
| |
| /* Reserved */ |
| kal_uint16 Reserved; |
| |
| } Cl1TstGetTpcMipiCwCmdT; |
| |
| /** define MIPI codeword getting confirm structure */ |
| typedef struct |
| { |
| /* Request execute status */ |
| Cl1TstReqStatusE Status; |
| |
| /* TPC MIPI data */ |
| NvEditorMipiPaSectionDataTableT TpcMipi; |
| } Cl1TstGetTpcMipiCwRspT; |
| |
| /*---------------------------------------------------------------------------- |
| Global Typedefs |
| ----------------------------------------------------------------------------*/ |
| extern void Cl1TstEltIfGetRfPlatInfo(Cl1TstGetRfPlatInfoCmdT *Ptr); |
| extern void Cl1TstEltIfRfdTestModeReq(Cl1TstRfdTestModeReqCmdT *Ptr); |
| extern void Cl1TstEltIfRfdInitReq(Cl1TstRfdInitReqCmdT *Ptr); |
| extern void Cl1TstEltIfSetMipiCodeWord(Cl1TstSetMipiCodeWordCmdT *Ptr); |
| extern void Cl1TstEltIfGetMipiCodeWord(Cl1TstGetMipiCodeWordCmdT *Ptr); |
| extern void Cl1TstEltIfSetSpiData(Cl1TstSetSpiDataCmdT *Ptr); |
| extern void Cl1TstEltIfGetSpiData(Cl1TstGetSpiDataCmdT *Ptr); |
| extern void Cl1TstEltIfSetTpcMipiCodeWord(Cl1TstSetTpcMipiCwCmdT *Ptr); |
| extern void Cl1TstEltIfGetTpcMipiCodeWord(Cl1TstGetTpcMipiCwCmdT *Ptr); |
| extern void Cl1TstEltIfTransmitCtrl(Cl1TstTransmitCtrlEltCmdT *Ptr); |
| extern void Cl1TstEltIfReceiveCtrl(Cl1TstReceiveCtrlCmdT *Ptr); |
| extern void Cl1TstEltIfAfcConfig(Cl1TstAfcConfigCmdT *Ptr); |
| extern void Cl1TstEltIfTxAgcConfig(Cl1TstTxAgcConfigCmdT *Ptr); |
| extern void Cl1TstEltIfTxPowerQuery(Cl1TstTxPowerQueryCmdT *Ptr); |
| extern void Cl1TstEltIfRxAgcConfig(Cl1TstRxAgcConfigCmdT *Ptr); |
| extern void Cl1TstEltIfRxRssiQuery(Cl1TstRxRssiQueryCmdT *Ptr); |
| extern void Cl1TstEltIfRxSnrQuery(Cl1TstRxSnrQueryCmdT *Ptr); |
| extern void Cl1TstEltIfRxEcIoQuery(Cl1TstRxEcIoQueryCmdT *Ptr); |
| extern void Cl1TstEltIfAfcCalDataSet(Cl1TstAfcCalDataSetCmdT *Ptr); |
| extern void Cl1TstEltIfAfcCalDataGet(Cl1TstAfcCalDataGetCmdT *Ptr); |
| extern void Cl1TstEltIfRxCalDataSet(Cl1TstRxCalDataSetCmdT *Ptr); |
| extern void Cl1TstEltIfRxCalDataGet(Cl1TstRxCalDataGetCmdT *Ptr); |
| extern void Cl1TstEltIfTxCalDataSet(Cl1TstTxCalDataSetCmdT *Ptr); |
| extern void Cl1TstEltIfTxCalDataGet(Cl1TstTxCalDataGetCmdT *Ptr); |
| #ifndef __MD93__ |
| extern void Cl1TstEltIfLnaCalPwrPointGet(Cl1TstLnaCalPwrPointGetCmdT *Ptr); |
| #endif |
| #if (!defined(__MD93__)) && (!defined(__MD95__)) |
| extern void Cl1TstEltIfRxGainGet(Cl1TstRxGainGetCmdT *Ptr); |
| extern void Cl1TstEltIfTxGainGet(Cl1TstTxGainGetCmdT *Ptr); |
| extern void Cl1TstEltIfSetBpiData(Cl1TstSetBpiDataCmdT *Ptr); |
| extern void Cl1TstEltIfGetBpiData(Cl1TstGetBpiDataCmdT *Ptr); |
| extern void Cl1TstEltIfRxAgcFixManualConfig(Cl1TstRxAgcFixManualConfigCmdT *MsgPtr); |
| #endif |
| extern void Cl1TstEltIfFhcStart(Cl1TstFhcStartCmdT *Ptr); |
| extern void Cl1TstEltIfTempBackOffSet(Cl1TstTempBackOffSetCmdT *Ptr); |
| extern void Cl1TstEltIfTempBackOffGet(Cl1TstTempBackOffGetCmdT *Ptr); |
| extern void Cl1tstEltIfRcpAccRtbPreempt(RcpTxSthRtbHscPreemptCtrlCmdT *Ptr); |
| extern void Cl1tstEltIfRcpTxAgcCtrl(RcpTstTxAgcCtrlCmdT *Ptr); |
| extern void Cl1tstEltIfL1dTxAgcCtrl(L1dTstTxAgcCtrlCmdT *Ptr); |
| extern void Cl1tstEltIfTxDfeBbToneCfg(TxDfeBbToneCfgCmdT *Ptr); |
| extern void Cl1tstEltIfTxDfeBbNcoCfg(TxDfeBbNcoCfgCmdT *Ptr); |
| extern void Cl1TstEltIfIcsCaseIdCfg(EltTstIcsTstCaseIdCfgT *Ptr); |
| extern void Cl1TstEltIfMcdDbgMsg(EltTstMcdDebugMsgT *MsgPtr); |
| extern void Cl1TstEltRmcInterhoTstCfg(EltRmcInterhoTstCfgT *Ptr); |
| extern void Cl1TstEltRmcIntrahoTstCfg(EltRmcIntrahoTstCfgT * Ptr); |
| extern void Cl1TstEltIfStbDoSignalCfg(EltTstStbDoSignalCfgT *Ptr); |
| extern void Cl1TstEltIfStbTimingCfg(EltTstStbTimingCfgT *Ptr); |
| extern void Cl1PhyUtRptToScrip(EltC2kPhyUtTstRptT *CheckRptMsg); |
| extern void Cl1PhyUtRxCaseRptToScript(EltC2kPhyUtRxCaseTstRptT *CheckRptMsg); |
| extern void Cl1TestDfsMeasDone(Cl1TstRmcDfsMeasDoneRspT *CheckRptMsg); |
| extern void Cl1TstEltIfSendMsg(ilm_struct *rsp_ilm_ptr); |
| extern void Cl1TstEltIfCuifCfg(EltTstCuifCfgT *MsgPtr); |
| extern void Cl1SendTstResp(Cl1TstCfgTypeT Type,Cl1TstRspResultT Result,Cl1TstRspInfoT *RspInfo); |
| extern void Cl1TstEltIfStbOnlyModeCfg(EltTstStbOnlyModeCfgT *MsgPtr); |
| extern void Cl1TstEltIfRcPartialBypassConf(Cl1RcdPartialBypassConfT* MsgPtr); |
| #endif /* _CL1TST_ELT_IF_H_ */ |
| |