rf_mt6139reg.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:12k
- /*****************************************************************************
- * 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_mt6139.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * MT6139 register read/write 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_MT6139REG_H_
- #define _RF_MT6139REG_H_
- // common
- #ifndef META_DLL_H
- #include "meta.h"
- #endif
- #ifndef _MAN_HANDLE_H_
- #include "man_handle.h"
- #endif
- #ifndef _METAAPP_COMMON_H_
- #include "metaapp_common.h"
- #endif
- // chip
- #ifndef _MT6139_COMMON_H_
- #include "mt6139_common.h"
- #endif
- /*---------------------------------------------------------------------------*/
- /*---------------------------------------------------------------------------*/
- class CRFMT6139REG
- {
- private:
- // common
- unsigned int m_uiFinalRfid;
- CMETAHANDLE m_META_HANDLE_Obj;
- E_METAAPP_RESULT_T m_eConfirmState;
- bool m_bIsMT6139All;
- S_MT6139_CW0 m_sMT6139CW0;
- S_MT6139_CW1 m_sMT6139CW1;
- S_MT6139_CW2 m_sMT6139CW2;
- S_MT6139_CW3 m_sMT6139CW3;
- S_MT6139_CW4 m_sMT6139CW4;
- S_MT6139_CW5 m_sMT6139CW5;
- S_MT6139_CW6 m_sMT6139CW6;
- S_MT6139_CW7 m_sMT6139CW7;
- S_MT6139_CW8 m_sMT6139CW8;
- S_MT6139_CW9 m_sMT6139CW9;
- S_MT6139_CW10 m_sMT6139CW10;
- S_MT6139_CW11 m_sMT6139CW11;
- S_MT6139_CW15 m_sMT6139CW15;
- protected:
- void Confirm(E_METAAPP_RESULT_T confirm_state);
- public:
- CRFMT6139REG(void);
- ~CRFMT6139REG();
- void (*ConfirmCallback)(void);
- void REQ_Stop(void);
- void Set_MT6139AllToReg_Start( unsigned int rf_id );
- void Set_MT6139AllToReg( void );
- void Get_MT6139AllFromReg_Start( unsigned int rf_id );
- void Get_MT6139AllFromReg( void );
- // MT6139 CW0
- void Compose_MT6139CW0( S_MT6139_CW0 &mt6140_cw0_par, unsigned int &bsi_data, unsigned int rf_id );
- void DeCompose_MT6139CW0( unsigned int reg_data, S_MT6139_CW0 &mt6140_cw0_par, unsigned int rf_id );
- void Set_MT6139CW0ToReg_Start( S_MT6139_CW0 &mt6139_cw0_par, unsigned int rf_id );
- void Set_MT6139CW0ToReg( void );
- void Get_MT6139CW0FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW0FromReg( void );
- // MT6139 CW1
- void Compose_MT6139CW1( S_MT6139_CW1 &mt6140_cw1_par, unsigned int &bsi_data, unsigned int rf_id );
- void DeCompose_MT6139CW1( unsigned int reg_data, S_MT6139_CW1 &mt6140_cw1_par, unsigned int rf_id );
- void Set_MT6139CW1ToReg_Start( S_MT6139_CW1 &mt6139_cw1_par, unsigned int rf_id );
- void Set_MT6139CW1ToReg( void );
- void Get_MT6139CW1FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW1FromReg( void );
- // MT6139 CW2
- void Compose_MT6139CW2( S_MT6139_CW2 &mt6140_cw2_par, unsigned int &bsi_data, unsigned int rf_id );
- void DeCompose_MT6139CW2( unsigned int reg_data, S_MT6139_CW2 &mt6140_cw2_par, unsigned int final_rfid_par );
- void Set_MT6139CW2ToReg_Start( S_MT6139_CW2 &mt6139_cw2_par, unsigned int rf_id );
- void Set_MT6139CW2ToReg( void );
- void Get_MT6139CW2FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW2FromReg( void );
- // MT6139 CW3
- void Compose_MT6139CW3( S_MT6139_CW3 &mt6140_cw3_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6139CW3( unsigned int reg_data, S_MT6139_CW3 &mt6140_cw3_par, unsigned int final_rfid_par );
- void Set_MT6139CW3ToReg_Start( S_MT6139_CW3 &mt6139_cw3_par, unsigned int rf_id );
- void Set_MT6139CW3ToReg( void );
- void Get_MT6139CW3FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW3FromReg( void );
- // MT6139 CW4
- void Compose_MT6139CW4( S_MT6139_CW4 &mt6140_cw4_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6139CW4( unsigned int reg_data, S_MT6139_CW4 &mt6140_cw4_par, unsigned int final_rfid_par );
- void Set_MT6139CW4ToReg_Start( S_MT6139_CW4 &mt6139_cw4_par, unsigned int rf_id );
- void Set_MT6139CW4ToReg( void );
- void Get_MT6139CW4FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW4FromReg( void );
- // MT6139 CW5
- void Compose_MT6139CW5( S_MT6139_CW5 &mt6140_cw5_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6139CW5( unsigned int reg_data, S_MT6139_CW5 &mt6140_cw5_par, unsigned int final_rfid_par );
- void Set_MT6139CW5ToReg_Start( S_MT6139_CW5 &mt6139_cw5_par, unsigned int rf_id );
- void Set_MT6139CW5ToReg( void );
- void Get_MT6139CW5FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW5FromReg( void );
- // MT6139 CW6
- void Compose_MT6139CW6( S_MT6139_CW6 &mt6140_cw6_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6139CW6( unsigned int reg_data, S_MT6139_CW6 &mt6140_cw6_par, unsigned int final_rfid_par );
- void Set_MT6139CW6ToReg_Start( S_MT6139_CW6 &mt6139_cw6_par, unsigned int rf_id );
- void Set_MT6139CW6ToReg( void );
- void Get_MT6139CW6FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW6FromReg( void );
- // MT6139 CW7
- void Compose_MT6139CW7( S_MT6139_CW7 &mt6140_cw7_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6139CW7( unsigned int reg_data, S_MT6139_CW7 &mt6139_cw7_par, unsigned int final_rfid_par );
- void Set_MT6139CW7ToReg_Start( S_MT6139_CW7 &mt6139_cw7_par, unsigned int rf_id );
- void Set_MT6139CW7ToReg( void );
- void Get_MT6139CW7FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW7FromReg( void );
- // MT6139 CW8
- void Compose_MT6139CW8( S_MT6139_CW8 &mt6140_cw8_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6139CW8( unsigned int reg_data, S_MT6139_CW8 &mt6140_cw8_par, unsigned int final_rfid_par );
- void Set_MT6139CW8ToReg_Start( S_MT6139_CW8 &mt6140_cw8_par, unsigned int rf_id );
- void Set_MT6139CW8ToReg( void );
- void Get_MT6139CW8FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW8FromReg( void );
- // MT6139 CW9
- void Compose_MT6139CW9( S_MT6139_CW9 &mt6140_cw9_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6139CW9( unsigned int reg_data, S_MT6139_CW9 &mt6140_cw9_par, unsigned int final_rfid_par );
- void Set_MT6139CW9ToReg_Start( S_MT6139_CW9 &mt6140_cw9_par, unsigned int rf_id );
- void Set_MT6139CW9ToReg( void );
- void Get_MT6139CW9FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW9FromReg( void );
- // MT6139 CW10
- void Compose_MT6139CW10( S_MT6139_CW10 &mt6140_cw10_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6139CW10( unsigned int reg_data, S_MT6139_CW10 &mt6140_cw10_par, unsigned int final_rfid_par );
- void Set_MT6139CW10ToReg_Start( S_MT6139_CW10 &mt6140_cw10_par, unsigned int rf_id );
- void Set_MT6139CW10ToReg( void );
- void Get_MT6139CW10FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW10FromReg( void );
- // MT6139 CW11
- void Compose_MT6139CW11( S_MT6139_CW11 &mt6140_cw11_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6139CW11( unsigned int reg_data, S_MT6139_CW11 &mt6140_cw11_par, unsigned int final_rfid_par );
- void Set_MT6139CW11ToReg_Start( S_MT6139_CW11 &mt6140_cw11_par, unsigned int rf_id );
- void Set_MT6139CW11ToReg( void );
- void Get_MT6139CW11FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW11FromReg( void );
- // MT6139 CW15
- void Compose_MT6139CW15( S_MT6139_CW15 &mt6140_cw15_par, unsigned int &bsi_data, unsigned int rf_id );
- void DeCompose_MT6139CW15( unsigned int reg_data, S_MT6139_CW15 &mt6140_cw15_par, unsigned int rf_id );
- void Set_MT6139CW15ToReg_Start( S_MT6139_CW15 &mt6140_cw15_par, unsigned int rf_id );
- void Set_MT6139CW15ToReg( void );
- void Get_MT6139CW15FromReg_Start( unsigned int rf_id );
- void Get_MT6139CW15FromReg( void );
- // Global information
- E_METAAPP_RESULT_T Get_ConfirmState(void);
- S_MT6139_CW0 Get_MT6139CW0( void );
- void Set_MT6139CW0( S_MT6139_CW0 &mt6140_cw0 );
- S_MT6139_CW1 Get_MT6139CW1( void );
- void Set_MT6139CW1( S_MT6139_CW1 &mt6140_cw1 );
- S_MT6139_CW2 Get_MT6139CW2( void );
- void Set_MT6139CW2( S_MT6139_CW2 &mt6140_cw2 );
- S_MT6139_CW3 Get_MT6139CW3( void );
- void Set_MT6139CW3( S_MT6139_CW3 &mt6140_cw3 );
- S_MT6139_CW4 Get_MT6139CW4( void );
- void Set_MT6139CW4( S_MT6139_CW4 &mt6140_cw4 );
- S_MT6139_CW5 Get_MT6139CW5( void );
- void Set_MT6139CW5( S_MT6139_CW5 &mt6140_cw5 );
- S_MT6139_CW6 Get_MT6139CW6( void );
- void Set_MT6139CW6( S_MT6139_CW6 &mt6140_cw6 );
- S_MT6139_CW7 Get_MT6139CW7( void );
- void Set_MT6139CW7( S_MT6139_CW7 &mt6140_cw7 );
- S_MT6139_CW8 Get_MT6139CW8( void );
- void Set_MT6139CW8( S_MT6139_CW8 &mt6140_cw8 );
- S_MT6139_CW9 Get_MT6139CW9( void );
- void Set_MT6139CW9( S_MT6139_CW9 &mt6140_cw9 );
- S_MT6139_CW10 Get_MT6139CW10( void );
- void Set_MT6139CW10( S_MT6139_CW10 &mt6140_cw10 );
- S_MT6139_CW11 Get_MT6139CW11( void );
- void Set_MT6139CW11( S_MT6139_CW11 &mt6140_cw11 );
- S_MT6139_CW15 Get_MT6139CW15( void );
- void Set_MT6139CW15( S_MT6139_CW15 &mt6140_cw15 );
- };
- /*---------------------------------------------------------------------------*/
- #endif