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) 2016 |
| 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 | * This Software is the property of VIA Telecom, Inc. and may only be used pursuant to a license from VIA Telecom, Inc. |
| 38 | * |
| 39 | * Any unauthorized use inconsistent with the terms of such license is strictly prohibited. |
| 40 | * |
| 41 | * Copyright (c) 2006-2010 VIA Telecom, Inc. All rights reserved. |
| 42 | * |
| 43 | *************************************************************/ |
| 44 | #ifndef _UI_API_H_ |
| 45 | #define _UI_API_H_ |
| 46 | /***************************************************************************** |
| 47 | * |
| 48 | * FILE NAME: uiapi.h |
| 49 | * |
| 50 | * DESCRIPTION: |
| 51 | * This file contains definitions and types for the UI software unit. |
| 52 | * |
| 53 | * HISTORY : |
| 54 | * See Log at end of file |
| 55 | * |
| 56 | * |
| 57 | *****************************************************************************/ |
| 58 | |
| 59 | #include "monapi.h" |
| 60 | //#include "valfsiapi.h" |
| 61 | //#include "valdispapi.h" |
| 62 | //#include "valsndapi.h" |
| 63 | #include "valsmsapi.h" |
| 64 | |
| 65 | #define NUM_UI_LOCK_CODE_DIGITS 7 |
| 66 | #define LOCK_CODE_LENGTH_AFTER_MDN_UPDATE 4 |
| 67 | #define LOCK_CODE_LENGTH_AFTER_ESN_UPDATE 4 |
| 68 | |
| 69 | #define UI_MAIN_MAILBOX_ID EXE_MAILBOX_1_ID |
| 70 | #define UI_MAIN_MAIL_TYPE EXE_MAILBOX_1 |
| 71 | #define VTUI_MESSAGE_TYPE UI_MAIN_MAIL_TYPE |
| 72 | #define UI_ONE_SEC_TIMER_ID (kal_uint32)2 |
| 73 | #define UI_AUTO_ANSWER_TIMER_ID (kal_uint32)6 |
| 74 | |
| 75 | #define UI_TIMER_RESET 0 |
| 76 | #define UI_TIMER_RESTART 1 |
| 77 | #define UI_ONE_SEC_TIMEOUT_VALUE 1000 /* msecs */ |
| 78 | |
| 79 | #define UI_ONE_SEC_TIMEOUT_SIGNAL EXE_SIGNAL_11 |
| 80 | #define UI_DEEP_SLEEP_TIME_SLICE_DEFAULT 0 /* 0 msecs (off) */ |
| 81 | #define UI_TASK_STOP_SIG EXE_SIGNAL_20 |
| 82 | |
| 83 | #define UI_TRACE( x ) MonTrace( MON_CP_UI_GENERIC_TRACE_ID, 1, x ) |
| 84 | |
| 85 | enum EventCatT { |
| 86 | CALL_PROCESSING_CATE = 1, |
| 87 | SMS_CATE = 2, |
| 88 | DATA_CATE = 3, |
| 89 | KEY_CATE = 4, |
| 90 | ACCESSORY_CATE = 5, |
| 91 | WINDOW_CATE = 6, |
| 92 | SOFTICON_CATE = 7, |
| 93 | APPLICATION_CATE = 8, |
| 94 | GENERAL_UI_CATE |
| 95 | }; |
| 96 | |
| 97 | enum EventBitT { |
| 98 | CALL_PROCESSING_BIT = 1 << (CALL_PROCESSING_CATE - 1), |
| 99 | SMS_BIT = 1 << (SMS_CATE - 1), |
| 100 | DATA_BIT = 1 << (DATA_CATE - 1), |
| 101 | KEY_BIT = 1 << (KEY_CATE - 1), |
| 102 | ACCESSORY_BIT = 1 << (ACCESSORY_CATE - 1), |
| 103 | WINDOW_BIT = 1 << (WINDOW_CATE - 1), |
| 104 | SOFTICON_BIT = 1 << (SOFTICON_CATE - 1), |
| 105 | APPLICATION_BIT = 1 << (APPLICATION_CATE - 1), |
| 106 | GENERAL_UI_BIT = 1 << (GENERAL_UI_CATE - 1), |
| 107 | ALL_BIT = 0x7FFFFFFF |
| 108 | }; |
| 109 | #define GROUP_BIT_LOCATION 12 |
| 110 | #define APPCAT(group,id) (0x01000000 | \ |
| 111 | (group << GROUP_BIT_LOCATION) | \ |
| 112 | ((id) & 0x0FFF)) |
| 113 | #define GROUP_MASK 0x000FF000 |
| 114 | #define GET_MAIL_GROUP(MsgId) (((MsgId) & GROUP_MASK) >> GROUP_BIT_LOCATION) |
| 115 | |
| 116 | #define MSGID_OF_GROUP_MASK 0x00000FFF |
| 117 | #define GET_MSGID_OF_GROUP(MsgId) ((MsgId) & MSGID_OF_GROUP_MASK) |
| 118 | |
| 119 | #define CHVAPP 1 |
| 120 | #define VALTESTAPP 2 |
| 121 | |
| 122 | #define MAX_NUM_OF_APP 35 //add new app before this definition and increase this value |
| 123 | |
| 124 | #define CHVAPP_LAUNCH APPCAT(CHVAPP, 1) |
| 125 | #define CHVAPP_CHV_CHECK APPCAT(CHVAPP, 2) |
| 126 | #define CHVAPP_UIM_CHECK APPCAT(CHVAPP, 3) |
| 127 | #define CHVAPP_SP_CHECK APPCAT(CHVAPP, 4) |
| 128 | #define CHVAPP_AREA_CHECK APPCAT(CHVAPP, 5) |
| 129 | #define CHVAPP_ALL_PASSED APPCAT(CHVAPP, 6) |
| 130 | #define CHVAPP_ENTER_PIN APPCAT(CHVAPP, 7) |
| 131 | #define CHVAPP_CLEAR_PIN APPCAT(CHVAPP, 8) |
| 132 | #define CHVAPP_ENABLE_PIN_MENU APPCAT(CHVAPP, 9) //TEMP USE |
| 133 | #define CHVAPP_DISABLE_PIN_MENU APPCAT(CHVAPP, 10) |
| 134 | #define CHVAPP_ENTER_PUK APPCAT(CHVAPP, 11) |
| 135 | #define CHVAPP_PUK_CHECK APPCAT(CHVAPP, 12) |
| 136 | #define CHVAPP_CHANGE_PIN_MENU APPCAT(CHVAPP, 13) |
| 137 | #define CHVAPP_CHANGE_PIN_OK APPCAT(CHVAPP, 14) |
| 138 | #define CHVAPP_CANCEL_DLG APPCAT(CHVAPP, 15) |
| 139 | #define CHVAPP_GET_NAM APPCAT(CHVAPP, 16) |
| 140 | #define CHVAPP_GET_IMSI APPCAT(CHVAPP, 17) |
| 141 | #define CHVAPP_OPEN_MAIN_MENU APPCAT(CHVAPP, 18) |
| 142 | |
| 143 | |
| 144 | #define UI_SET_DEEP_SLEEP_TIME_SLICE_MSG APPCAT( VALTESTAPP, 1 ) |
| 145 | |
| 146 | #define UI_SET_RINGER_FILE APPCAT( VALTESTAPP, 10 ) |
| 147 | #define UI_PLAY_MUSIC_FILE APPCAT( VALTESTAPP, 11 ) |
| 148 | #define UI_AUDIO_VIDEO_FILE APPCAT( VALTESTAPP, 12 ) |
| 149 | #define UI_SET_BACKGROUND APPCAT( VALTESTAPP, 13 ) |
| 150 | #define UI_DRAW_BACKGROUND APPCAT( VALTESTAPP, 14 ) |
| 151 | #define UI_DRAW_ANIMATION APPCAT( VALTESTAPP, 15 ) |
| 152 | #define UI_DRAW_NEXT_ANIMATION APPCAT( VALTESTAPP, 16 ) |
| 153 | #define UI_STOP_ANIMATION APPCAT( VALTESTAPP, 17 ) |
| 154 | #define UI_SET_AUTO_ANSWER_MSG APPCAT( VALTESTAPP, 18 ) |
| 155 | #define UI_SET_PRIVACY_MODE_MSG APPCAT( VALTESTAPP, 19 ) |
| 156 | #define UI_SET_AUTO_ANSWER_DELAY_MSG APPCAT( VALTESTAPP, 20 ) |
| 157 | #define UI_SET_DTMF_TYPE_MSG APPCAT( VALTESTAPP, 21 ) |
| 158 | #define UI_DBM_READ_NAM_MSG APPCAT( VALTESTAPP, 22 ) |
| 159 | #define UI_PERMDATA_READ_MSG APPCAT( VALTESTAPP, 23 ) |
| 160 | #define UI_START_REFUBISH_AGING_TEST_MSG APPCAT( VALTESTAPP, 24 ) |
| 161 | #define UI_STOP_REFUBISH_AGING_TEST_MSG APPCAT( VALTESTAPP, 25 ) |
| 162 | #define UI_REFUBISH_AGING_INC_PWR_MSG APPCAT( VALTESTAPP, 26 ) |
| 163 | #define UI_REFUBISH_AGING_DEC_PWR_MSG APPCAT( VALTESTAPP, 27 ) |
| 164 | #define UI_GET_AUTO_ANSWER_STATUS_MSG APPCAT( VALTESTAPP, 28 ) |
| 165 | #define UI_GET_MUSIC_PLAY_TIME_MSG APPCAT( VALTESTAPP, 29 ) |
| 166 | |
| 167 | #define UI_VAL_NET_INITIALIZE APPCAT( VALTESTAPP, 30 ) |
| 168 | #define UI_VAL_NET_PPP_OPEN APPCAT( VALTESTAPP, 31 ) |
| 169 | #define UI_VAL_NET_PPP_CLOSE APPCAT( VALTESTAPP, 32 ) |
| 170 | #define UI_VAL_NET_PPP_DORMANT_REQ APPCAT( VALTESTAPP, 33 ) |
| 171 | #define UI_VAL_NET_GET_PPP_STATUS APPCAT( VALTESTAPP, 34 ) |
| 172 | #define UI_VAL_NET_EVENT_SELECT APPCAT( VALTESTAPP, 35 ) |
| 173 | #define UI_VAL_NET_SOCKET APPCAT( VALTESTAPP, 36 ) |
| 174 | #define UI_VAL_NET_CONNECT APPCAT( VALTESTAPP, 37 ) |
| 175 | #define UI_VAL_NET_CLOSE APPCAT( VALTESTAPP, 38 ) |
| 176 | #define UI_VAL_NET_GET_SOCK_STATUS APPCAT( VALTESTAPP, 39 ) |
| 177 | #define UI_VAL_NET_RECV APPCAT( VALTESTAPP, 40 ) |
| 178 | #define UI_VAL_NET_SEND APPCAT( VALTESTAPP, 41 ) |
| 179 | #define UI_VAL_NET_BIND APPCAT( VALTESTAPP, 42 ) |
| 180 | #define UI_VAL_NET_LISTEN APPCAT( VALTESTAPP, 43 ) |
| 181 | #define UI_VAL_NET_ACCEPT APPCAT( VALTESTAPP, 44 ) |
| 182 | #define UI_VAL_NET_SEND_TO APPCAT( VALTESTAPP, 45 ) |
| 183 | #define UI_VAL_NET_RECV_FROM APPCAT( VALTESTAPP, 46 ) |
| 184 | #define UI_VAL_NET_GET_HOST_BY_NAME APPCAT( VALTESTAPP, 47 ) |
| 185 | #define UI_VAL_NET_INET_ADDR APPCAT( VALTESTAPP, 48 ) |
| 186 | #define UI_VAL_NET_GET_PPP_AUTH_PARMS APPCAT( VALTESTAPP, 49 ) |
| 187 | #define UI_VAL_NET_SET_PPP_AUTH_PARMS APPCAT( VALTESTAPP, 50 ) |
| 188 | #define UI_VAL_NET_GET_DIAL_STR_PARMS APPCAT( VALTESTAPP, 51 ) |
| 189 | #define UI_VAL_NET_SET_DIAL_STR_PARMS APPCAT( VALTESTAPP, 52 ) |
| 190 | #define UI_VAL_NET_SET_RLP_INACT_TMO_REQ APPCAT( VALTESTAPP, 53 ) |
| 191 | #define UI_VAL_NET_GET_RLP_SETTING APPCAT( VALTESTAPP, 54 ) |
| 192 | #define UI_VAL_NET_SET_RLP_SETTING APPCAT( VALTESTAPP, 55 ) |
| 193 | #define UI_VAL_NET_GET_IP_ADDRESS APPCAT( VALTESTAPP, 56 ) |
| 194 | #define UI_VAL_NET_GET_DNS_SERVER_IP_ADDR APPCAT( VALTESTAPP, 57 ) |
| 195 | #define UI_VAL_NET_GET_PEER_NAME APPCAT( VALTESTAPP, 58 ) |
| 196 | #define UI_VAL_NET_SET_DNS_SERVER_IP_ADDR APPCAT( VALTESTAPP, 59 ) |
| 197 | #ifdef MTK_CBP |
| 198 | #define UI_VAL_NET_SEND_PING APPCAT( VALTESTAPP, 60 ) |
| 199 | #define UI_VAL_NET_STOP_PING APPCAT( VALTESTAPP, 61 ) |
| 200 | #endif /*MTK_CBP*/ |
| 201 | |
| 202 | #define UI_VAL_PSW_INITIATE_CALL APPCAT( VALTESTAPP, 101 ) |
| 203 | #define UI_VAL_PSW_ANSWER_CALL APPCAT( VALTESTAPP, 102 ) |
| 204 | #define UI_VAL_PSW_HANGUP_CALL APPCAT( VALTESTAPP, 103 ) |
| 205 | #define UI_VAL_CHANGE_AKEY APPCAT( VALTESTAPP, 104 ) |
| 206 | #define UI_VAL_SET_PRL_ENABLE APPCAT( VALTESTAPP, 105 ) |
| 207 | #define UI_VAL_GET_ACTIVE_NAM APPCAT( VALTESTAPP, 106 ) |
| 208 | #define UI_VAL_SET_ACTIVE_NAM APPCAT( VALTESTAPP, 107 ) |
| 209 | #define UI_VAL_GET_AKEY_CHECKSUM APPCAT( VALTESTAPP, 108 ) |
| 210 | #define UI_VAL_E911_DISABLE APPCAT( VALTESTAPP, 109 ) |
| 211 | #define UI_VAL_AUTO_RETRY_ENABLE APPCAT( VALTESTAPP, 110 ) |
| 212 | #define UI_VAL_AUTO_RETRY_DISABLE APPCAT( VALTESTAPP, 111 ) |
| 213 | #define UI_VAL_SMS_START_REG_SRV APPCAT( VALTESTAPP, 112 ) |
| 214 | #define UI_VAL_SMS_STOP_REG_SRV APPCAT( VALTESTAPP, 113 ) |
| 215 | #define UI_VAL_SMS_SET_PREF_SVC_OPT APPCAT( VALTESTAPP, 114 ) |
| 216 | #define UI_VAL_SMS_SET_BROADCAST_PARMS APPCAT( VALTESTAPP, 115 ) |
| 217 | #define UI_VAL_SMS_SET_STORAGE APPCAT( VALTESTAPP, 116 ) |
| 218 | #define UI_VAL_SMS_SEND_TEXT_MESSAGE APPCAT( VALTESTAPP, 117 ) |
| 219 | #define UI_VAL_SMS_SEND_PDU_MESSAGE APPCAT( VALTESTAPP, 118 ) |
| 220 | |
| 221 | #define UI_VAL_GET_PHB_REC_PARAMS APPCAT( VALTESTAPP, 131 ) |
| 222 | #define UI_VAL_GET_PHB_RECORD APPCAT( VALTESTAPP, 132 ) |
| 223 | #define UI_VAL_UPDATE_PHB_RECORD APPCAT( VALTESTAPP, 133 ) |
| 224 | #define UI_VAL_ERASE_PHB_RECORD APPCAT( VALTESTAPP, 134 ) |
| 225 | #define UI_VAL_GET_SMS_REC_PARAMS APPCAT( VALTESTAPP, 135 ) |
| 226 | #define UI_VAL_GET_SMS_RECORD APPCAT( VALTESTAPP, 136 ) |
| 227 | #define UI_VAL_UPDATE_SMS_RECORD APPCAT( VALTESTAPP, 137 ) |
| 228 | #define UI_VAL_ERASE_SMS_RECORD APPCAT( VALTESTAPP, 138 ) |
| 229 | #define UI_VAL_CHV_GET_STATUS APPCAT( VALTESTAPP, 139 ) |
| 230 | #define UI_VAL_CHV_VERIFY APPCAT( VALTESTAPP, 140 ) |
| 231 | #define UI_VAL_CHV_CHANGE APPCAT( VALTESTAPP, 141 ) |
| 232 | #define UI_VAL_CHV_DISABLE APPCAT( VALTESTAPP, 142 ) |
| 233 | #define UI_VAL_CHV_ENABLE APPCAT( VALTESTAPP, 143 ) |
| 234 | #define UI_VAL_CHV_UNBLOCK APPCAT( VALTESTAPP, 144 ) |
| 235 | #define UI_VAL_GET_MAX_MDN_REC_NUM APPCAT( VALTESTAPP, 145 ) |
| 236 | #define UI_VAL_GET_MDN_REC APPCAT( VALTESTAPP, 146 ) |
| 237 | #define UI_VAL_UPDATE_MDN_REC APPCAT( VALTESTAPP, 147 ) |
| 238 | #define UI_VAL_DEL_MDN_REC APPCAT( VALTESTAPP, 148 ) |
| 239 | #define UI_VAL_UTK_PROFILE_INIT APPCAT( VALTESTAPP, 149 ) |
| 240 | #define UI_VAL_UTK_EXIT APPCAT( VALTESTAPP, 150 ) |
| 241 | #define UI_VAL_UTK_SMS_DOWNLOAD APPCAT( VALTESTAPP, 151 ) |
| 242 | #define UI_VAL_UTK_SELECT_MENU APPCAT( VALTESTAPP, 152 ) |
| 243 | #define UI_VAL_UTK_COMM_CMD_RESULT APPCAT( VALTESTAPP, 153 ) |
| 244 | #define UI_VAL_UTK_GET_INPUT_DONE APPCAT( VALTESTAPP, 154 ) |
| 245 | #define UI_VAL_FIRMWARE_VER_RSP_MSG APPCAT( VALTESTAPP, 155 ) |
| 246 | |
| 247 | #define UI_PCM_PROCESS_ENABLE_MSG APPCAT( VALTESTAPP, 156 ) |
| 248 | #define UI_PCM_FRAME_INPUT_MSG APPCAT( VALTESTAPP, 157 ) |
| 249 | #define UI_DISPLAY_ENABLE_MSG APPCAT( VALTESTAPP, 158 ) |
| 250 | #define UI_MUSIC_RECORD_MSG APPCAT( VALTESTAPP, 159 ) |
| 251 | |
| 252 | #define UI_SET_PARM_MSG APPCAT( VALTESTAPP, 192 ) |
| 253 | #define UI_GET_PARM_MSG APPCAT( VALTESTAPP, 193 ) |
| 254 | |
| 255 | |
| 256 | #define UI_TEST_MAX_FILE_NAME_LEN 256 |
| 257 | #define UI_TEST_MAX_ANIMATION_IMAGES 10 |
| 258 | |
| 259 | |
| 260 | /********************** |
| 261 | * MESSAGE STRUCTURES |
| 262 | **********************/ |
| 263 | /* UI_SET_DEEP_SLEEP_TIME_SLICE_MSG */ |
| 264 | typedef PACKED_PREFIX struct |
| 265 | { |
| 266 | kal_uint32 TimeSlice; |
| 267 | } PACKED_POSTFIX UiSetDeepSleepTimeSliceMsgT; |
| 268 | |
| 269 | typedef PACKED_PREFIX struct |
| 270 | { |
| 271 | char FileName[UI_TEST_MAX_FILE_NAME_LEN + 1]; |
| 272 | } PACKED_POSTFIX UiSetRingerFileMsgT; |
| 273 | |
| 274 | typedef PACKED_PREFIX struct |
| 275 | { |
| 276 | char FileName[UI_TEST_MAX_FILE_NAME_LEN + 1]; |
| 277 | kal_uint32 BaseOffset; |
| 278 | kal_uint32 DataOffset; |
| 279 | } PACKED_POSTFIX UiPlayRingerFileMsgT; |
| 280 | |
| 281 | typedef enum |
| 282 | { |
| 283 | UI_AUDIO_VIDEO_PLAY_CMD, |
| 284 | UI_AUDIO_VIDEO_FAST_FWD_CMD, |
| 285 | UI_AUDIO_VIDEO_REWIND_CMD, |
| 286 | UI_AUDIO_VIDEO_PAUSE_CMD, |
| 287 | UI_AUDIO_VIDEO_RESUME_CMD, |
| 288 | UI_AUDIO_VIDEO_GET_POS_CMD, |
| 289 | UI_AUDIO_VIDEO_SET_POS_CMD, |
| 290 | UI_AUDIO_VIDEO_GET_PLAYTIME_CMD, |
| 291 | UI_AUDIO_VIDEO_STOP_CMD |
| 292 | } UiAudioVideoCmdT; |
| 293 | |
| 294 | typedef PACKED_PREFIX struct |
| 295 | { |
| 296 | ExeRspMsgT RspInfo; |
| 297 | UiAudioVideoCmdT Cmd; |
| 298 | char FileName[UI_TEST_MAX_FILE_NAME_LEN + 1]; |
| 299 | kal_uint32 BaseOffset; |
| 300 | kal_uint32 PositionSet; |
| 301 | } PACKED_POSTFIX UiAudioVideoFileMsgT; |
| 302 | |
| 303 | typedef PACKED_PREFIX struct |
| 304 | { |
| 305 | UiAudioVideoCmdT Cmd; |
| 306 | kal_uint16 Mp4Result; /* Use ValMp4StatusT enum */ |
| 307 | kal_uint16 AppResult; /* Use ValAppStatusT enum */ |
| 308 | kal_uint32 ElapsedTime; |
| 309 | } PACKED_POSTFIX UiAudioVideoFileRspMsgT; |
| 310 | |
| 311 | typedef PACKED_PREFIX struct |
| 312 | { |
| 313 | ExeRspMsgT RspInfo; |
| 314 | kal_uint8 Format; |
| 315 | kal_uint8 SamplingRate; |
| 316 | kal_uint8 NumChan; |
| 317 | char FileName [UI_TEST_MAX_FILE_NAME_LEN + 1]; |
| 318 | } PACKED_POSTFIX UiMusicRecordMsgT; |
| 319 | |
| 320 | typedef PACKED_PREFIX struct |
| 321 | { |
| 322 | ValAppStatusT Result; |
| 323 | } PACKED_POSTFIX UiMusicRecordRspMsgT; |
| 324 | |
| 325 | typedef PACKED_PREFIX struct |
| 326 | { |
| 327 | ExeRspMsgT RspInfo; |
| 328 | char FileName [UI_TEST_MAX_FILE_NAME_LEN + 1]; |
| 329 | kal_uint8 *DataP; |
| 330 | kal_uint32 DataBytes; |
| 331 | kal_uint8 MusicType; |
| 332 | } PACKED_POSTFIX UiGetMusicPlayTimeMsgT; |
| 333 | |
| 334 | typedef PACKED_PREFIX struct |
| 335 | { |
| 336 | kal_uint32 TotalTimeSecs; |
| 337 | } PACKED_POSTFIX UiGetMusicPlayTimeRspMsgT; |
| 338 | |
| 339 | typedef PACKED_PREFIX struct |
| 340 | { |
| 341 | char FileName[UI_TEST_MAX_FILE_NAME_LEN + 1]; |
| 342 | kal_uint16 TextColor; |
| 343 | } PACKED_POSTFIX UiDrawBackgroundMsgT; |
| 344 | |
| 345 | typedef enum |
| 346 | { |
| 347 | UI_TEST_ANIMATION_ONE_CYCLE, |
| 348 | UI_TEST_ANIMATION_FOREVER |
| 349 | } UiAnimationCyclesT; |
| 350 | |
| 351 | typedef PACKED_PREFIX struct |
| 352 | { |
| 353 | kal_uint8 OutImageFormat; |
| 354 | UiAnimationCyclesT NumCycles; |
| 355 | kal_uint16 MSecsBetweenImages; |
| 356 | kal_uint16 MSecsAfterLastImage; |
| 357 | char ImageFileName [UI_TEST_MAX_ANIMATION_IMAGES] [UI_TEST_MAX_FILE_NAME_LEN + 1]; |
| 358 | char MusicFileName [UI_TEST_MAX_FILE_NAME_LEN + 1]; |
| 359 | } PACKED_POSTFIX UiDrawAnimationMsgT; |
| 360 | |
| 361 | typedef PACKED_PREFIX struct |
| 362 | { |
| 363 | kal_bool Enabled; |
| 364 | } PACKED_POSTFIX UiSetAutoAnswerMsgT; |
| 365 | |
| 366 | typedef PACKED_PREFIX struct |
| 367 | { |
| 368 | kal_uint16 AutoAnswerDelay; /* msec */ |
| 369 | } PACKED_POSTFIX UiSetAutoAnswerDelayMsgT; |
| 370 | |
| 371 | typedef PACKED_PREFIX struct |
| 372 | { |
| 373 | ExeRspMsgT RspInfo; |
| 374 | } PACKED_POSTFIX UiGetAutoAnswerReqMsgT; |
| 375 | |
| 376 | typedef PACKED_PREFIX struct |
| 377 | { |
| 378 | kal_bool Enabled; |
| 379 | kal_uint16 AutoAnswerDelay; /* msec */ |
| 380 | } PACKED_POSTFIX UiGetAutoAnswerRspMsgT; |
| 381 | |
| 382 | typedef enum |
| 383 | { |
| 384 | MAX_DELAY_20MSEC, |
| 385 | MAX_DELAY_40MSEC |
| 386 | } PcmProcessDelayT; |
| 387 | |
| 388 | typedef PACKED_PREFIX struct |
| 389 | { |
| 390 | kal_bool Enable; |
| 391 | PcmProcessDelayT Delay; |
| 392 | } PACKED_POSTFIX UiPcmProcessEnableMsgT; |
| 393 | |
| 394 | typedef PACKED_PREFIX struct |
| 395 | { |
| 396 | kal_bool Enable; |
| 397 | } PACKED_POSTFIX UiDisplayEnableMsgT; |
| 398 | |
| 399 | typedef PACKED_PREFIX struct |
| 400 | { |
| 401 | kal_uint8 DtmfType; /* VAL_SOUND_BURST or VAL_SOUND_CONTINUES */ |
| 402 | } PACKED_POSTFIX UiSetDtmfTypeMsgT; |
| 403 | |
| 404 | typedef PACKED_PREFIX struct |
| 405 | { |
| 406 | kal_bool Mode; |
| 407 | } PACKED_POSTFIX UiSetPrivacyModeMsgT; |
| 408 | |
| 409 | /* UI_VAL_FIRMWARE_VER_RSP_MSG */ |
| 410 | typedef PACKED_PREFIX struct |
| 411 | { |
| 412 | kal_uint8 VerInfo[3]; |
| 413 | kal_uint8 TimeInfo[5]; |
| 414 | } PACKED_POSTFIX VersionT; |
| 415 | |
| 416 | typedef PACKED_PREFIX struct |
| 417 | { |
| 418 | VersionT CpVersion; |
| 419 | VersionT DspmVersion; |
| 420 | VersionT DspvVersion; |
| 421 | } PACKED_POSTFIX FirmwareVersionT; |
| 422 | |
| 423 | typedef PACKED_PREFIX struct |
| 424 | { |
| 425 | kal_uint8 Band; |
| 426 | kal_uint16 Channel; |
| 427 | } PACKED_POSTFIX UiRefurbishAgingTestT; |
| 428 | |
| 429 | typedef enum |
| 430 | { |
| 431 | DTMF_MODE_BURST_MASK =0x0001, /*Bit0 represents DTMF_MODE, 1 = BURST, 0 = CONTINUOUS*/ |
| 432 | VOICE_PRIVACY_ENABLED_MASK =0x0002, |
| 433 | AUTO_ANSWER_ENABLED_MASK =0x0004, |
| 434 | AUTO_REDIAL_ENABLED_MASK =0x0008, |
| 435 | VOICE_PRIVACY_ALERT_MASK =0x0010, |
| 436 | AUTO_POWER_ENABLE_MASK =0x0020 |
| 437 | |
| 438 | } UiParameterMaskT; |
| 439 | |
| 440 | |
| 441 | typedef enum |
| 442 | { |
| 443 | UI_PARM_SET_DTMF_MODE, |
| 444 | UI_PARM_GET_DTMF_MODE, |
| 445 | UI_PARM_SET_VOICE_PRIVACY, |
| 446 | UI_PARM_GET_VOICE_PRIVACY, |
| 447 | UI_PARM_SET_LOCK_CODE, |
| 448 | UI_PARM_GET_LOCK_CODE, |
| 449 | UI_PARM_SET_AUTO_ANSWER_MODE, |
| 450 | UI_PARM_GET_AUTO_ANSWER_MODE, |
| 451 | UI_PARM_INIT_MISC_DATABASE, |
| 452 | UI_PARM_SET_AUTO_REDIAL_MODE, |
| 453 | UI_PARM_GET_AUTO_REDIAL_MODE, |
| 454 | UI_PARM_SET_VOICE_PRIVACY_ALERT_MODE, |
| 455 | UI_PARM_GET_VOICE_PRIVACY_ALERT_MODE, |
| 456 | UI_PARM_SET_SMS_CHANNEL, |
| 457 | UI_PARM_GET_SMS_CHANNEL, |
| 458 | UI_PARM_SET_SMS_PREF_SO, |
| 459 | UI_PARM_GET_SMS_PREF_SO, |
| 460 | UI_PARM_SET_AUTO_POWER_UP, |
| 461 | UI_PARM_GET_AUTO_POWER_UP |
| 462 | |
| 463 | } UiParmOperationId; |
| 464 | |
| 465 | typedef enum |
| 466 | { |
| 467 | UI_PARM_MIN_VALUE, |
| 468 | UI_PARM_MAX_VALUE, |
| 469 | UI_PARM_DEFAULT_VALUE, |
| 470 | UI_PARM_CUSTOM_VALUE, |
| 471 | UI_PARM_OP_TYPE_LIST_END |
| 472 | } UiParmOperationType; |
| 473 | |
| 474 | typedef enum |
| 475 | { |
| 476 | UI_PARM_OPERATION_SUCCESS, |
| 477 | UI_PARM_OPERATION_FAIL_READ_NOT_ALLOWED, |
| 478 | UI_PARM_OPERATION_FAIL_WRITE_NOT_ALLOWED, |
| 479 | UI_PARM_OPERATION_PARAMETER_NOT_SUPPORTED, |
| 480 | UI_PARM_OPERATION_INTERFACE_NOT_SUPPORTED, |
| 481 | UI_PARM_OPERATION_FAIL_VALUE_OUT_OF_RANGE |
| 482 | |
| 483 | } UiParmAccessResultCode; |
| 484 | |
| 485 | typedef PACKED_PREFIX struct |
| 486 | { |
| 487 | ExeRspMsgT RspInfo; /*Response routing information */ |
| 488 | UiParmOperationId ParmId; |
| 489 | UiParmOperationType opType; |
| 490 | } PACKED_POSTFIX UiGetParmMsgT; |
| 491 | |
| 492 | typedef PACKED_PREFIX struct |
| 493 | { |
| 494 | UiParmOperationId ParmId; |
| 495 | UiParmAccessResultCode result; |
| 496 | kal_uint8 data; |
| 497 | } PACKED_POSTFIX UiGetParmRspMsgT; |
| 498 | |
| 499 | typedef PACKED_PREFIX struct |
| 500 | { |
| 501 | ExeRspMsgT RspInfo; /* Response routing information */ |
| 502 | UiParmOperationId ParmId; |
| 503 | UiParmOperationType opType; |
| 504 | kal_uint8 data; |
| 505 | } PACKED_POSTFIX UiSetParmMsgT; |
| 506 | |
| 507 | typedef PACKED_PREFIX struct |
| 508 | { |
| 509 | UiParmOperationId ParmId; |
| 510 | UiParmAccessResultCode result; |
| 511 | } PACKED_POSTFIX UiSetParmRspMsgT; |
| 512 | |
| 513 | typedef enum |
| 514 | { |
| 515 | UI_DTMF_CONTINUOUS=0, |
| 516 | UI_DTMF_BURST |
| 517 | } UiDTMFMode; |
| 518 | typedef PACKED_PREFIX struct |
| 519 | { |
| 520 | UiDTMFMode DTMFType; |
| 521 | } PACKED_POSTFIX UiDTMFMode_APIStruct; |
| 522 | |
| 523 | typedef enum |
| 524 | { |
| 525 | UI_VOICE_PRIVACY_DISABLED=0, |
| 526 | UI_VOICE_PRIVACY_ENABLED |
| 527 | } UiVoicePrivacyMode; |
| 528 | |
| 529 | typedef PACKED_PREFIX struct |
| 530 | { |
| 531 | UiVoicePrivacyMode PrivacyMode; |
| 532 | } PACKED_POSTFIX UiVoicePrivacyMode_APIStruct; |
| 533 | |
| 534 | typedef PACKED_PREFIX struct |
| 535 | { |
| 536 | char LockCode[NUM_UI_LOCK_CODE_DIGITS]; |
| 537 | } PACKED_POSTFIX UiLockCode_APIStruct; |
| 538 | |
| 539 | |
| 540 | |
| 541 | typedef PACKED_PREFIX struct |
| 542 | { |
| 543 | kal_bool AutoAnswerMode; |
| 544 | kal_uint8 Rings; |
| 545 | } PACKED_POSTFIX UiAutoAnswerMode_APIStruct; |
| 546 | |
| 547 | typedef enum |
| 548 | { |
| 549 | SECONDS_10, |
| 550 | SECONDS_30, |
| 551 | SECONDS_60 |
| 552 | } AutoRedialIntervalType; |
| 553 | |
| 554 | typedef PACKED_PREFIX struct |
| 555 | { |
| 556 | kal_bool AutoRedialMode; |
| 557 | AutoRedialIntervalType Interval; |
| 558 | } PACKED_POSTFIX UiAutoRedialMode_APIStruct; |
| 559 | |
| 560 | typedef PACKED_PREFIX struct |
| 561 | { |
| 562 | kal_bool VoicePrivacyAlertMode; |
| 563 | } PACKED_POSTFIX UiVoicePrivacyAlertMode_APIStruct; |
| 564 | |
| 565 | typedef PACKED_PREFIX struct |
| 566 | { |
| 567 | /* |
| 568 | ValSmsChannelT Channel; |
| 569 | */ |
| 570 | /* obsolete api*/ |
| 571 | kal_uint8 Channel; |
| 572 | } PACKED_POSTFIX UiSmsChannel_APIStruct; |
| 573 | |
| 574 | typedef PACKED_PREFIX struct |
| 575 | { |
| 576 | kal_uint16 SO; |
| 577 | } PACKED_POSTFIX UiSmsPrefSO_APIStruct; |
| 578 | |
| 579 | |
| 580 | typedef PACKED_PREFIX struct |
| 581 | { |
| 582 | kal_bool AutoPowerEnabled; |
| 583 | } PACKED_POSTFIX UiAutoPower_APIStruct; |
| 584 | |
| 585 | |
| 586 | #endif |
| 587 | |
| 588 | |
| 589 | |