FreeCalypso > hg > tcs211-l1-reconst
comparison g23m/condat/ms/src/aci/psa_mmif.c @ 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 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : GSM-PS (6147) | |
4 | Modul : PSA_MMIF | |
5 +----------------------------------------------------------------------------- | |
6 | Copyright 2002 Texas Instruments Berlin, AG | |
7 | All rights reserved. | |
8 | | |
9 | This file is confidential and a trade secret of Texas | |
10 | Instruments Berlin, AG | |
11 | The receipt of or possession of this file does not convey | |
12 | any rights to reproduce or disclose its contents or to | |
13 | manufacture, use, or sell anything it may describe, in | |
14 | whole, or in part, without the specific written consent of | |
15 | Texas Instruments Berlin, AG. | |
16 +----------------------------------------------------------------------------- | |
17 | Purpose : This module defines the functions for the protocol | |
18 | stack adapter for man machine interface. | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 #ifndef PSA_MMIF_C | |
23 #define PSA_MMIF_C | |
24 #endif | |
25 | |
26 #include "aci_all.h" | |
27 | |
28 /*==== INCLUDES ===================================================*/ | |
29 #include "aci_cmh.h" | |
30 #include "ati_cmd.h" | |
31 #include "aci_cmd.h" | |
32 #include "aci.h" | |
33 #include "psa_mmi.h" | |
34 #ifdef ACI | |
35 #include "cmh_mmi.h" | |
36 #endif /* ACI */ | |
37 /*==== CONSTANTS ==================================================*/ | |
38 | |
39 #define ITM_WDT (14) /* item width in chars */ | |
40 #define HDR_WDT (10) /* header width in chars */ | |
41 | |
42 /*==== TYPES ======================================================*/ | |
43 | |
44 | |
45 /*==== EXPORT =====================================================*/ | |
46 | |
47 | |
48 /*==== VARIABLES ==================================================*/ | |
49 | |
50 /*==== FUNCTIONS ==================================================*/ | |
51 | |
52 | |
53 /* | |
54 +-------------------------------------------------------------------+ | |
55 | PROJECT : GSM-PS (6147) MODULE : PSA_MMIF | | |
56 | ROUTINE : psaMMI_Init | | |
57 +-------------------------------------------------------------------+ | |
58 | |
59 PURPOSE : initialize the protocol stack adapter for MMI. | |
60 | |
61 */ | |
62 | |
63 GLOBAL void psaMMI_Init ( void ) | |
64 { | |
65 | |
66 /* | |
67 *------------------------------------------------------------------- | |
68 * set default parms | |
69 *------------------------------------------------------------------- | |
70 */ | |
71 #ifdef ACI | |
72 ibt_params.ati_currIbt = CPI_IBT_NotPresent; | |
73 ibt_params.ati_currTch = CPI_TCH_NotPresent; | |
74 ibt_params.last_action = SWITCH_AUDIO_OFF; | |
75 cmhMMI_setAudioVolume (AUDIO_IN, AUDIO_OUT); | |
76 #endif | |
77 } | |
78 | |
79 /* | |
80 +-------------------------------------------------------------------+ | |
81 | PROJECT : GSM-PS (6147) MODULE : PSA_MMIF | | |
82 | ROUTINE : psaMM_shrPrmDump | | |
83 +-------------------------------------------------------------------+ | |
84 | |
85 PURPOSE : this function dumps the shared parameter to the debug | |
86 output. | |
87 */ | |
88 | |
89 GLOBAL void psaMMI_shrPrmDump ( void ) | |
90 { | |
91 #if 0 /* mmiShrdPrm.spchStat needed not to be global variable, disappeared */ | |
92 char lnBuf [80]; /* holds buffer for output line */ | |
93 SHORT chrNr; /* holds number of processed chars */ | |
94 | |
95 /* --- speech status --------------------------------------------*/ | |
96 chrNr = sprintf( lnBuf, "%*.*s", HDR_WDT, HDR_WDT, " spch stat" ); | |
97 chrNr += sprintf( lnBuf+chrNr, "%*.*hd", ITM_WDT, ITM_WDT, | |
98 mmiShrdPrm.spchStat ); | |
99 TRACE_EVENT_P1("%s", lnBuf ); | |
100 #endif | |
101 } | |
102 | |
103 /*==== EOF ========================================================*/ | |
104 |