rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 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 | * touch_panel_trc.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * MAUI |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * This is trace map definition for touch panel driver |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * ------- |
| 52 | * |
| 53 | ****************************************************************************/ |
| 54 | #ifndef _TP_TRC_H |
| 55 | #define _TP_TRC_H |
| 56 | |
| 57 | |
| 58 | #ifndef GEN_FOR_PC |
| 59 | |
| 60 | #ifndef _STACK_CONFIG_H |
| 61 | #error "stack_config.h should be included before tst_config.h" |
| 62 | #endif |
| 63 | |
| 64 | #else |
| 65 | #include "kal_trace.h" |
| 66 | #endif /* GEN_FOR_PC */ |
| 67 | |
| 68 | |
| 69 | #ifndef _KAL_TRACE_H |
| 70 | #error "kal_trace.h should be included before tst_trace.h" |
| 71 | #endif |
| 72 | |
| 73 | #if !defined(GEN_FOR_PC) |
| 74 | #if defined(__TST_MODULE__) || defined(__CUSTOM_RELEASE__) |
| 75 | #include "touch_panel_trc_gen.h" |
| 76 | #endif /* TST Trace Defintion */ |
| 77 | #endif |
| 78 | BEGIN_TRACE_MAP(MOD_TP_TASK) |
| 79 | |
| 80 | TRC_MSG(TP_HISR_DOWN,"TP HISR Down") |
| 81 | TRC_MSG(TP_HISR_UP,"TP HISR UP") |
| 82 | TRC_MSG(TP_DOWN_HDR,"TP down handler") |
| 83 | TRC_MSG(TP_UP_HDR,"TP up handler") |
| 84 | TRC_MSG(TP_STAT,"TP stat: %d") |
| 85 | |
| 86 | TRC_MSG(TP_UP_INTR_LOST,"TP up intr lost") |
| 87 | TRC_MSG(TP_DOWN_INTR_LOST,"TP down intr lost") |
| 88 | |
| 89 | TRC_MSG(TP_PRESSURE_RESULT,"TP pressure result: %d") |
| 90 | TRC_MSG(TP_PRESSURE_VALUE,"TP pressure value: pressure: %d, x: %d, z1: %d, z2: %d") |
| 91 | |
| 92 | TRC_MSG(TP_ADC_VALUE,"TP ADC value: x: %d, y: %d") |
| 93 | TRC_MSG(TP_VALID_COORD_VALUE,"TP valid coord value: x: %d, y: %d") |
| 94 | TRC_MSG(TP_CUSTOM_SETTING,"TP custom setting: ADC_X_Start: %d, ADC_X_End: %d, ADC_Y_Start: %d, ADC_Y_End: %d, ScreenX_Start: %d, ScreenX_End: %d, ScreenY_Start: %d, ScreenY_End: %d") |
| 95 | TRC_MSG(TP_INVALID_COORD_VALUE,"TP invalid coord value: ScreenX_Start: %d, ScreenX_End: %d, ScreenY_Start: %d, ScreenY_End: %d, x: %d, y: %d") |
| 96 | TRC_MSG(TP_WAIT_NEXT_TRUE,"TP wait next is TRUE, just return") |
| 97 | TRC_MSG(TP_WAIT_NEXT_SET_TRUE,"TP wait next is set to TRUE!!!!") |
| 98 | TRC_MSG(TP_FLUSH,"TP flush all data") |
| 99 | TRC_MSG(TP_RESET,"TP reset") |
| 100 | TRC_MSG(TP_EXCEED_PENMOVE,"TP exceed penmove: %d") |
| 101 | |
| 102 | TRC_MSG(TP_CONF_SAMPLE_PERIOD,"TP config sample period: low: %d, high: %d") |
| 103 | TRC_MSG(TP_CONF_TIMEOUT_PERIOD,"TP config timeout period: longtap: %d, repeat: %d, handwriting_longtap: %d") |
| 104 | TRC_MSG(TP_CONF_MOVE_OFFSET,"TP config move offset: pen_offset: %d, stroke_offset: %d, longtap_pen_offset: %d, longtap_stroke_offset: %d") |
| 105 | |
| 106 | TRC_MSG(TP_GET_EVENT,"TP get_event: event: %d, x: %d, y: %d") |
| 107 | TRC_MSG(TP_PEEK_EVENT,"TP get_event: event: %d, x: %d, y: %d") |
| 108 | |
| 109 | // Stroke |
| 110 | TRC_MSG(TP_STROKE_UP,"TP stroke up") |
| 111 | TRC_MSG(TP_STROKE_MOVE,"TP stroke move x: %d, y: %d") |
| 112 | |
| 113 | // Pen |
| 114 | TRC_MSG(TP_PEN_UP,"TP pen up") |
| 115 | TRC_MSG(TP_PEN_LONGTAP,"TP longtap x: %d, y: %d") |
| 116 | TRC_MSG(TP_PEN_REPEAT,"TP repeat x: %d, y: %d") |
| 117 | TRC_MSG(TP_PEN_MOVE,"TP move x: %d, y: %d") |
| 118 | |
| 119 | |
| 120 | |
| 121 | // Calibration messages |
| 122 | TRC_MSG(TP_CALI_FORCE_VALID_COORD_VALUE,"TP cali mode force validate coord value") |
| 123 | TRC_MSG(TP_CALI_ADC_DIFF,"TP cali ADC diff: x_diff: %d, x_diff_high: %d, x_diff_low: %d, y_diff: %d, y_diff_high: %d, y_diff_low: %d") |
| 124 | TRC_MSG(TP_CALI_1ST_ADC,"TP 1st adc: x: %d, y: %d") |
| 125 | TRC_MSG(TP_CALI_2ND_ADC,"TP 2nd adc: x: %d, y: %d") |
| 126 | TRC_MSG(TP_CALI_RESULT,"TP cali formula: x_slope: %d, x_offset: %d, y_slope: %d, y_offset: %d, result: %d") |
| 127 | |
| 128 | |
| 129 | END_TRACE_MAP(MOD_TP_TASK) |
| 130 | |
| 131 | #endif /* _TP_TRC_H */ |
| 132 | |
| 133 | |