blob: 209c93d83d15f3323a6946b4c91facd211f60e41 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
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 *
38 * Filename:
39 * ---------
40 * tl1cal_ast.h
41 *
42 * Project:
43 * --------
44 * Maui_Software
45 *
46 * Description:
47 * ------------
48 * The structure definition of TL1 AST calibration data
49 *
50 * Author:
51 * -------
52 * -------
53 *
54 *==============================================================================
55 * HISTORY
56 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
57 *------------------------------------------------------------------------------
58 * removed!
59 * removed!
60 *
61 *------------------------------------------------------------------------------
62 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
63 *==============================================================================
64 *******************************************************************************/
65#ifndef TL1CAL_AST_H
66#define TL1CAL_AST_H
67
68#include "dcl.h"
69
70#define AST_CAL_TEMP_SECTION (8)
71#define AST_CAL_UARFCN_SECTION (15)
72#define AST_CAL_RX_GAIN_MODEN_MAX (8)
73
74 /*****************************************************************************
75* Constant : TL1_CUSTOM_GPIO_MAX_NUM_OF_DEFINED_DETECT_PIN_NAME
76* Group : Real target, Internals, UL1D common operation
77* Description : Constant to be used to determine the max number of GPIO
78* detection pin names defined so far at AP side GPIO driver
79*****************************************************************************/
80#define TL1_CUSTOM_GPIO_MAX_NUM_OF_DEFINED_DETECT_PIN_NAME (3)
81
82/* ------------------------------------------------------------------------- */
83typedef struct
84{
85 kal_uint16 tempdacData[AST_CAL_TEMP_SECTION];
86}ast_tl1cal_tempdacData_T;
87
88typedef struct
89{
90 kal_uint16 initDac;
91 kal_uint16 slope;
92}ast_tl1cal_afcData_T;
93
94typedef struct
95{
96 kal_uint16 freqTable[AST_CAL_UARFCN_SECTION];
97 kal_int16 compByFreq[AST_CAL_RX_GAIN_MODEN_MAX][AST_CAL_UARFCN_SECTION];
98 kal_int16 compByTemp[AST_CAL_RX_GAIN_MODEN_MAX][AST_CAL_TEMP_SECTION];
99}ast_tl1cal_pathlossData_T;
100
101typedef struct
102{
103 kal_uint16 paData[3][4];
104 kal_int16 paPower[3][4];
105 kal_uint16 freqTable[AST_CAL_UARFCN_SECTION];
106 kal_int16 compByFreq[3][AST_CAL_UARFCN_SECTION];
107 kal_int16 compByTemp[3][AST_CAL_TEMP_SECTION];
108 kal_uint16 paSwitch[2][2];
109 kal_int16 maxPaPower;
110 kal_uint16 maxPaData;
111 kal_int16 maxPower_offset;
112 kal_int16 midgain_offset;
113}ast_tl1cal_txdacData_T;
114
115typedef struct
116{
117 /// first boot-up indicator 1: yes, 0: no (mcu power on ABB auto-cal when is_first_boot is 1)
118 kal_uint16 is_first_boot;
119 /// ABB calibration data
120 kal_uint16 abbData[15];
121}ast_tl1cal_abbData_T;
122
123typedef struct
124{
125 /// CAP ID
126 kal_uint32 capId;
127}ast_tl1cal_capData_T;
128typedef struct
129{
130 kal_int16 pdCompMidChannel[3];
131 kal_int16 pdCompByFreq[AST_CAL_UARFCN_SECTION];
132}ast_tl1cal_txPdData_T;
133
134
135
136/*******************************************************************************
137 * Type Definitions *
138 *******************************************************************************/
139
140/*****************************************************************************
141* Typedef : Tl1CustomDynamicInitDebug
142* Group : Real target, Internals, TL1D common operation
143* Type : structure
144* Description : Internal typedef used by TL1CUSTOM GPIO detection HW setting
145* mechanism
146*****************************************************************************/
147#if 1
148typedef struct
149{
150 kal_uint16 combined_config_index;
151 kal_uint8 first_config_index_base;
152 kal_uint8 second_config_index_base;
153 kal_uint8 third_config_index_base;
154
155 kal_int32 gpio_get_pin_rpc_status;
156 kal_uint32 gpio_return_pin_num[TL1_CUSTOM_GPIO_MAX_NUM_OF_DEFINED_DETECT_PIN_NAME];
157 kal_uint32 gpio_pin_value[TL1_CUSTOM_GPIO_MAX_NUM_OF_DEFINED_DETECT_PIN_NAME];
158 kal_uint32 gpio_combined_pin_value;
159 kal_int32 adc_get_ch_num_rpc_status;
160 DCL_STATUS adc_dcl_handle_status;
161 DCL_STATUS adc_cal_dcl_handle_status;
162 kal_uint32 adc_get_ch_num;
163 kal_uint32 adc_dac_read_result;
164 kal_uint32 adc_volt_translate_result;
165 kal_uint8 adc_volt_level;
166 kal_bool barcode_lid_read_status;
167 kal_uint8 barcode_digit_read_result;
168 kal_uint16 custom_total_set_nums;
169
170} Tl1CustomDynamicInitDebug;
171#endif
172
173#endif