rf_multislottx_run.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:
- * ---------
- * rf_MultiSlotTx_run.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * RF multi slot TX runtime 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 rf_MultiSlotTxH
- //#define rf_MultiSlotTxH
- #ifndef _RF_MULTISLOTTX_RUN_H_
- #define _RF_MULTISLOTTX_RUN_H_
- #include "meta.h"
- #ifndef _MAN_HANDLE_H_
- #include "man_handle.h"
- #endif
- //---------------------------------------------------------------------------
- #define STATE_MULTI_SLOT_TX_RUN_OK 0
- #define STATE_MULTI_SLOT_TX_RUN_FAIL 1
- #define STATE_MULTI_SLOT_TX_RUN_TIMEOUT 2
- #define STATE_MULTI_SLOT_TX_RUN_STOP 3
- /*---------------------------------------------------------------------------*/
- class CRFMULTISLOTTXRUN
- {
- private:
- CMETAHANDLE m_META_HANDLE_Obj;
- int Band;
- int Arfcn;
- int TSC;
- char TimeSlotMask;
- int CS[4];
- int PCL[4];
- int Frames;
- int AFCDac;
- int TA;
- int Pattern;
- bool IsEDGESupport;
- unsigned short PatternData;
- // RfBBTXCfg2
- char TxTrimI;
- char TxTrimQ;
- char TxOffsetI;
- char TxOffsetQ;
- char TxCalbias;
- char TxIQSwap;
- char TxCMV;
- char TxGain;
- char TxCalrcsel;
- // RfBBTXCfg3
- char TxPhasesel;
- bool BBTXCfg3Support;
- RfBBTXCfg2 *RFReq_BBTXCFG2, *RFCnf_BBTXCFG2;
- RfBBTXCfg3 *RFReq_BBTXCFG3, *RFCnf_BBTXCFG3;
- bool isMultiSlot_TX_ExSupport;
- bool isFirstReq;
- protected:
- void Confirm( int confirm_state );
- public:
- CRFMULTISLOTTXRUN( void );
- ~CRFMULTISLOTTXRUN();
- void REQ_Finish( void );
- void REQ_TimeOut( void );
- void REQ_MultiSlotTx( void );
- short RFID_MULTISLOTTX;
- RfMultiSlotTX_Req *RFReq_MultiSlotTx;
- Rf_MultiSlotTXEx_Req *RFReq_EPSK_MultiSlotTx;
- void REQ_SelectBand( void );
- void REQ_BBTXCfg2( void );
- void REQ_BBTXCfg3( void );
-
- // call back
- void __stdcall CNF_SelectBand( const unsigned char cnf, const short token, void *usrData );
- void __stdcall CNF_MultiSlotTx(const unsigned char cnf, const short token, void *usrData);
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
- // Public member
- int ConfirmState;
- void (*ConfirmCallback)( void );
- // Public interface
- void REQ_Start( int band, int arfcn, int tsc, int *cs, int *pcl,
- int frames, int afc_dac, char TimeSlotMask_par,
- int ta, bool isEDGEsupport, int pattern, unsigned short pattern_data,
- char tx_trim_i, char tx_trim_q, char tx_offset_i,
- char tx_offset_q, char tx_cal_bias, char tx_iq_swap,
- char tx_cmv, char tx_gain, char tx_calrcsel, char tx_phasesel, bool bb_tx_cfg3_support );
- void REQ_Stop( void );
-
- };
- #endif