FreeCalypso > hg > leo2moko-debug
comparison chipsetsw/layer1/audio_include/l1audio_msgty.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
| author | Space Falcon <falcon@ivan.Harhan.ORG> |
|---|---|
| date | Mon, 01 Jun 2015 03:24:05 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:509db1a7b7b8 |
|---|---|
| 1 /************* Revision Controle System Header ************* | |
| 2 * GSM Layer 1 software | |
| 3 * L1AUDIO_MSGTY.H | |
| 4 * | |
| 5 * Filename l1audio_msgty.h | |
| 6 * Copyright 2003 (C) Texas Instruments | |
| 7 * | |
| 8 ************* Revision Controle System Header *************/ | |
| 9 | |
| 10 #if (AUDIO_TASK == 1) | |
| 11 | |
| 12 #if (OP_RIV_AUDIO == 1) | |
| 13 #include "rv_general.h" | |
| 14 #endif | |
| 15 | |
| 16 #if (KEYBEEP) | |
| 17 typedef struct | |
| 18 { | |
| 19 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 20 T_RV_HDR header; | |
| 21 #endif | |
| 22 UWORD16 d_k_x1_kt0; | |
| 23 UWORD16 d_k_x1_kt1; | |
| 24 UWORD16 d_dur_kb; | |
| 25 } | |
| 26 T_MMI_KEYBEEP_REQ; | |
| 27 #endif | |
| 28 | |
| 29 #if (TONE) | |
| 30 typedef struct | |
| 31 { | |
| 32 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 33 T_RV_HDR header; | |
| 34 #endif | |
| 35 UWORD16 d_k_x1_t0; | |
| 36 UWORD16 d_k_x1_t1; | |
| 37 UWORD16 d_k_x1_t2; | |
| 38 UWORD16 d_pe_rep; | |
| 39 UWORD16 d_pe_off; | |
| 40 UWORD16 d_se_off; | |
| 41 UWORD16 d_bu_off; | |
| 42 UWORD16 d_t0_on; | |
| 43 UWORD16 d_t0_off; | |
| 44 UWORD16 d_t1_on; | |
| 45 UWORD16 d_t1_off; | |
| 46 UWORD16 d_t2_on; | |
| 47 UWORD16 d_t2_off; | |
| 48 } | |
| 49 T_MMI_TONE_REQ; | |
| 50 #endif | |
| 51 | |
| 52 #if (MELODY_E1) | |
| 53 typedef struct | |
| 54 { | |
| 55 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 56 T_RV_HDR header; | |
| 57 #endif | |
| 58 UWORD8 session_id; | |
| 59 BOOL loopback; | |
| 60 UWORD16 oscillator_used_bitmap; | |
| 61 } | |
| 62 T_MMI_MELODY_REQ; | |
| 63 #endif | |
| 64 #if (VOICE_MEMO) | |
| 65 typedef struct | |
| 66 { | |
| 67 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 68 T_RV_HDR header; | |
| 69 #endif | |
| 70 UWORD8 session_id; | |
| 71 } | |
| 72 T_MMI_VM_PLAY_REQ; | |
| 73 | |
| 74 typedef struct | |
| 75 { | |
| 76 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 77 T_RV_HDR header; | |
| 78 #endif | |
| 79 UWORD8 session_id; | |
| 80 UWORD32 maximum_size; | |
| 81 BOOL dtx_used; | |
| 82 UWORD16 record_coeff_dl; | |
| 83 UWORD16 record_coeff_ul; | |
| 84 UWORD16 d_k_x1_t0; | |
| 85 UWORD16 d_k_x1_t1; | |
| 86 UWORD16 d_k_x1_t2; | |
| 87 UWORD16 d_pe_rep; | |
| 88 UWORD16 d_pe_off; | |
| 89 UWORD16 d_se_off; | |
| 90 UWORD16 d_bu_off; | |
| 91 UWORD16 d_t0_on; | |
| 92 UWORD16 d_t0_off; | |
| 93 UWORD16 d_t1_on; | |
| 94 UWORD16 d_t1_off; | |
| 95 UWORD16 d_t2_on; | |
| 96 UWORD16 d_t2_off; | |
| 97 } | |
| 98 T_MMI_VM_RECORD_REQ; | |
| 99 | |
| 100 typedef struct | |
| 101 { | |
| 102 UWORD32 recorded_size; | |
| 103 } | |
| 104 T_L1_VM_RECORD_CON; | |
| 105 | |
| 106 #if (OP_RIV_AUDIO == 1) | |
| 107 typedef struct | |
| 108 { | |
| 109 T_RV_HDR header; | |
| 110 UWORD32 recorded_size; | |
| 111 } | |
| 112 T_MMI_VM_RECORD_CON; | |
| 113 #else | |
| 114 typedef T_L1_VM_RECORD_CON T_MMI_VM_RECORD_CON; | |
| 115 #endif | |
| 116 #endif | |
| 117 | |
| 118 #if (L1_VOICE_MEMO_AMR) | |
| 119 typedef struct | |
| 120 { | |
| 121 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 122 T_RV_HDR header; | |
| 123 #endif | |
| 124 UWORD8 session_id; | |
| 125 } | |
| 126 T_MMI_VM_AMR_PLAY_REQ; | |
| 127 | |
| 128 typedef struct | |
| 129 { | |
| 130 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 131 T_RV_HDR header; | |
| 132 #endif | |
| 133 UWORD8 session_id; | |
| 134 UWORD32 maximum_size; | |
| 135 BOOL dtx_used; | |
| 136 UWORD16 record_coeff_ul; | |
| 137 UWORD8 amr_vocoder; | |
| 138 } | |
| 139 T_MMI_VM_AMR_RECORD_REQ; | |
| 140 | |
| 141 typedef struct | |
| 142 { | |
| 143 UWORD32 recorded_size; | |
| 144 } | |
| 145 T_L1_VM_AMR_RECORD_CON; | |
| 146 | |
| 147 #if (OP_RIV_AUDIO == 1) | |
| 148 typedef struct | |
| 149 { | |
| 150 T_RV_HDR header; | |
| 151 UWORD32 recorded_size; | |
| 152 } | |
| 153 T_MMI_VM_AMR_RECORD_CON; | |
| 154 #else | |
| 155 typedef T_L1_VM_AMR_RECORD_CON T_MMI_VM_AMR_RECORD_CON; | |
| 156 #endif | |
| 157 #endif | |
| 158 | |
| 159 #if (OP_RIV_AUDIO == 1) | |
| 160 #if (L1_AUDIO_DRIVER == 1) | |
| 161 typedef struct | |
| 162 { | |
| 163 UWORD8 channel_id; | |
| 164 UWORD16 *p_buffer; | |
| 165 } | |
| 166 T_L1_AUDIO_DRIVER_IND; | |
| 167 #endif | |
| 168 #endif | |
| 169 | |
| 170 #if (SPEECH_RECO) | |
| 171 typedef struct | |
| 172 { | |
| 173 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 174 T_RV_HDR header; | |
| 175 #endif | |
| 176 UWORD8 database_id; | |
| 177 UWORD8 word_index; | |
| 178 BOOL speech; | |
| 179 UWORD16 *speech_address; | |
| 180 } | |
| 181 T_MMI_SR_ENROLL_REQ; | |
| 182 | |
| 183 typedef struct | |
| 184 { | |
| 185 #if (OP_RIV_AUDIO == 1) | |
| 186 T_RV_HDR header; | |
| 187 #endif | |
| 188 UWORD8 error_id; | |
| 189 } | |
| 190 T_MMI_SR_ENROLL_STOP_CON; | |
| 191 | |
| 192 #if (OP_RIV_AUDIO == 1) | |
| 193 typedef struct | |
| 194 { | |
| 195 UWORD8 error_id; | |
| 196 } | |
| 197 T_L1_SR_ENROLL_STOP_CON; | |
| 198 #else | |
| 199 typedef T_MMI_SR_ENROLL_STOP_CON T_L1_SR_ENROLL_STOP_CON; | |
| 200 #endif | |
| 201 | |
| 202 typedef struct | |
| 203 { | |
| 204 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 205 T_RV_HDR header; | |
| 206 #endif | |
| 207 UWORD8 database_id; | |
| 208 UWORD8 word_index; | |
| 209 BOOL speech; | |
| 210 UWORD16 *speech_address; | |
| 211 } | |
| 212 T_MMI_SR_UPDATE_REQ; | |
| 213 | |
| 214 typedef struct | |
| 215 { | |
| 216 #if (OP_RIV_AUDIO == 1) | |
| 217 T_RV_HDR header; | |
| 218 #endif | |
| 219 UWORD8 error_id; | |
| 220 } | |
| 221 T_MMI_SR_UPDATE_STOP_CON; | |
| 222 | |
| 223 #if (OP_RIV_AUDIO == 1) | |
| 224 typedef struct | |
| 225 { | |
| 226 UWORD8 error_id; | |
| 227 } | |
| 228 T_L1_SR_UPDATE_STOP_CON; | |
| 229 #else | |
| 230 typedef T_MMI_SR_UPDATE_STOP_CON T_L1_SR_UPDATE_STOP_CON; | |
| 231 #endif | |
| 232 | |
| 233 typedef struct | |
| 234 { | |
| 235 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 236 T_RV_HDR header; | |
| 237 #endif | |
| 238 UWORD8 database_id; | |
| 239 UWORD8 vocabulary_size; | |
| 240 } | |
| 241 T_MMI_SR_RECO_REQ; | |
| 242 | |
| 243 typedef struct | |
| 244 { | |
| 245 #if (OP_RIV_AUDIO == 1) | |
| 246 T_RV_HDR header; | |
| 247 #endif | |
| 248 UWORD8 error_id; | |
| 249 UWORD16 best_word_index; | |
| 250 UWORD32 best_word_score; | |
| 251 UWORD16 second_best_word_index; | |
| 252 UWORD32 second_best_word_score; | |
| 253 UWORD16 third_best_word_index; | |
| 254 UWORD32 third_best_word_score; | |
| 255 UWORD16 fourth_best_word_index; | |
| 256 UWORD32 fourth_best_word_score; | |
| 257 UWORD16 d_sr_db_level; | |
| 258 UWORD16 d_sr_db_noise; | |
| 259 UWORD16 d_sr_model_size; | |
| 260 } | |
| 261 T_MMI_SR_RECO_STOP_CON; | |
| 262 | |
| 263 typedef struct | |
| 264 { | |
| 265 UWORD8 error_id; | |
| 266 } | |
| 267 T_L1_SR_RECO_STOP_CON; | |
| 268 | |
| 269 #if (OP_RIV_AUDIO == 1) | |
| 270 typedef struct | |
| 271 { | |
| 272 UWORD8 error_id; | |
| 273 UWORD16 best_word_index; | |
| 274 UWORD32 best_word_score; | |
| 275 UWORD16 second_best_word_index; | |
| 276 UWORD32 second_best_word_score; | |
| 277 UWORD16 third_best_word_index; | |
| 278 UWORD32 third_best_word_score; | |
| 279 UWORD16 fourth_best_word_index; | |
| 280 UWORD32 fourth_best_word_score; | |
| 281 UWORD16 d_sr_db_level; | |
| 282 UWORD16 d_sr_db_noise; | |
| 283 UWORD16 d_sr_model_size; | |
| 284 } | |
| 285 T_L1_SR_RECO_STOP_IND; | |
| 286 #else | |
| 287 typedef T_MMI_SR_RECO_STOP_CON T_L1_SR_RECO_STOP_IND; | |
| 288 #endif | |
| 289 | |
| 290 typedef T_L1_SR_RECO_STOP_CON T_L1_SR_PROCESSING_STOP_CON; | |
| 291 | |
| 292 typedef struct | |
| 293 { | |
| 294 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 295 T_RV_HDR header; | |
| 296 #endif | |
| 297 UWORD8 database_id; | |
| 298 UWORD8 word_index; | |
| 299 UWORD16 *model_address; | |
| 300 BOOL speech; | |
| 301 UWORD16 *speech_address; | |
| 302 UWORD8 vocabulary_size; | |
| 303 } | |
| 304 T_MMI_SR_UPDATE_CHECK_REQ; | |
| 305 | |
| 306 typedef T_MMI_SR_RECO_STOP_CON T_MMI_SR_UPDATE_CHECK_STOP_CON; | |
| 307 | |
| 308 // Background message type | |
| 309 typedef struct | |
| 310 { | |
| 311 #if (OP_RIV_AUDIO == 1) | |
| 312 T_RV_HDR header; | |
| 313 #endif | |
| 314 UWORD8 database_id; | |
| 315 UWORD8 model_index; | |
| 316 API *model_RAM_address; | |
| 317 BOOL speech; | |
| 318 UWORD16 *start_buffer; | |
| 319 UWORD16 *stop_buffer; | |
| 320 UWORD16 *start_address; | |
| 321 UWORD16 *stop_address; | |
| 322 } | |
| 323 T_L1_SRBACK_SAVE_DATA_REQ; | |
| 324 | |
| 325 typedef struct | |
| 326 { | |
| 327 #if (OP_RIV_AUDIO == 1) | |
| 328 T_RV_HDR header; | |
| 329 #endif | |
| 330 UWORD8 database_id; | |
| 331 UWORD8 model_index; | |
| 332 API *model_RAM_address; | |
| 333 BOOL CTO_enable; | |
| 334 } | |
| 335 T_L1_SRBACK_LOAD_MODEL_REQ; | |
| 336 | |
| 337 typedef struct | |
| 338 { | |
| 339 #if (OP_RIV_AUDIO == 1) | |
| 340 T_RV_HDR header; | |
| 341 #endif | |
| 342 API *model_RAM_address_input; | |
| 343 UWORD16 *model_RAM_address_output; | |
| 344 } | |
| 345 T_L1_SRBACK_TEMP_SAVE_DATA_REQ; | |
| 346 #endif | |
| 347 | |
| 348 #if (AEC) | |
| 349 typedef struct | |
| 350 { | |
| 351 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 352 T_RV_HDR header; | |
| 353 #endif | |
| 354 UWORD16 aec_control; | |
| 355 #if (L1_NEW_AEC) | |
| 356 UWORD16 cont_filter; | |
| 357 UWORD16 granularity_att; | |
| 358 UWORD16 coef_smooth; | |
| 359 UWORD16 es_level_max; | |
| 360 UWORD16 fact_vad; | |
| 361 UWORD16 thrs_abs; | |
| 362 UWORD16 fact_asd_fil; | |
| 363 UWORD16 fact_asd_mut; | |
| 364 #endif | |
| 365 } | |
| 366 T_MMI_AEC_REQ; | |
| 367 | |
| 368 #if (L1_NEW_AEC) | |
| 369 typedef struct | |
| 370 { | |
| 371 UWORD16 es_level; | |
| 372 UWORD32 far_end_pow; | |
| 373 UWORD32 far_end_noise; | |
| 374 } | |
| 375 T_L1_AEC_IND; | |
| 376 #endif | |
| 377 #endif | |
| 378 | |
| 379 #if (FIR) | |
| 380 typedef struct | |
| 381 { | |
| 382 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 383 T_RV_HDR header; | |
| 384 #endif | |
| 385 BOOL fir_loop; | |
| 386 UWORD8 update_fir; | |
| 387 UWORD16 *fir_ul_coefficient; | |
| 388 UWORD16 *fir_dl_coefficient; | |
| 389 } | |
| 390 T_MMI_AUDIO_FIR_REQ; | |
| 391 #endif | |
| 392 #if (AUDIO_MODE) | |
| 393 typedef struct | |
| 394 { | |
| 395 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 396 T_RV_HDR header; | |
| 397 #endif | |
| 398 #if (OP_RIV_AUDIO == 1) | |
| 399 UWORD8 audio_mode; | |
| 400 #else | |
| 401 UWORD16 audio_mode; | |
| 402 #endif | |
| 403 } | |
| 404 T_MMI_AUDIO_MODE; | |
| 405 #endif | |
| 406 #if (MELODY_E2) | |
| 407 typedef struct | |
| 408 { | |
| 409 #if (OP_RIV_AUDIO == 1) | |
| 410 T_RV_HDR header; | |
| 411 #endif | |
| 412 UWORD8 melody_id; | |
| 413 UWORD8 number_of_instrument; | |
| 414 UWORD8 waves_table_id[SC_AUDIO_MELODY_E2_MAX_NUMBER_OF_INSTRUMENT]; | |
| 415 } | |
| 416 T_L1_BACK_MELODY_E2_LOAD_INSTRUMENT_REQ; | |
| 417 | |
| 418 typedef struct | |
| 419 { | |
| 420 #if (OP_RIV_AUDIO == 1) | |
| 421 T_RV_HDR header; | |
| 422 #endif | |
| 423 UWORD8 melody_id; | |
| 424 } | |
| 425 T_L1_BACK_MELODY_E2_LOAD_INSTRUMENT_CON; | |
| 426 | |
| 427 typedef struct | |
| 428 { | |
| 429 #if (OP_RIV_AUDIO == 1) | |
| 430 T_RV_HDR header; | |
| 431 #endif | |
| 432 UWORD8 melody_id; | |
| 433 UWORD8 number_of_instrument; | |
| 434 } | |
| 435 T_L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_REQ; | |
| 436 | |
| 437 typedef struct | |
| 438 { | |
| 439 #if (OP_RIV_AUDIO == 1) | |
| 440 T_RV_HDR header; | |
| 441 #endif | |
| 442 UWORD8 melody_id; | |
| 443 } | |
| 444 T_L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_CON; | |
| 445 | |
| 446 typedef struct | |
| 447 { | |
| 448 #if (defined _WINDOWS && (OP_RIV_AUDIO == 1)) | |
| 449 T_RV_HDR header; | |
| 450 #endif | |
| 451 UWORD8 session_id; | |
| 452 BOOL loopback; | |
| 453 } | |
| 454 T_MMI_MELODY_E2_REQ; | |
| 455 #endif | |
| 456 | |
| 457 #if (L1_CPORT == 1) | |
| 458 typedef struct | |
| 459 { | |
| 460 UWORD16 configuration; | |
| 461 UWORD16 ctrl; | |
| 462 UWORD8 cpcfr1; | |
| 463 UWORD8 cpcfr2; | |
| 464 UWORD8 cpcfr3; | |
| 465 UWORD8 cpcfr4; | |
| 466 UWORD8 cptctl; | |
| 467 UWORD8 cpttaddr; | |
| 468 UWORD16 cptdat; | |
| 469 UWORD16 cptvs; | |
| 470 } | |
| 471 T_MMI_CPORT_CONFIGURE_REQ; | |
| 472 | |
| 473 typedef struct | |
| 474 { | |
| 475 UWORD16 register_id; | |
| 476 UWORD16 register_value; | |
| 477 } | |
| 478 T_L1_CPORT_CONFIGURE_CON; | |
| 479 | |
| 480 #if (OP_RIV_AUDIO == 1) | |
| 481 typedef struct | |
| 482 { | |
| 483 T_RV_HDR header; | |
| 484 UWORD8 register_id; | |
| 485 UWORD16 register_value; | |
| 486 } | |
| 487 T_MMI_CPORT_CONFIGURE_CON; | |
| 488 #else | |
| 489 typedef T_L1_CPORT_CONFIGURE_CON T_MMI_CPORT_CONFIGURE_CON; | |
| 490 #endif | |
| 491 #endif | |
| 492 #endif // AUDIO_TASK |
