rf_mt6140breg.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_mt6140breg.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * MT6140B 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_MT6140REG_H_
- #define _RF_MT6140REG_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 _MT6140_COMMON_H_
- #include "mt6140_common.h"
- #endif
- #ifndef _MT6140B_COMMON_H_
- #include "mt6140b_common.h"
- #endif
- /*---------------------------------------------------------------------------*/
- /*---------------------------------------------------------------------------*/
- class CRFMT6140BREG
- {
- private:
- // common
- CMETAHANDLE m_META_HANDLE_Obj;
- unsigned int m_uiFinalRfid;
- E_METAAPP_RESULT_T m_eConfirmState;
- bool m_bIsMT6140All;
- S_MT6140_CW0 m_sMT6140CW0;
- S_MT6140_CW1 m_sMT6140CW1;
- S_MT6140_CW2 m_sMT6140CW2;
- S_MT6140B_CW3 m_sMT6140BCW3;
- S_MT6140B_CW4 m_sMT6140BCW4;
- S_MT6140B_CW5 m_sMT6140BCW5;
- S_MT6140_CW6 m_sMT6140CW6;
- S_MT6140B_CW7 m_sMT6140BCW7;
- S_MT6140_CW8 m_sMT6140CW8;
- S_MT6140B_CW9 m_sMT6140BCW9;
- S_MT6140_CW10 m_sMT6140CW10;
- S_MT6140B_CW11 m_sMT6140BCW11;
- S_MT6140_CW15 m_sMT6140CW15;
- protected:
- void Confirm(E_METAAPP_RESULT_T confirm_state);
- public:
- CRFMT6140BREG(void);
- ~CRFMT6140BREG();
- void (*ConfirmCallback)(void);
- void REQ_Stop(void);
- void Set_MT6140AllToReg_Start(unsigned int rf_id);
- void Set_MT6140AllToReg(void);
- void Get_MT6140AllFromReg_Start(unsigned int rf_id);
- void Get_MT6140AllFromReg(void);
- // MT6140 CW0
- void Compose_MT6140CW0( S_MT6140_CW0 &mt6140_cw0_par, unsigned int &bsi_data, unsigned int rf_id );
- void DeCompose_MT6140CW0( unsigned int reg_data, S_MT6140_CW0 &mt6140_cw0_par, unsigned int rf_id );
- void Set_MT6140CW0ToReg_Start( S_MT6140_CW0 &mt6139_cw0_par, unsigned int rf_id );
- void Set_MT6140CW0ToReg( void );
- void Get_MT6140CW0FromReg_Start( unsigned int rf_id );
- void Get_MT6140CW0FromReg( void );
- // MT6140 CW1
- void Compose_MT6140CW1( S_MT6140_CW1 &mt6140_cw1_par, unsigned int &bsi_data, unsigned int rf_id );
- void DeCompose_MT6140CW1( unsigned int reg_data, S_MT6140_CW1 &mt6140_cw1_par, unsigned int rf_id );
- void Set_MT6140CW1ToReg_Start( S_MT6140_CW1 &mt6139_cw1_par, unsigned int rf_id );
- void Set_MT6140CW1ToReg( void );
- void Get_MT6140CW1FromReg_Start( unsigned int rf_id );
- void Get_MT6140CW1FromReg( void );
- // MT6140 CW2
- void Compose_MT6140CW2( S_MT6140_CW2 &mt6140_cw2_par, unsigned int &bsi_data, unsigned int rf_id );
- void DeCompose_MT6140CW2( unsigned int reg_data, S_MT6140_CW2 &mt6140_cw2_par, unsigned int final_rfid_par );
- void Set_MT6140CW2ToReg_Start( S_MT6140_CW2 &mt6139_cw2_par, unsigned int rf_id );
- void Set_MT6140CW2ToReg( void );
- void Get_MT6140CW2FromReg_Start( unsigned int rf_id );
- void Get_MT6140CW2FromReg( void );
- // MT6140 CW3
- void Compose_MT6140BCW3( S_MT6140B_CW3 &mt6140b_cw3_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140BCW3( unsigned int reg_data, S_MT6140B_CW3 &mt6140_cw3_par, unsigned int final_rfid_par );
- void Set_MT6140BCW3ToReg_Start( S_MT6140B_CW3 &mt6140b_cw3_par, unsigned int rf_id );
- void Set_MT6140BCW3ToReg( void );
- void Get_MT6140BCW3FromReg_Start( unsigned int rf_id );
- void Get_MT6140BCW3FromReg( void );
- // MT6140 CW4
- void Compose_MT6140BCW4( S_MT6140B_CW4 &mt6140b_cw4_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140BCW4( unsigned int reg_data, S_MT6140B_CW4 &mt6140b_cw4_par, unsigned int final_rfid_par );
- void Set_MT6140BCW4ToReg_Start( S_MT6140B_CW4 &mt6140b_cw4_par, unsigned int rf_id );
- void Set_MT6140BCW4ToReg( void );
- void Get_MT6140BCW4FromReg_Start( unsigned int rf_id );
- void Get_MT6140BCW4FromReg( void );
- // MT6140 CW5
- void Compose_MT6140BCW5( S_MT6140B_CW5 &mt6140b_cw5_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140BCW5( unsigned int reg_data, S_MT6140B_CW5 &mt6140b_cw5_par, unsigned int final_rfid_par );
- void Set_MT6140BCW5ToReg_Start( S_MT6140B_CW5 &mt6140b_cw5_par, unsigned int rf_id );
- void Set_MT6140BCW5ToReg( void );
- void Get_MT6140BCW5FromReg_Start( unsigned int rf_id );
- void Get_MT6140BCW5FromReg( void );
- // MT6140 CW6
- void Compose_MT6140CW6( S_MT6140_CW6 &mt6140_cw6_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140CW6( unsigned int reg_data, S_MT6140_CW6 &mt6140_cw6_par, unsigned int final_rfid_par );
- void Set_MT6140CW6ToReg_Start( S_MT6140_CW6 &mt6139_cw6_par, unsigned int rf_id );
- void Set_MT6140CW6ToReg( void );
- void Get_MT6140CW6FromReg_Start( unsigned int rf_id );
- void Get_MT6140CW6FromReg( void );
- // MT6140 CW7
- void Compose_MT6140BCW7( S_MT6140B_CW7 &mt6140b_cw7_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140BCW7( unsigned int reg_data, S_MT6140B_CW7 &mt6140b_cw7_par, unsigned int final_rfid_par );
- void Set_MT6140BCW7ToReg_Start( S_MT6140B_CW7 &mt6140b_cw7_par, unsigned int rf_id );
- void Set_MT6140BCW7ToReg( void );
- void Get_MT6140BCW7FromReg_Start( unsigned int rf_id );
- void Get_MT6140BCW7FromReg( void );
- // MT6140 CW8
- void Compose_MT6140CW8( S_MT6140_CW8 &mt6140_cw8_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140CW8( unsigned int reg_data, S_MT6140_CW8 &mt6140_cw8_par, unsigned int final_rfid_par );
- void Set_MT6140CW8ToReg_Start( S_MT6140_CW8 &mt6140_cw8_par, unsigned int rf_id );
- void Set_MT6140CW8ToReg( void );
- void Get_MT6140CW8FromReg_Start( unsigned int rf_id );
- void Get_MT6140CW8FromReg( void );
- // MT6140 CW9
- void Compose_MT6140BCW9( S_MT6140B_CW9 &mt6140b_cw9_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140BCW9( unsigned int reg_data, S_MT6140B_CW9 &mt6140b_cw9_par, unsigned int final_rfid_par );
- void Set_MT6140BCW9ToReg_Start( S_MT6140B_CW9 &mt6140b_cw9_par, unsigned int rf_id );
- void Set_MT6140BCW9ToReg( void );
- void Get_MT6140BCW9FromReg_Start( unsigned int rf_id );
- void Get_MT6140BCW9FromReg( void );
- // MT6140 CW10
- void Compose_MT6140CW10( S_MT6140_CW10 &mt6140_cw10_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140CW10( unsigned int reg_data, S_MT6140_CW10 &mt6140_cw10_par, unsigned int final_rfid_par );
- void Set_MT6140CW10ToReg_Start( S_MT6140_CW10 &mt6140_cw10_par, unsigned int rf_id );
- void Set_MT6140CW10ToReg( void );
- void Get_MT6140CW10FromReg_Start( unsigned int rf_id );
- void Get_MT6140CW10FromReg( void );
- // MT6140 CW11
- void Compose_MT6140BCW11( S_MT6140B_CW11 &mt6140b_cw11_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140BCW11( unsigned int reg_data, S_MT6140B_CW11 &mt6140b_cw11_par, unsigned int final_rfid_par );
- void Set_MT6140BCW11ToReg_Start( S_MT6140B_CW11 &mt6140b_cw11_par, unsigned int rf_id );
- void Set_MT6140BCW11ToReg( void );
- void Get_MT6140BCW11FromReg_Start( unsigned int rf_id );
- void Get_MT6140BCW11FromReg( void );
- // MT6140 CW15
- void Compose_MT6140CW15( S_MT6140_CW15 &mt6140_cw15_par, unsigned int &bsi_data, unsigned int rf_id );
- void DeCompose_MT6140CW15( unsigned int reg_data, S_MT6140_CW15 &mt6140_cw15_par, unsigned int rf_id );
- void Set_MT6140CW15ToReg_Start( S_MT6140_CW15 &mt6140_cw15_par, unsigned int rf_id );
- void Set_MT6140CW15ToReg( void );
- void Get_MT6140CW15FromReg_Start( unsigned int rf_id );
- void Get_MT6140CW15FromReg( void );
- // Global information
- E_METAAPP_RESULT_T Get_ConfirmState(void);
- S_MT6140_CW0 Get_MT6140CW0( void );
- void Set_MT6140CW0( S_MT6140_CW0 &mt6140_cw0 );
- S_MT6140_CW1 Get_MT6140CW1( void );
- void Set_MT6140CW1( S_MT6140_CW1 &mt6140_cw1 );
- S_MT6140_CW2 Get_MT6140CW2( void );
- void Set_MT6140CW2( S_MT6140_CW2 &mt6140_cw2 );
- S_MT6140B_CW3 Get_MT6140BCW3( void );
- void Set_MT6140BCW3( S_MT6140B_CW3 &mt6140b_cw3 );
- S_MT6140B_CW4 Get_MT6140BCW4( void );
- void Set_MT6140BCW4( S_MT6140B_CW4 &mt6140b_cw4 );
- S_MT6140B_CW5 Get_MT6140BCW5( void );
- void Set_MT6140BCW5( S_MT6140B_CW5 &mt6140b_cw5 );
- S_MT6140_CW6 Get_MT6140CW6( void );
- void Set_MT6140CW6( S_MT6140_CW6 &mt6140_cw6 );
- S_MT6140B_CW7 Get_MT6140BCW7( void );
- void Set_MT6140BCW7( S_MT6140B_CW7 &mt6140b_cw7 );
- S_MT6140_CW8 Get_MT6140CW8( void );
- void Set_MT6140CW8( S_MT6140_CW8 &mt6140_cw8 );
- S_MT6140B_CW9 Get_MT6140BCW9( void );
- void Set_MT6140BCW9( S_MT6140B_CW9 &mt6140b_cw9 );
- S_MT6140_CW10 Get_MT6140CW10( void );
- void Set_MT6140CW10( S_MT6140_CW10 &mt6140_cw10 );
- S_MT6140B_CW11 Get_MT6140BCW11( void );
- void Set_MT6140BCW11( S_MT6140B_CW11 &mt6140b_cw11 );
- S_MT6140_CW15 Get_MT6140CW15( void );
- void Set_MT6140CW15( S_MT6140_CW15 &mt6140_cw15 );
- };
- /*---------------------------------------------------------------------------*/
- #endif