T_BT_CFG_handle.cpp
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:5k
- /*****************************************************************************
- * 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:
- * ---------
- * T_BT_CFG_handle.cpp
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * Calibration BT CFG file handling source
- *
- * 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!!
- *============================================================================
- ****************************************************************************/
- #pragma hdrstop
- #ifndef _T_META_FACTORY_CALIBRATION_H_
- #include "T_META_factory_calibration.H"
- #endif
- #ifndef _BTT_COMMON_H_
- #include "btt_common.h"
- #endif
- //===========================================================================
- void __fastcall T_META_factory_calibration::Read_BT_CMU200_CFG(void)
- {
- cfg->getCMU200_INPUT_BT_CableLoss(m_pBtt->cmu.loss_bt_i);
- cfg->getCMU200_OUTPUT_BT_CableLoss(m_pBtt->cmu.loss_bt_o);
- cfg->getCMU200_TimeOut(m_pBtt->cmu.TMO);
- cfg->getCMU200_GPIB_Addr(m_pBtt->cmu.ADD );
- m_pBtt->cmu.ADD = m_pBtt->cmu.ADD.SubString(0, m_pBtt->cmu.ADD.Pos("::INSTR")-1);
- }
- //---------------------------------------------------------------------------
- void __fastcall T_META_factory_calibration::Read_BT_CBT_CFG(void)
- {
- cfg->getCBT_INPUT_BT_CableLoss(m_pBtt->s_cbt.loss_bt_i);
- cfg->getCBT_OUTPUT_BT_CableLoss(m_pBtt->s_cbt.loss_bt_o);
- cfg->getCBT_TimeOut(m_pBtt->s_cbt.TMO);
- cfg->getCBT_GPIB_Addr(m_pBtt->s_cbt.ADD );
- m_pBtt->s_cbt.ADD = m_pBtt->s_cbt.ADD.SubString(0, m_pBtt->s_cbt.ADD.Pos("::INSTR")-1);
- }
- //---------------------------------------------------------------------------
- void __fastcall T_META_factory_calibration::Read_BT_Common_CFG(void)
- {
- cfg->get_BT_DOWNLINK_POWER(m_dBT_DOWNLINK_POWER);
- cfg->get_BD_Address(m_asBD_Address);
- cfg->get_Inquiry_Enable(m_asInquiry_Enable);
- }
- //---------------------------------------------------------------------------
- void __fastcall T_META_factory_calibration::Read_BT_CrystalCapID_CFG(void)
- {
- cfg->get_BT_CRYSTAL_CAP_ID1(m_ucBT_CRYSTAL_CAP_ID1);
- cfg->get_BT_CRYSTAL_CAP_ID2(m_ucBT_CRYSTAL_CAP_ID2);
- cfg->get_BT_CRYSTAL_CHANNEL(m_usBT_CRYSTAL_CHANNEL);
- cfg->get_BT_CRYSTAL_MAX_FREQ_ACCURACY(m_dBT_CRYSTAL_MAX_FREQ_ACCURACY);
- cfg->get_MIN_POLL_COUNT(m_uiMIN_POLL_COUNT);
- cfg->get_MAX_POLL_COUNT(m_uiMAX_POLL_COUNT);
- }