blob: c2c1d78ef22ce36d9ba19b2bfe47208e17f5c07e [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
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 * l4c2uem_struct.h
41 *
42 * Project:
43 * --------
44 * MAUI
45 *
46 * Description:
47 * ------------
48 *
49 * Author:
50 * -------
51 * -------
52 *
53 *============================================================================
54 * HISTORY
55 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
56 *------------------------------------------------------------------------------
57 * removed!
58 *
59 * removed!
60 * removed!
61 * removed!
62 *
63 * removed!
64 * removed!
65 * removed!
66 *
67 * removed!
68 * removed!
69 * removed!
70 *
71 *------------------------------------------------------------------------------
72 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
73 *============================================================================
74 ****************************************************************************/
75
76/********************************************************************************
77* Copyright Statement:
78* --------------------
79*
80* This product has been developed using a protocol stack
81* developed by Sasken Communication Technologies Limited.
82*
83********************************************************************************/
84
85
86/*******************************************************************************
87* Copyright Statement:
88* --------------------
89* This software is protected by Copyright and the information contained
90* herein is confidential. The software may not be copied and the information
91* contained herein may not be used or disclosed except with the written
92* permission of MediaTek Inc. (C) 2002
93*
94*******************************************************************************
95 * FILENAME : l4c2uem_struct.h
96 * SYNOPSIS : Functions for encoding/decoding.
97 *
98 * R E V I S I O N H I S T O R Y
99 *
100 */
101#ifndef _L4C2UEM_STRUCT_H
102#define _L4C2UEM_STRUCT_H
103
104#include "ps_public_struct.h"
105#ifdef __MULTI_LEVEL_BACKLIGHT_SUPPORT__
106#include "custom_hw_default.h"
107#endif
108#include "kal_public_defs.h"
109
110#define MAX_MELODY_FILE_NAME 50
111
112typedef struct {
113 LOCAL_PARA_HDR
114 kal_uint8 src_id;
115} l4cuem_startup_req_struct;
116
117typedef struct {
118 LOCAL_PARA_HDR
119 kal_uint8 src_id;
120 kal_uint8 response;
121 kal_uint8 cause;
122} l4cuem_startup_cnf_struct;
123
124typedef struct {
125 LOCAL_PARA_HDR
126 kal_uint8 src_id;
127 kal_uint8 type;
128 kal_uint8 data1;
129 kal_uint8 data2;
130 kal_uint8 data3;
131} l4cuem_set_profile_req_struct;
132
133typedef struct {
134
135 kal_uint8 mode;
136 kal_uint8 melody[7];
137 kal_uint8 keytone[7];
138 kal_uint8 speech[7];
139 kal_uint8 mic;
140 kal_uint8 sidetone;
141
142} l4cuem_audio_profile_struct;
143
144typedef struct {
145 LOCAL_PARA_HDR
146 kal_uint8 src_id;
147 kal_uint8 mode;
148 kal_uint8 melody[7];
149 kal_uint8 keytone[7];
150 kal_uint8 speech[7];
151 kal_uint8 mic;
152 kal_uint8 sidetone;
153
154} l4cuem_set_audio_profile_req_struct;
155
156typedef struct {
157 LOCAL_PARA_HDR
158 kal_uint8 src_id;
159 kal_uint8 type;
160 kal_uint8 response;
161 kal_uint8 cause;
162} l4cuem_set_profile_cnf_struct;
163
164typedef struct {
165 LOCAL_PARA_HDR
166 kal_uint8 src_id;
167 kal_uint8 response;
168 kal_uint8 cause;
169} l4cuem_set_audio_profile_cnf_struct;
170
171typedef struct {
172 LOCAL_PARA_HDR
173 kal_uint8 src_id;
174 kal_uint8 response;
175 kal_uint8 cause;
176} l4cuem_set_audio_param_cnf_struct;
177
178typedef struct {
179 LOCAL_PARA_HDR
180 kal_uint8 src_id;
181 kal_uint8 type;
182 kal_uint8 index;
183 kal_uint16 length;
184 kal_uint8 imelody[300];
185} l4cuem_store_imelody_req_struct;
186
187typedef struct {
188 LOCAL_PARA_HDR
189 kal_uint8 src_id;
190 kal_uint8 response;
191 kal_uint8 cause;
192} l4cuem_store_imelody_cnf_struct;
193
194typedef struct {
195 LOCAL_PARA_HDR
196 kal_uint8 src_id;
197 kal_uint8 index;
198} l4cuem_delete_imelody_req_struct;
199
200typedef struct {
201 LOCAL_PARA_HDR
202 kal_uint8 src_id;
203 kal_uint8 response;
204 kal_uint8 cause;
205} l4cuem_delete_imelody_cnf_struct;
206
207typedef struct {
208 LOCAL_PARA_HDR
209 kal_uint8 src_id;
210 kal_uint16 file_name[MAX_MELODY_FILE_NAME];
211 kal_uint8 play_style;
212 kal_uint16 identifier;
213}
214l4cuem_audio_play_by_name_req_struct;
215
216typedef struct {
217 LOCAL_PARA_HDR
218 kal_uint8 src_id;
219 kal_uint16 file_name[MAX_MELODY_FILE_NAME];
220}
221l4cuem_audio_stop_by_name_req_struct;
222
223typedef struct {
224 LOCAL_PARA_HDR
225 kal_uint8 src_id;
226 kal_uint8 result;
227}
228l4cuem_audio_play_by_name_cnf_struct;
229
230typedef struct {
231 LOCAL_PARA_HDR
232 kal_uint8 src_id;
233 kal_uint8 result;
234}
235l4cuem_audio_stop_by_name_cnf_struct;
236
237typedef struct
238{
239 LOCAL_PARA_HDR
240 kal_uint8 src_id;
241
242 kal_uint32 PWM1_freq_Level_Info[5];
243 kal_uint32 PWM1_duty_Level_Info[5];
244 kal_uint32 PWM2_freq_Level_Info[5];
245 kal_uint32 PWM2_duty_Level_Info[5];
246 kal_uint32 PWM3_freq_Level_Info[5];
247 kal_uint32 PWM3_duty_Level_Info[5];
248
249 kal_uint8 MainLCD_Contrast_Level_Info[15];
250 kal_uint8 MainLCD_Bias_Level_Info[5];
251 kal_uint8 MainLCD_Linerate_Level_Info[5];
252 kal_uint8 MainLCD_Temp_Level_Info[5];
253
254 kal_uint8 SubLCD_Contrast_Level_Info[15];
255 kal_uint8 SubLCD_Bias_Level_Info[5];
256 kal_uint8 SubLCD_Linerate_Level_Info[5];
257 kal_uint8 SubLCD_Temp_Level_Info[5];
258
259 kal_uint32 Battery_Level_Info[10];
260#ifdef __MULTI_LEVEL_BACKLIGHT_SUPPORT__
261 kal_uint32 bl_PWM_freq_Level_Info[PWM_MAX_BACKLIGHT_LEVEL];
262 kal_uint32 bl_PWM_duty_Level_Info[PWM_MAX_BACKLIGHT_LEVEL];
263#endif
264} l4cuem_set_hw_level_req_struct;
265
266typedef struct
267{
268 LOCAL_PARA_HDR
269 kal_uint8 src_id;
270 kal_uint8 response;
271 kal_uint8 cause;
272} l4cuem_set_hw_level_cnf_struct;
273
274
275#endif
276
277