man_error.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:10k
- /*****************************************************************************
- * 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:
- * ---------
- * man_error.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * Error handling 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 _MAN_ERROR_H_
- #define _MAN_ERROR_H_
- /*---------------------------------------------------------------------------*/
- #define MSG_ERR_OPEN_COM_FAIL 1
- #define MSG_ERR_SET_COM_RATE_FAIL 2
- enum
- {
- // RF
- RANGE_ERR_ARFCN,
- RANGE_ERR_ARFCN2,
- RANGE_ERR_ARFCN_STEP,
- RANGE_ERR_APC_LOWEST_POWER,
- RANGE_ERR_PM_COUNT,
- RANGE_ERR_AFC_COUNT,
- RANGE_ERR_GAIN,
- RANGE_ERR_PATH_LOSS,
- RANGE_ERR_PCL,
- RANGE_ERR_PCL_DAC,
- RANGE_ERR_VBIAS,
- RANGE_ERR_AFC,
- RANGE_ERR_FREQERR,
- RANGE_ERR_INIT_AFC_DAC,
- RANGE_ERR_AFC_SLOPE,
- RANGE_ERR_CFG_AFC_SLOPE,
- RANGE_ERR_CFG_FREQUENCY_ERROR_PPM,
- RANGE_ERR_CFG_FREQUENCY_ERROR,
- RANGE_ERR_RAMP,
- RANGE_ERR_WEIGHT,
- RANGE_ERR_REG_BIT,
- RANGE_ERR_MEASUREMENT_COUNT,
- RANGE_ERR_PERIOD,
- RANGE_ERR_REFDET_SLOPE_SKEW,
- RANGE_ERR_AM_FB_DAC,
-
- // ADC
- RANGE_ERR_ADC_SLOPE,
- RANGE_ERR_ADC_OFFSET,
- RANGE_ERR_ADC_INPUT,
- RANGE_ERR_ADC_VOLTAGE,
- RANGE_ERR_CURRENT_LIMIT,
- RANGE_ERR_ADC_CHANNEL,
- RANGE_ERR_ADC_RESISTANCE,
- RANGE_ERR_ADC_MAX_VOLTAGE_DIFFERENCE,
- RANGE_ERR_ADC_MAX_CURRENT_DIFFERENCE,
- RANGE_ERR_ADC_MEASUREMENT_COUNT,
- // common CFG
- RANGE_ERR_GPIB_ADDR,
- RANGE_ERR_TIMEOUT,
- RANGE_ERR_CABLE_LOSS,
- RANGE_ERR_POWER,
- // RX path loss CFG
- RANGE_ERR_CFG_PMCOUNT,
- // TX PCL CFG
- RANGE_ERR_CFG_PCL,
- RANGE_ERR_CFG_MAX_P,
- RANGE_ERR_CFG_WANTED_P,
- RANGE_ERR_CFG_MIN_P,
- RANGE_ERR_CFG_C,
- RANGE_ERR_CFG_CORRECTION,
- RANGE_ERR_RECURSIVE_TIMES,
- RANGE_ERR_CFG_APC_DELTA,
- RANGE_ERR_CFG_TSC,
- // phase error CFG
- RANGE_ERR_PHASE_ERROR,
- // FM
- RANGE_ERR_FM_FREQ,
- RANGE_ERR_FM_RSSI_THRESHOLD,
- RANGE_ERR_FM_IF_COUNTER_DELTA,
-
-
- // baseband
- RANGE_ERR_REG_ADDR,
- RANGE_ERR_REG_VALUE,
- RANGE_ERR_GPIO_PORT,
- RANGE_ERR_GPIO_VALUE,
- RANGE_ERR_LED_LIGHT_LEVEL,
- RANGE_ERR_RTC_YEAR,
- RANGE_ERR_RTC_MONTH,
- RANGE_ERR_RTC_WDAY,
- RANGE_ERR_RTC_DAY,
- RANGE_ERR_RTC_HOUR,
- RANGE_ERR_RTC_MINUTE,
- RANGE_ERR_RTC_SEC,
- // BB TX parameters
- RANGE_ERR_TRIM_IQ,
- RANGE_ERR_TRIM_IQ_STEP,
- RANGE_ERR_OFFSET_IQ,
- RANGE_ERR_OFFSET_IQ_STEP,
- RANGE_ERR_BB_TX_CAL_FLAG,
- RANGE_ERR_TX_CALBIAS,
- RANGE_ERR_TX_IQSWAP,
- RANGE_ERR_BB_TX_COMMON_MODE_VOLTAGE,
- RANGE_ERR_BB_TX_GAIN,
- RANGE_ERR_CALRCSEL,
- RANGE_ERR_PHASESEL,
- RANGE_ERR_PHASESEL_STEP,
- RANGE_ERR_APC_BAT_LOW_VOLTAGE,
- RANGE_ERR_APC_BAT_HIGH_VOLTAGE,
- RANGE_ERR_APC_BAT_LOW_TEMPERATURE,
- RANGE_ERR_APC_BAT_HIGH_TEMPERATURE,
- RANGE_ERR_BATTERY_COMPENSATE,
- // BV
- RANGE_ERR_BV_AP,
- RANGE_ERR_BV_AS,
- RANGE_ERR_BV_AO,
- RANGE_ERR_BV_BD,
- RANGE_ERR_BV_KAG,
- RANGE_ERR_BV_KSG,
- RANGE_ERR_BV_KAD,
- RANGE_ERR_BV_KSD,
- RANGE_ERR_BV_VRE,
- RANGE_ERR_BV_VOF,
- RANGE_ERR_BV_ARE,
- RANGE_ERR_BV_AOF,
-
- // crystal
- RANGE_ERR_CAPID,
- RANGE_ERR_TX_AFC_OFFSET,
- RANGE_ERR_INTERSLOT_LOWEST_DAC,
- RANGE_ERR_CTS_TEMPERATURE,
- RANGE_ERR_CTS_TEMPERATURE_STEP,
-
- // Audio
- RANGE_ERR_FIR_TAPS,
- RANGE_ERR_FIR_COEF,
- RANGE_ERR_DELAY,
- RANGE_ERR_REPEATS,
- RANGE_ERR_SPEAKERVOLUME,
- RANGE_ERR_BUZZERVOLUME,
- RANGE_ERR_FACTORY_ID,
- RANGE_ERR_TA,
- RANGE_ERR_ICORRECTION,
- RANGE_ERR_QCORRECTION,
- RANGE_ERR_ACODE,
- RANGE_ERR_AMCODE,
- RANGE_ERR_BCODE,
- RANGE_ERR_CCODE,
- RANGE_ERR_MUTLISLOT_TX_PATTERN,
- RANGE_ERR_CT_PATTERN,
- RANGE_ERR_C3TA,
- RANGE_ERR_C3TB,
- RANGE_ERR_C3TC,
- RANGE_ERR_C3TN,
- RANGE_ERR_C3TO,
- RANGE_ERR_C3PM,
- RANGE_ERR_VOLUME,
- RANGE_ERR_INSTRUMENT,
- RANGE_ERR_TIME_CONST,
- RANGE_ERR_VOLUME_CONST,
- RANGE_ERR_MEDIA_PLAYBACK_MAXIMUM_SWING,
- RANGE_ERR_SPEECH_COMMON_PARAMETER,
- RANGE_ERR_SPEECH_MODE_DEPENDENT_PARAMETER,
- RANGE_ERR_MEASURE_COUNT,
- RANGE_ERR_BATTERY_LEVEL_VOLTAGE,
- // audio
- RANGE_ERR_VOLUME_GAIN,
- RANGE_ERR_MAG_DB,
- // tone
- RANGE_ERR_TONE_FREQ,
- RANGE_ERR_LOUD_SPEAKER_VOLUME,
- // FIR tunning
- RANGE_ERR_FIR_SCALE,
- RANGE_ERR_DIGITAL_SCALE,
- // AEC
- RANGE_ERR_SPEAKER_GAIN,
- RANGE_ERR_MIC_GAIN,
- // IMEISV
- RANGE_ERR_IMEI_SVN,
- RANGE_ERR_IMEI_PAD,
- // Agilent 8960
- RANGE_ERR_AGE_MEASUREMENT_COUNT,
- // WiFi
- RANGE_ERR_WIFI_BB_CHIP_ID,
- RANGE_ERR_WIFI_RF_CHIP_ID,
- RANGE_ERR_WIFI_SN,
- RANGE_ERR_WIFI_MAC_ADDRESS,
- RANGE_ERR_WIFI_BB_REG_ADDR,
- RANGE_ERR_WIFI_BB_REG_VALUE,
- RANGE_ERR_WIFI_MAC_REG_ADDR,
- RANGE_ERR_WIFI_MAC_REG_VALUE,
- RANGE_ERR_WIFI_EE_ADDR,
- RANGE_ERR_WIFI_EE_VALUE,
-
- RANGE_ERR_WIFI_PACKET_LENGTH,
- RANGE_ERR_WIFI_PACKET_COUNT,
- RANGE_ERR_WIFI_PACKET_INTERVAL,
- RANGE_ERR_WIFI_TX_POWER_DAC,
- RANGE_ERR_WIFI_TX_DC_OFFSET,
- RANGE_ERR_WIFI_MAC_HEADER_FRAME_CTRL,
- RANGE_ERR_WIFI_MAC_HEADER_DURATION,
- RANGE_ERR_WIFI_MAC_HEADER_ADDRESS,
- RANGE_ERR_WIFI_MAC_HEADER_SEQ_CTRL,
- RANGE_ERR_WIFI_TX_ALC_CCK,
- RANGE_ERR_WIFI_TX_OUTPUT_POWER_DB_CCK,
- RANGE_ERR_WIFI_TX_ALC_OFDM,
- RANGE_ERR_WIFI_TX_OUTPUT_POWER_DB_OFDM,
- RANGE_ERR_WIFI_ALC_OFFSET,
- RANGE_ERR_WIFI_TARGET_ALC,
- RANGE_ERR_WIFI_ALC_SLOPE_DIVIDER,
- RANGE_ERR_WIFI_ALC_SLOPE_DIVIDEND,
- // BT common
- RANGE_ERR_BT_HCI_VALUE,
- RANGE_ERR_BT_HCI_OPCODE,
- RANGE_ERR_BT_HCI_EVENT_INDEX,
- RANGE_ERR_BT_FREQ,
- RANGE_ERR_BT_TX_DATA_LENGTH,
- RANGE_ERR_BT_TX_POLL_PERIOD,
- RANGE_ERR_BT_TX_PACKET_COUNT,
- RANGE_ERR_BT_TX_PCL,
- RANGE_ERR_BT_TX_LAP,
- RANGE_ERR_BT_TX_ACCESS_CODE,
- RANGE_ERR_BT_BD_ADDRESS,
- RANGE_ERR_BT_TIMEOUT,
- RANGE_ERR_BT_PIN,
- // ESCO
- RANGE_ERR_BT_RX_BANDWIDTH,
- RANGE_ERR_BT_TX_BANDWIDTH,
- RANGE_ERR_BT_MAX_LATENCY,
- RANGE_ERR_BT_RETRANSMISSION_EFFORT,
- // Unit Test
- RANGE_ERR_UNIT_TEST_ID
- };
- /*---------------------------------------------------------------------------*/
- #define MSG_CHECK_ERROR( _op_id )
- { ::ShowErrorMessage( _op_id );
- }
- #define RANGE_CHECK_ERROR( _false_statement, _op_id )
- { if( _false_statement )
- { ::ShowRangeErrorMessage( _op_id );
- return(false);
- }
- }
- /*---------------------------------------------------------------------------*/
- extern void ShowErrorMessage( int op_id );
- extern void ShowTimeoutMessage( int op_id );
- extern void ShowRangeErrorMessage( int op_id );
- /*---------------------------------------------------------------------------*/
- #endif