rf_mt6140creg.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:13k
- /*****************************************************************************
- * 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_mt6140c.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * MT6140C 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_MT6140CREG_H_
- #define _RF_MT6140CREG_H_
- // chip
- #ifndef _MT6140_COMMON_H_
- #include "mt6140_common.h"
- #endif
- #ifndef _MT6140C_COMMON_H_
- #include "mt6140c_common.h"
- #endif
- // 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
- /*---------------------------------------------------------------------------*/
- /*---------------------------------------------------------------------------*/
- class CRFMT6140CREG
- {
- 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_MT6140C_CW3 m_sMT6140CCW3;
- S_MT6140C_CW4 m_sMT6140CCW4;
- S_MT6140C_CW5 m_sMT6140CCW5;
- S_MT6140_CW6 m_sMT6140CW6;
- S_MT6140C_CW7 m_sMT6140CCW7;
- S_MT6140_CW8 m_sMT6140CW8;
- S_MT6140C_CW9 m_sMT6140CCW9;
- S_MT6140_CW10 m_sMT6140CW10;
- S_MT6140C_CW11 m_sMT6140CCW11;
- S_MT6140C_CW12 m_sMT6140CCW12;
- S_MT6140_CW15 m_sMT6140CW15;
- protected:
- void Confirm(E_METAAPP_RESULT_T confirm_state);
- public:
- CRFMT6140CREG(void);
- ~CRFMT6140CREG();
- 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_MT6140CCW3( S_MT6140C_CW3 &mt6140c_cw3_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140CCW3( unsigned int reg_data, S_MT6140C_CW3 &mt6140_cw3_par, unsigned int final_rfid_par );
- void Set_MT6140CCW3ToReg_Start( S_MT6140C_CW3 &mt6140c_cw3_par, unsigned int rf_id );
- void Set_MT6140CCW3ToReg( void );
- void Get_MT6140CCW3FromReg_Start( unsigned int rf_id );
- void Get_MT6140CCW3FromReg( void );
- // MT6140 CW4
- void Compose_MT6140CCW4( S_MT6140C_CW4 &mt6140c_cw4_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140CCW4( unsigned int reg_data, S_MT6140C_CW4 &mt6140c_cw4_par, unsigned int final_rfid_par );
- void Set_MT6140CCW4ToReg_Start( S_MT6140C_CW4 &mt6140c_cw4_par, unsigned int rf_id );
- void Set_MT6140CCW4ToReg( void );
- void Get_MT6140CCW4FromReg_Start( unsigned int rf_id );
- void Get_MT6140CCW4FromReg( void );
- // MT6140 CW5
- void Compose_MT6140CCW5( S_MT6140C_CW5 &mt6140c_cw5_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140CCW5( unsigned int reg_data, S_MT6140C_CW5 &mt6140c_cw5_par, unsigned int final_rfid_par );
- void Set_MT6140CCW5ToReg_Start( S_MT6140C_CW5 &mt6140c_cw5_par, unsigned int rf_id );
- void Set_MT6140CCW5ToReg( void );
- void Get_MT6140CCW5FromReg_Start( unsigned int rf_id );
- void Get_MT6140CCW5FromReg( 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_MT6140CCW7( S_MT6140C_CW7 &mt6140c_cw7_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140CCW7( unsigned int reg_data, S_MT6140C_CW7 &mt6140c_cw7_par, unsigned int final_rfid_par );
- void Set_MT6140CCW7ToReg_Start( S_MT6140C_CW7 &mt6140c_cw7_par, unsigned int rf_id );
- void Set_MT6140CCW7ToReg( void );
- void Get_MT6140CCW7FromReg_Start( unsigned int rf_id );
- void Get_MT6140CCW7FromReg( 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_MT6140CCW9( S_MT6140C_CW9 &mt6140c_cw9_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140CCW9( unsigned int reg_data, S_MT6140C_CW9 &mt6140c_cw9_par, unsigned int final_rfid_par );
- void Set_MT6140CCW9ToReg_Start( S_MT6140C_CW9 &mt6140c_cw9_par, unsigned int rf_id );
- void Set_MT6140CCW9ToReg( void );
- void Get_MT6140CCW9FromReg_Start( unsigned int rf_id );
- void Get_MT6140CCW9FromReg( 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_MT6140CCW11( S_MT6140C_CW11 &mt6140c_cw11_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140CCW11( unsigned int reg_data, S_MT6140C_CW11 &mt6140c_cw11_par, unsigned int final_rfid_par );
- void Set_MT6140CCW11ToReg_Start( S_MT6140C_CW11 &mt6140c_cw11_par, unsigned int rf_id );
- void Set_MT6140CCW11ToReg( void );
- void Get_MT6140CCW11FromReg_Start( unsigned int rf_id );
- void Get_MT6140CCW11FromReg( void );
- // MT6140 CW12
- void Compose_MT6140CCW12( S_MT6140C_CW12 &mt6140c_cw12_par, unsigned int &bsi_data, unsigned int final_rfid_par );
- void DeCompose_MT6140CCW12( unsigned int reg_data, S_MT6140C_CW12 &mt6140c_cw12_par, unsigned int final_rfid_par );
- void Set_MT6140CCW12ToReg_Start( S_MT6140C_CW12 &mt6140c_cw12_par, unsigned int rf_id );
- void Set_MT6140CCW12ToReg( void );
- void Get_MT6140CCW12FromReg_Start( unsigned int rf_id );
- void Get_MT6140CCW12FromReg( 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_MT6140C_CW3 Get_MT6140CCW3( void );
- void Set_MT6140CCW3( S_MT6140C_CW3 &mt6140c_cw3 );
- S_MT6140C_CW4 Get_MT6140CCW4( void );
- void Set_MT6140CCW4( S_MT6140C_CW4 &mt6140c_cw4 );
- S_MT6140C_CW5 Get_MT6140CCW5( void );
- void Set_MT6140CCW5( S_MT6140C_CW5 &mt6140c_cw5 );
- S_MT6140_CW6 Get_MT6140CW6( void );
- void Set_MT6140CW6( S_MT6140_CW6 &mt6140_cw6 );
- S_MT6140C_CW7 Get_MT6140CCW7( void );
- void Set_MT6140CCW7( S_MT6140C_CW7 &mt6140c_cw7 );
- S_MT6140_CW8 Get_MT6140CW8( void );
- void Set_MT6140CW8( S_MT6140_CW8 &mt6140_cw8 );
- S_MT6140C_CW9 Get_MT6140CCW9( void );
- void Set_MT6140CCW9( S_MT6140C_CW9 &mt6140c_cw9 );
- S_MT6140_CW10 Get_MT6140CW10( void );
- void Set_MT6140CW10( S_MT6140_CW10 &mt6140_cw10 );
- S_MT6140C_CW11 Get_MT6140CCW11( void );
- void Set_MT6140CCW11( S_MT6140C_CW11 &mt6140c_cw11 );
- S_MT6140C_CW12 Get_MT6140CCW12( void );
- void Set_MT6140CCW12( S_MT6140C_CW12 &mt6140c_cw12 );
- S_MT6140_CW15 Get_MT6140CW15( void );
- void Set_MT6140CW15( S_MT6140_CW15 &mt6140_cw15 );
- };
- /*---------------------------------------------------------------------------*/
- #endif