meta_msg.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:18k
源码类别:

MTK

开发平台:

C++ Builder

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2005
  8. *
  9. *  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. *  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. *  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. *  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. *  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. *  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. *  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. *  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. *  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. *  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. *  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. *  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. *  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. *  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. *  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
  27. *
  28. *  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. *  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. *  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. *  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. *  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*****************************************************************************
  36.  *
  37.  * Filename:
  38.  * ---------
  39.  *   META_msg.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *   Maui META APP
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *  META message header
  48.  *
  49.  * Author:
  50.  * -------
  51.  *  Andy Ueng (mtk00490)
  52.  *
  53.  *============================================================================
  54.  *             HISTORY
  55.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  56.  *------------------------------------------------------------------------------
  57.  * $Revision$
  58.  * $Modtime$
  59.  * $Log$
  60.  * 
  61.  *------------------------------------------------------------------------------
  62.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  63.  *============================================================================
  64.  ****************************************************************************/
  65. //---------------------------------------------------------------------------
  66. #ifndef _META_MSG_H_
  67. #define _META_MSG_H_
  68. #include <windows.h>
  69. //------------------------------------------------------------------------------
  70. typedef  enum {
  71.          WM_META_MSG_START = WM_USER+100,
  72.          // messages for FDM read and write
  73.          WM_FDM_READ_REC_CNF = WM_META_MSG_START,
  74.          WM_FDM_WRITE_REC_CNF,
  75.          // messages for RF calibration
  76.          WM_RF_PM_CNF,
  77.          WM_RF_CONT_RX_CNF,
  78.          WM_RF_CONT_TX_CNF,
  79.          WM_RF_TX_LEVEL_CNF,
  80.          WM_RF_AFC_CONTROL_CNF,
  81.          // messages for RF table in FDM read and write 
  82.          WM_RF_PATH_LOSS_READ_CNF,
  83.          WM_RF_PATH_LOSS_WRITE_CNF,
  84.          WM_RF_LEVEL_RAMP_READ_CNF,
  85.          WM_RF_LEVEL_RAMP_WRITE_CNF,
  86.          WM_RF_AFC_READ_CNF,
  87.          WM_RF_AFC_WRITE_CNF,
  88.          // messages for l1sp and midi
  89.          WM_L1SP_HEADSET_IND,
  90.          WM_MIDI_DOWNLOAD,
  91.          WM_MIDI_PLAY_CNF,
  92.          WM_MIDI_PLAY_OVER,
  93.          WM_MIDI_DEL,
  94.          WM_MIDI_INFO,
  95.          WM_MIDI_PLAY_FAIL,
  96.          // messages for voice memo
  97.          WM_VM_INFO,
  98.          WM_VM_PLAY_CNF,
  99.          WM_VM_PLAY_OVER,
  100.          WM_VM_DEL,
  101.          WM_VM_REC,
  102.          WM_VM_REC_FULL,
  103.          WM_VM_TAG,
  104.          // messages for acoustic fir-coefficient
  105.          WM_FIR_READ_CNF,
  106.          WM_FIR_WRITE_CNF,
  107.          // messages corresponding error from META DLL
  108.          WM_META_DLL_ERROR_FRAME_ERROR,
  109.          WM_META_DLL_ERROR_NO_CALLBACK,
  110.          WM_META_DLL_ERROR_PRIMITIVE_ERROR,
  111.          // messages corresponding to META DLL return values
  112.          WM_META_DLL_SUCCESS,
  113.          WM_META_DLL_FAILED,
  114.          WM_META_DLL_COMM_FAIL,
  115.          WM_META_DLL_NORESPONSE,
  116.          WM_META_DLL_BUFFER_LEN,
  117.          WM_META_DLL_GROUP_INVALID,
  118.          WM_META_DLL_ELEMENT_INVALID,
  119.          WM_META_DLL_FIELD_INVALID,
  120.          WM_META_DLL_VALUE_LEN,
  121.          WM_META_DLL_VM_NOENTRY,
  122.          WM_META_DLL_VM_BUFFERFULL,
  123.          WM_META_DLL_VM_BADENTRY,
  124.          WM_META_DLL_VM_FAIL,
  125.          WM_META_DLL_FILE_BAD,
  126.          WM_META_DLL_PARAM_INVALID,
  127.          // new added
  128.          WM_META_DLL_INTERNAL_DB_ERR,
  129.          WM_META_DLL_NO_MEMORY,
  130.          WM_META_DLL_INVALID_ARGUMENTS,
  131.          WM_META_DLL_TIMEOUT,
  132.          WM_META_DLL_BUSY,
  133.          //--------------------------------
  134.          WM_META_DLL_ERROR_UNDEFINE_ERROR,
  135.          // equipement dll
  136.          WM_LOAD_AGE1960_DLL_FAILED,
  137.          WM_LOAD_AGE1960_DLL_FUNCTION_FAILED,
  138.          WM_FREE_AGE1960_DLL_FAILED,
  139.          WM_LOAD_HP663X2_DLL_FAILED,
  140.          WM_LOAD_HP663X2_DLL_FUNCTION_FAILED,
  141.          WM_FREE_HP663X2_DLL_FAILED,
  142.          WM_LOAD_HP661X_DLL_FAILED,
  143.          WM_LOAD_HP661X_DLL_FUNCTION_FAILED,
  144.          WM_FREE_HP661X_DLL_FAILED,
  145.          WM_LOAD_HPE3631A_DLL_FAILED,
  146.          WM_LOAD_HPE3631A_DLL_FUNCTION_FAILED,
  147.          WM_FREE_HPE3631A_DLL_FAILED,
  148.          WM_LOAD_VISA32_DLL_FAILED,
  149.          WM_LOAD_VISA32_DLL_FUNCTION_FAILED,
  150.          WM_FREE_VISA32_DLL_FAILED,
  151.          WM_LOAD_N4010A_DLL_FAILED,
  152.          WM_LOAD_N4010A_DLL_FUNCTION_FAILED,
  153.          WM_FREE_N4010A_DLL_FAILED,
  154.          WM_LOAD_CONTROLS_DLL_FAILED,
  155.          WM_LOAD_CONTROLS_DLL_FUNCTION_FAILED,
  156.          WM_FREE_CONTROLS_DLL_FAILED,
  157. //         WM_LOAD_MFILES_DLL_FAILED,
  158. //         WM_LOAD_MFILES_DLL_FUNCTION_FAILED,
  159. //         WM_FREE_MFILES_DLL_FAILED,
  160.          //--------------------------------
  161.          // message for Equipment
  162.          // vi
  163.          WM_VI_INVALID_SESSION_HANDLE,
  164.          
  165.          // agilent 8960
  166.          WM_MF_AGE8960_SET_APPLICATION_FORMAT_FAIL,
  167.          WM_MF_AGE8960_SET_OPERATION_MODE_FAIL,
  168.          WM_MF_RCT_SET_CABLE_LOSS_FAIL,
  169.          WM_MF_AGE8960_INIT_FAIL,
  170.          WM_MF_AGE8960_DCL_FAIL,
  171.          WM_MF_AGE8960_RESET_FAIL,
  172.          WM_MF_AGE8960_SET_BAND_FAIL,
  173.          WM_MF_AGE8960_SET_TRAN_CONT_FAIL,
  174.          WM_MF_AGE8960_SET_TRAN_BURST_FAIL,
  175.          WM_MF_AGE8960_SET_BCH_ARFCN_FAIL,
  176.          WM_MF_AGE8960_SET_RF_GENERATOR_FAIL,       // cmu
  177.          WM_MF_AGE8960_SET_BURST_TRANSMIT_FAIL,    // cmu
  178.          WM_MF_AGE8960_SET_GENERATOR_TSC_FAIL,     // cmu
  179.          WM_MF_AGE8960_SET_BIT_MODULATION_FAIL,    // cmu
  180.          WM_MF_AGE8960_SET_POWER_FAIL,
  181.          WM_MF_AGE8960_SET_TSC_FAIL,
  182.          WM_MF_AGE8960_SET_CODING_SCHEME_FAIL,
  183.          WM_MF_AGE8960_SET_TCH_ARFCN_FAIL,
  184.          WM_MF_AGE8960_SET_PDTCH_ARFCN_FAIL,
  185.          WM_MF_AGE8960_SET_TCH_TIMESLOT_FAIL,
  186.          WM_MF_AGE8960_SET_MESA_FUNC_PFER_FAIL,
  187.          WM_MF_AGE8960_READ_PFER_FAIL,
  188.          WM_MF_AGE8960_SET_MESA_FUNC_TX_POWER_FAIL,
  189.          WM_MF_AGE8960_SET_MS_TX_LEVEL_FAIL,
  190.          WM_MF_AGE8960_SET_TX_POWER_CONT_ON_FAIL,
  191.          WM_MF_AGE8960_SET_TX_POWER_CONT_OFF_FAIL,
  192.          WM_MF_AGE8960_READ_TX_POWER_FAIL,
  193.          WM_MF_AGE8960_WAIT_FOR_INIT_DONE_Q_FAIL, 
  194.          WM_MF_AGE8960_SET_MESA_FUNC_IQ_TUNNING_FAIL,
  195.          WM_MF_AGE8960_READ_IQ_TUNNING_FAIL,
  196.          WM_MF_AGE8960_CLOSE_FAIL,
  197.          WM_MF_AGE8960_RESUME_FAIL,
  198.          WM_MF_AGE8960_CONFIG_TX_POWER_FAIL,
  199.          WM_MF_AGE8960_CONFIG_PFER_FAIL,
  200.          WM_MF_AGE8960_CONFIG_IQ_TUNNING_FAIL,
  201.          WM_MF_AGE8960_CONFIG_EPSK_MOD_ACCURACY_FAIL,
  202.          WM_MF_AGE8960_FETCH_EPSK_OOS_FAIL,
  203.          WM_MF_AGE8960_FETCH_EPSK_SBS_FAIL,
  204.          WM_MF_PT_BOOT_RESUME_FAIL, 
  205.          WM_MF_PT_CALIBRATION_NEW_FAIL,
  206.          // query
  207.          WM_MF_QUERY_RFTWOAPCDOOFFSET_SUCCESS,
  208.          WM_MF_QUERY_RFTWOAPCDOOFFSET_FAILED,
  209.          // file
  210.          WM_MF_CFG_READ_FAIL,
  211.          WM_MF_CFG_CHECK_PCL_FAIL,
  212.          WM_MF_INI_READ_FAIL,
  213.          WF_MF_INI_RX_PATH_LOSS_FAIL,
  214.          WM_MF_LOG_OPEN_FAIL,
  215.          WM_MF_LOG_WRITE_FAIL,
  216.          // baseband
  217.          WM_MF_BB_REG_READ_FAIL,
  218.          WM_MF_BB_REG_WRITE_FAIL,
  219.          WM_MF_BB_REG_SET_FAIL,
  220.          // messages for META facotry RF calibration
  221.          // RF common
  222.          WM_MF_RF_STOP_FAIL,
  223.          // AFC
  224.          WM_MF_RF_AFC_BEGIN,
  225.          WM_MF_AFC_NOT_CHECK,
  226.          WM_MF_RF_AFC_SELECT_BAND_FAIL,
  227.          WM_MF_RF_AFC_CONTROL_CNF,
  228.          WM_MF_RF_AFC_CONTROL_FAIL,
  229.          WM_MF_RF_AFC_GET_AFCDAC_FAIL,
  230.          WM_MF_RF_AFC_CHECK_FAIL,
  231.          WM_MF_RF_SET_AFC_DAC_FAIL,
  232.          WM_MF_RF_SET_AFC_DAC_CNF_FAIL,
  233.          WM_MF_RF_AFC_WRITE_CAL_RESULT_FAIL,
  234.          WM_MF_RF_AFC_CALIBRATION_DONE,
  235.  // crystal AFC
  236.          WM_MF_RF_CRYSTAL_AFC_CAPID_BEGIN,
  237.          WM_MF_RF_CRYSTAL_AFC_CAPID_DONE,
  238.          WM_MF_RF_CRYSTAL_AFC_SELECT_BAND_FAIL,
  239.          WM_MF_RF_CRYSTAL_AFC_CONTROL_START,
  240.          WM_MF_RF_CRYSTAL_AFC_CONTROL_CNF,
  241.          WM_MF_RF_CRYSTAL_AFC_CONTROL_FAIL,
  242.          WM_MF_RF_CRYSTAL_AFC_TX_LEVEL_FAIL,
  243.          WM_MF_RF_CRYSTAL_AFC_PRECHECK_FAIL,
  244.          WM_MF_RF_CRYSTAL_AFC_CHECK_FAIL,
  245.          WM_MF_RF_SET_CRYSTAL_AFC_DAC_FAIL,
  246.          WM_MF_RF_SET_CRYSTAL_AFC_DAC_CNF_FAIL,
  247.          WM_MF_RF_CRYSTAL_AFC_SET_CAPID_FAIL,
  248.          WM_MF_RF_CRYSTAL_AFC_WRITE_CAL_RESULT_FAIL,
  249.          WM_MF_RF_CRYSTAL_AFC_ALL_FREQ_ERR_POSITIVE_FAIL,
  250.          WM_MF_RF_CRYSTAL_AFC_ALL_FREQ_ERR_NEGATIVE_FAIL,
  251.          WM_MF_RF_CRYSTAL_AFC_TRX_OFFSET_BEGIN,
  252.          WM_MF_RF_CRYSTAL_AFC_TRX_OFFSET_CALIBRATION_DONE,
  253.          WM_MF_RF_CRYSTAL_AFC_CALIBRATION_DONE,
  254.          // RX path loss
  255.          WM_MF_RF_PM_BEGIN,
  256.          WM_MF_RF_PM_INI_FAIL,
  257.          WM_MF_RF_PM_SUPPORT_FAIL,
  258.          WM_MF_RF_SELECTBAND_CNF_FAIL,
  259.          WM_MF_RF_SELECTBAND_CNF_SUCCESS,
  260.          WM_MF_RF_PM_CNF,
  261.          WM_MF_RF_PM_FAIL,
  262.          WM_MF_RF_PM_SELECT_BAND_FAIL,
  263.          WM_MF_RF_PM_CHECK_FAIL,
  264.          WM_MF_RF_PM_WRITE_CAL_RESULT_FAIL,
  265.          WM_MF_RF_PM_CALIBRATION_DONE,
  266.          // IP2
  267.          WM_MF_RF_IP2_BEGIN,
  268.          WM_MF_RF_IP2_SET_MAG_FAIL,
  269.          WM_MF_RF_IP2_SET_POL_FAIL,
  270.          WM_MF_RF_IP2_SET_AMCALMODE_FAIL,
  271.          WM_MF_RF_IP2_SET_CW2_FAIL,
  272.          WM_MF_RF_IP2_SET_CW7_FAIL,
  273.          WM_MF_RF_IP2_SET_BCCODE_FAIL,
  274.          WM_MF_RF_IP2_SET_MT6139_COEF_FAIL,
  275.          WM_MF_RF_IP2_GET_ACODE_FAIL,
  276.          WM_MF_RF_IP2_GET_CW7_FAIL,
  277.          WM_MF_RF_IP2_GET_BCCODE_FAIL,
  278.          WM_MF_RF_IP2_PM_FAIL,
  279.          WM_MF_RF_IP2_FAIL,
  280.          WM_MF_RF_IP2_EVALUATE_CX_FAIL,
  281.          WM_MF_RF_IP2_CHECK_FAIL,
  282.          WM_MF_RF_IP2_WRITE_CAL_RESULT_FAIL,
  283.          WM_MF_RF_IP2_CALIBRATION_DONE,
  284.           
  285.          // TX PCL
  286.          WM_MF_RF_TX_LEVEL_BEGIN,
  287.          WM_MF_RF_TX_LEVEL_CNF,
  288.          WM_MF_RF_TX_LEVEL_INI_FAIL,
  289.          WM_MF_RF_QUERY_ITC_PCL_FAIL,
  290.          WM_MF_RF_TX_LEVEL_FAIL,
  291.          WM_MF_RF_TX_LEVEL_EVALDAC_FAIL,
  292.          WM_MF_RF_TX_LEVEL_CHECK_FAIL,
  293.          WM_MF_RF_MAX_APC_DAC_OUT_OF_RANGE_FAIL,
  294.          WM_MF_SET_APC_DAC_FAIL,
  295.          WM_MF_SET_APC_DC_OFFSET_FAIL,
  296.          WM_MF_RF_TX_LEVEL_WRITE_CAL_RESULT_FAIL,
  297.          WM_MF_RF_TX_LEVEL_CALIBRATION_DONE,
  298.          WM_MF_RF_TX_LEVEL_CALIBRATION_DONE_NO_CHECK,
  299.          WM_MF_RF_A60111A_ENTER_FACTORY_MODE_FAIL,
  300.          WM_MF_RF_A60111A_READ_REF_TEMP_FAIL,
  301.          // Trim, offset IQ
  302.          WM_MF_RF_GET_BB_TX_CFG_FAIL,
  303.          WM_MF_RF_SET_BB_TX_CFG_FAIL,
  304.          WM_MF_RF_TX_GAIN_AUTO_CAL_FAIL,
  305.          WM_MF_RF_TX_IQ_BEGIN,
  306.          WM_MF_RF_TX_IQ_FAIL,
  307.          WM_MF_RF_TX_IQ_CHECK_FAIL,
  308.          WM_MF_RF_TX_IQ_CALIBRATION_DONE,
  309.         // WM_MF_RF_TX_IQ_GAIN_IMBALANCE_BEGIN,
  310.         // WM_MF_RF_TX_IQ_GAIN_IMBALANCE_CHECK_FAIL,
  311.         // WM_MF_RF_TX_IQ_GAIN_IMBALANCE_CALIBRATION_DONE,
  312.         //WM_MF_RF_TX_PHASE_ERR_BEGIN,
  313.         // WM_MF_RF_TX_PHASE_ERR_WRITE_CAL_RESULT_FAIL,
  314.         // WM_MF_RF_TX_PHASE_ERR_CHECK_FAIL,
  315.         // WM_MF_RF_TX_PHASE_ERR_CALIBRATION_DONE,
  316.          // messages for META factory RF table in FDM read and write
  317.          WM_MF_NVRAM_AFC_READ_FAIL,
  318.          WM_MF_NVRAM_AFC_WRITE_CNF,
  319.          WM_MF_NVRAM_AFC_WRITE_FAIL,
  320.          WM_MF_NVRAM_EF_L1_AFCDATA_LID_VERNO_FAIL,
  321.          WM_MF_NVRAM_CRYSTAL_AFC_READ_CNF,
  322.          WM_MF_NVRAM_CRYSTAL_AFC_READ_FAIL,
  323.          WM_MF_NVRAM_CRYSTAL_AFC_WRITE_CNF,
  324.          WM_MF_NVRAM_CRYSTAL_AFC_CAPID_WRITE_FAIL,
  325.          WM_MF_NVRAM_EF_L1_CRYSTAL_CAPDATA_LID_VERNO_FAIL,
  326.          WM_MF_NVRAM_PATH_LOSS_WRITE_CNF,
  327.          WM_MF_NVRAM_PATH_LOSS_WRITE_FAIL,
  328.          WM_MF_NVRAM_EF_L1_AGCPATHLOSS_LID_VERNO_FAIL,
  329.          WM_MF_NVRAM_IP2_READ_FAIL,
  330.          WM_MF_NVRAM_IP2_READ_CNF,
  331.          WM_MF_NVRAM_IP2_WRITE_FAIL,
  332.          WM_MF_NVRAM_EF_L1_RFSPECIALCOEF_LID_VERNO_FAIL,
  333.          WM_MF_NVRAM_IP2_WRITE_CNF,
  334.          WM_MF_NVRAM_LEVEL_RAMP_WRITE_CNF,
  335.          WM_MF_NVRAM_LEVEL_RAMP_WRITE_FAIL,
  336.          WM_MF_NVRAM_EF_L1_RAMPTABLE_xxx_LID_VERNO_FAIL,
  337.          WM_MF_NVRAM_EF_L1_EPSK_RAMPTABLE_xxx_LID_VERNO_FAIL,
  338.          WM_MF_NVRAM_LEVEL_RAMP_READ_CNF,
  339.          WM_MF_NVRAM_LEVEL_RAMP_READ_FAIL,
  340.          WM_MF_NVRAM_TXIQ_READ_FAIL,
  341.          WM_MF_NVRAM_TXIQ_WRITE_FAIL,
  342.          WM_MF_NVRAM_EF_L1_TXIQ_LID_VERNO_FAIL,
  343.          WM_MF_NVRAM_ADC_READ_FAIL,
  344.          WM_MF_NVRAM_ADC_WRITE_FAIL,
  345.          WM_MF_NVRAM_EF_ADC_LID_VERNO_FAIL,
  346.          WM_MF_NVRAM_WIFI_APC_READ_FAIL,
  347.          WM_MF_NVRAM_WIFI_APC_WRITE_FAIL,
  348.          WM_MF_NVRAM_WIFI_ALC_READ_FAIL,
  349.          WM_MF_NVRAM_WIFI_ALC_WRITE_FAIL,
  350.          WM_MF_NVRAM_WIFI_TX_DC_OFFSET_READ_FAIL,
  351.          WM_MF_NVRAM_WIFI_TX_DC_OFFSET_WRITE_FAIL,
  352.          WM_MF_NVRAM_EF_WNDRV_DAC_DC_OFFSET_LID_VERNO_FAIL,
  353.          WM_MF_NVRAM_EF_WNDRV_TX_POWER_xxx_LID_VERNO_FAIL,
  354.          WM_MF_NVRAM_EF_WNDRV_TX_ALC_POWER_LID_VERNO_FAIL,
  355.          WM_MF_NVRAM_EF_WNDRV_ALC_SLOPE_LID_VERNO_FAIL,
  356.          WM_MF_NVRAM_BT_INFO_READ_FAIL,
  357.          WM_MF_NVRAM_BT_INFO_WRITE_FAIL,
  358.          WM_MF_NVRAM_EF_BTRADIO_MT6601_LID_VERNO_FAIL,
  359.          WM_MF_NVRAM_CV_READ_FAIL,
  360.          WM_MF_NVRAM_CV_WRITE_FAIL,
  361.          WM_MF_NVRAM_REF_TEMP_READ_FAIL,
  362.          WM_MF_NVRAM_REF_TEMP_WRITE_FAIL,
  363.          // RF runtime setting
  364.          WM_MF_SET_RAMPAPCLEVEL_FAIL,
  365.          WM_MF_SET_RAMPAPCLEVEL_CNF,
  366.          WM_MF_CA_SUCCESS,
  367.          WM_MF_CA_FAIL,
  368.          WM_MF_CA_TERM_BY_USER,
  369.          // ADC calibration
  370.          WM_MF_ADC_BEGIN,
  371.          WM_MF_ADC_DCS_INIT_FAIL,
  372.          WM_MF_ADC_DCS_SET_VOLTAGE_CURRENT_FAIL,
  373.          WM_MF_ADC_DCS_MEASURE_VOLTAGE_FAIL,
  374.          WM_MF_ADC_DCS_CLOSE_FAIL,
  375.          WM_MF_ADC_SUCCESS,
  376.          WM_MF_ADC_FAIL,
  377.          WM_MF_ADC_TERM_BY_USER,
  378.          WM_MF_PT_ADC_CALIBRATION_NEW_FAIL,
  379.          WM_MF_ADC_MEASURE_FAIL,
  380.          WM_MF_ADC_MEASURE_CNF_FAIL,
  381.          WM_MF_ADC_CHECK_BATTERY_VOLTAGE_DIFFERENCE_FAIL,
  382.          WM_MF_ADC_CHECK_CURRENT_DIFFERENCE_FAIL,
  383.          WM_MF_ADC_EVALUATE_SLOPE_OFFSET_FAIL,
  384.          WM_MF_ADC_CHECK_SLOPE_OFFSET_FAIL,
  385.          WM_MF_ADC_WRITE_CAL_RESULT_FAIL,
  386.          WM_MF_ADC_CHECK_SLOPE_OFFSET_PASS,
  387.          WM_MF_ADC_CALIBRATION_DONE,
  388.          // CV calibration
  389.          WM_MF_CV_BEGIN,
  390.          WM_MF_CV_CHECK_FAIL,
  391.          WM_MF_CV_CALIBRATION_DONE,
  392.          // WiFi TX power calibration
  393.          WM_MF_WIFI_TX_RATE_802_11B_FAIL,
  394.          WM_MF_WIFI_TX_RATE_802_11AG_FAIL,
  395.          WM_MF_WIFI_CHANNEL_802_11B_FAIL,
  396.          WM_MF_WIFI_CHANNEL_802_11AG_FAIL,
  397.          WM_MF_WIFI_CHANNEL_INDEX_NOT_FOUND_FAIL,
  398.          WM_MF_WIFI_TX_POWER_BEGIN,
  399.          WM_MF_WIFI_CPT_FAIL,
  400.          WM_MF_WIFI_CPT_STOP_FAIL,
  401.          WM_MF_WIFI_INIT_FAIL,
  402.          WM_MF_WIFI_TERMINATE_FAIL,
  403.          WM_MF_WIFI_CONN_OPEN_FAIL,
  404.          WM_MF_WIFI_CONN_CLOSE_FAIL,
  405.          WM_MF_WIFI_CONN_UPDATE_CALDATA_FAIL,
  406.          WM_MF_WIFI_SET_DEFAULT_FAIL,
  407.          WM_MF_WIFI_SET_PACKET_LEN_FAIL,
  408.          WM_MF_WIFI_SET_TRIGGER_STYLE_FAIL,
  409.          WM_MF_WIFI_APPLY_CHANGE_FAIL,
  410.          WM_MF_WIFI_SET_POWER_RANGE_FAIL,
  411.          WM_MF_WIFI_SET_CENTRAL_FREQ_FAIL,
  412.          WM_MF_WIFI_DATA_CAPTURE_FAIL,
  413.          WM_MF_WIFI_ANALYZE_POWER_FAIL,
  414.          WM_MF_WIFI_READ_POWER_FAIL,
  415.          WM_MF_WIFI_TX_POWER_CHECK_FAIL,
  416.          WM_MF_WIFI_TX_POWER_CALIBRATION_DONE,
  417.          // WiFi TX DC offset calibration
  418.          WM_MF_WIFI_TX_DC_OFFSET_BEGIN,
  419.          WM_MF_WIFI_TX_DC_OFFSET_FAIL,
  420.          WM_MF_WIFI_TX_DC_OFFSET_CALIBRATION_DONE,
  421.          // BT
  422.          WM_MF_BTT_INIT_FAIL,
  423.          WM_MF_BTT_CLOSE_FAIL,
  424.          WM_MF_BTT_CONFIG_SLAVE_PARAMETER_FAIL,
  425.          WM_MF_BTT_CONFIG_DOWNLINK_POWER_FAIL,
  426.          WM_MF_BTT_CONFIG_BD_ADDRESS_FAIL,
  427.          WM_MF_BTT_CONFIG_INQUIRY_FAIL,
  428.          WM_MF_BTT_CONFIG_SCAN_FAIL,
  429.          WM_MF_BTT_INQUIRY_FAIL,
  430.          WM_MF_BTT_CONNECT_TEST_FAIL,
  431.          WM_MF_BTT_RELEASE_FAIL,
  432.          WM_MF_BTT_QUERY_STATE_FAIL,
  433.          WM_MF_BTT_CONFIG_MOD_FAIL,
  434.          WM_MF_BTT_READ_FREQ_ACCURACY,
  435.          WM_MF_BT_CRYSTAL_CAPID_BEGIN,
  436.          WM_MF_BT_CRYSTAL_CAPID_WRITE_CAL_RESULT_FAIL,
  437.          WM_MF_BT_CRYSTAL_CAPID_CHECK_FAIL,
  438.          WM_MF_BT_CRYSTAL_CAPID_CALIBRATION_DONE,
  439.          WM_MF_BT_ENABLE_PCM_CLOCK_SYNC_SIGNAL_FAIL,
  440.          WM_MF_BT_START_CALIBRATE_CRYSTAL_CLOCK_FAIL,
  441.          WM_MF_BT_READ_CRYSTAL_CLOCK_RESULT_FAIL,
  442.          WM_MF_BT_SET_CRYSTAL_CAPID_FAIL,
  443.          WM_MF_BT_ENTER_TEST_MODE_FAIL,
  444.          WM_MF_BT_INQUIRY_ENABLE_FAIL,
  445.          WM_META_DLL_LID_INVALID,
  446.          WM_MF_CALIBRATION_TIMER_TIME_OUT,
  447.          // messages for iMelody
  448.          WM_IMELODY_DOWNLOAD,
  449.          WM_IMELODY_PLAY_CNF,
  450.          WM_IMELODY_PLAY_OVER,
  451.          WM_IMELODY_DEL,
  452.          WM_IMELODY_INFO,
  453.          WM_IMELODY_PLAY_FAIL,
  454.          WM_IMELODY_STOP_CNF,
  455.          WM_IMELODY_STOP_FAIL,
  456.          // reconnect
  457.          WM_MF_RECONNECT_WITH_TARGET_SUCCESS
  458. //         WM_META_MSG_END = WM_META_DLL_ERROR_UNDEFINE_ERROR
  459.      } ErrorMsg;
  460. #endif