comparison src/cs/layer1/audio_include/l1audio_signa.h @ 0:92470e5d0b9e

src: partial import from FC Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 15 May 2020 01:28:16 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:92470e5d0b9e
1 /************* Revision Controle System Header *************
2 * GSM Layer 1 software
3 * L1AUDIO_SIGNA.H
4 *
5 * Filename l1audio_signa.h
6 * Copyright 2003 (C) Texas Instruments
7 *
8 ************* Revision Controle System Header *************/
9
10 #if (AUDIO_TASK == 1)
11 #define P_AUDIO ( 0x18 )
12
13 // Messages MMI <-> L1A
14 #if (KEYBEEP)
15 #define MMI_KEYBEEP_START_REQ ( ( P_AUDIO << 8 ) | 0 )
16 #define MMI_KEYBEEP_STOP_REQ ( ( P_AUDIO << 8 ) | 1 )
17 #define MMI_KEYBEEP_START_CON ( ( P_AUDIO << 8 ) | 2 )
18 #define MMI_KEYBEEP_STOP_CON ( ( P_AUDIO << 8 ) | 3 )
19 #endif
20 #if (TONE)
21 #define MMI_TONE_START_REQ ( ( P_AUDIO << 8 ) | 4 )
22 #define MMI_TONE_STOP_REQ ( ( P_AUDIO << 8 ) | 5 )
23 #define MMI_TONE_START_CON ( ( P_AUDIO << 8 ) | 6 )
24 #define MMI_TONE_STOP_CON ( ( P_AUDIO << 8 ) | 7 )
25 #endif
26 #if (MELODY_E1)
27 #define MMI_MELODY0_START_REQ ( ( P_AUDIO << 8 ) | 8 )
28 #define MMI_MELODY0_STOP_REQ ( ( P_AUDIO << 8 ) | 9 )
29 #define MMI_MELODY0_START_CON ( ( P_AUDIO << 8 ) | 10 )
30 #define MMI_MELODY0_STOP_CON ( ( P_AUDIO << 8 ) | 11 )
31
32 #define MMI_MELODY1_START_REQ ( ( P_AUDIO << 8 ) | 12 )
33 #define MMI_MELODY1_STOP_REQ ( ( P_AUDIO << 8 ) | 13 )
34 #define MMI_MELODY1_START_CON ( ( P_AUDIO << 8 ) | 14 )
35 #define MMI_MELODY1_STOP_CON ( ( P_AUDIO << 8 ) | 15 )
36 #endif
37 #if (VOICE_MEMO)
38 #define MMI_VM_PLAY_START_REQ ( ( P_AUDIO << 8 ) | 16 )
39 #define MMI_VM_PLAY_STOP_REQ ( ( P_AUDIO << 8 ) | 17 )
40 #define MMI_VM_PLAY_START_CON ( ( P_AUDIO << 8 ) | 18 )
41 #define MMI_VM_PLAY_STOP_CON ( ( P_AUDIO << 8 ) | 19 )
42
43 #define MMI_VM_RECORD_START_REQ ( ( P_AUDIO << 8 ) | 20 )
44 #define MMI_VM_RECORD_STOP_REQ ( ( P_AUDIO << 8 ) | 21 )
45 #define MMI_VM_RECORD_START_CON ( ( P_AUDIO << 8 ) | 22 )
46 #define MMI_VM_RECORD_STOP_CON ( ( P_AUDIO << 8 ) | 23 )
47 #endif
48 #if (SPEECH_RECO)
49 #define MMI_SR_ENROLL_START_REQ ( ( P_AUDIO << 8 ) | 24 )
50 #define MMI_SR_ENROLL_STOP_REQ ( ( P_AUDIO << 8 ) | 25 )
51 #define MMI_SR_ENROLL_START_CON ( ( P_AUDIO << 8 ) | 26 )
52 #define MMI_SR_ENROLL_STOP_CON ( ( P_AUDIO << 8 ) | 27 )
53
54 #define MMI_SR_UPDATE_START_REQ ( ( P_AUDIO << 8 ) | 28 )
55 #define MMI_SR_UPDATE_STOP_REQ ( ( P_AUDIO << 8 ) | 29 )
56 #define MMI_SR_UPDATE_START_CON ( ( P_AUDIO << 8 ) | 30 )
57 #define MMI_SR_UPDATE_STOP_CON ( ( P_AUDIO << 8 ) | 31 )
58
59 #define MMI_SR_RECO_START_REQ ( ( P_AUDIO << 8 ) | 32 )
60 #define MMI_SR_RECO_STOP_REQ ( ( P_AUDIO << 8 ) | 33 )
61 #define MMI_SR_RECO_START_CON ( ( P_AUDIO << 8 ) | 34 )
62 #define MMI_SR_RECO_STOP_CON ( ( P_AUDIO << 8 ) | 35 )
63
64 #define MMI_SR_UPDATE_CHECK_START_REQ ( ( P_AUDIO << 8 ) | 36 )
65 #define MMI_SR_UPDATE_CHECK_STOP_REQ ( ( P_AUDIO << 8 ) | 37 )
66 #define MMI_SR_UPDATE_CHECK_START_CON ( ( P_AUDIO << 8 ) | 38 )
67 #define MMI_SR_UPDATE_CHECK_STOP_CON ( ( P_AUDIO << 8 ) | 39 )
68 #endif
69 #if (AEC)
70 #define MMI_AEC_REQ ( ( P_AUDIO << 8 ) | 40 )
71 #define MMI_AEC_CON ( ( P_AUDIO << 8 ) | 41 )
72 #endif
73 #if (FIR)
74 #define MMI_AUDIO_FIR_REQ ( ( P_AUDIO << 8 ) | 42 )
75 #define MMI_AUDIO_FIR_CON ( ( P_AUDIO << 8 ) | 43 )
76 #endif
77 #if (AUDIO_MODE)
78 #define MMI_AUDIO_MODE_REQ ( ( P_AUDIO << 8 ) | 44 )
79 #define MMI_AUDIO_MODE_CON ( ( P_AUDIO << 8 ) | 45 )
80 #endif
81 #if (MELODY_E2)
82 #define MMI_MELODY0_E2_START_REQ ( ( P_AUDIO << 8 ) | 46 )
83 #define MMI_MELODY0_E2_STOP_REQ ( ( P_AUDIO << 8 ) | 47 )
84 #define MMI_MELODY0_E2_START_CON ( ( P_AUDIO << 8 ) | 48 )
85 #define MMI_MELODY0_E2_STOP_CON ( ( P_AUDIO << 8 ) | 49 )
86
87 #define MMI_MELODY1_E2_START_REQ ( ( P_AUDIO << 8 ) | 50 )
88 #define MMI_MELODY1_E2_STOP_REQ ( ( P_AUDIO << 8 ) | 51 )
89 #define MMI_MELODY1_E2_START_CON ( ( P_AUDIO << 8 ) | 52 )
90 #define MMI_MELODY1_E2_STOP_CON ( ( P_AUDIO << 8 ) | 53 )
91 #endif
92 #if (L1_VOICE_MEMO_AMR)
93 #define MMI_VM_AMR_PLAY_START_REQ ( ( P_AUDIO << 8 ) | 54 )
94 #define MMI_VM_AMR_PLAY_STOP_REQ ( ( P_AUDIO << 8 ) | 55 )
95 #define MMI_VM_AMR_PLAY_START_CON ( ( P_AUDIO << 8 ) | 56 )
96 #define MMI_VM_AMR_PLAY_STOP_CON ( ( P_AUDIO << 8 ) | 57 )
97
98 #define MMI_VM_AMR_RECORD_START_REQ ( ( P_AUDIO << 8 ) | 58 )
99 #define MMI_VM_AMR_RECORD_STOP_REQ ( ( P_AUDIO << 8 ) | 59 )
100 #define MMI_VM_AMR_RECORD_START_CON ( ( P_AUDIO << 8 ) | 60 )
101 #define MMI_VM_AMR_RECORD_STOP_CON ( ( P_AUDIO << 8 ) | 61 )
102 #endif
103 #if (L1_CPORT == 1)
104 #define MMI_CPORT_CONFIGURE_REQ ( ( P_AUDIO << 8 ) | 62 )
105 #define MMI_CPORT_CONFIGURE_CON ( ( P_AUDIO << 8 ) | 63 )
106 #endif
107
108
109 // Messages L1S -> L1A
110 #if (KEYBEEP)
111 #define L1_KEYBEEP_START_CON ( ( P_AUDIO << 8 ) | 64 )
112 #define L1_KEYBEEP_STOP_CON ( ( P_AUDIO << 8 ) | 65 )
113 #endif
114 #if (TONE)
115 #define L1_TONE_START_CON ( ( P_AUDIO << 8 ) | 66 )
116 #define L1_TONE_STOP_CON ( ( P_AUDIO << 8 ) | 67 )
117 #endif
118 #if (MELODY_E1)
119 #define L1_MELODY0_START_CON ( ( P_AUDIO << 8 ) | 68 )
120 #define L1_MELODY0_STOP_CON ( ( P_AUDIO << 8 ) | 69 )
121
122 #define L1_MELODY1_START_CON ( ( P_AUDIO << 8 ) | 70 )
123 #define L1_MELODY1_STOP_CON ( ( P_AUDIO << 8 ) | 71 )
124 #endif
125 #if (VOICE_MEMO)
126 #define L1_VM_PLAY_START_CON ( ( P_AUDIO << 8 ) | 72 )
127 #define L1_VM_PLAY_STOP_CON ( ( P_AUDIO << 8 ) | 73 )
128
129 #define L1_VM_RECORD_START_CON ( ( P_AUDIO << 8 ) | 74 )
130 #define L1_VM_RECORD_STOP_CON ( ( P_AUDIO << 8 ) | 75 )
131 #endif
132 #if (SPEECH_RECO)
133 #define L1_SR_ENROLL_START_CON ( ( P_AUDIO << 8 ) | 76 )
134 #define L1_SR_ENROLL_STOP_CON ( ( P_AUDIO << 8 ) | 77 )
135
136 #define L1_SR_UPDATE_START_CON ( ( P_AUDIO << 8 ) | 78 )
137 #define L1_SR_UPDATE_STOP_CON ( ( P_AUDIO << 8 ) | 79 )
138
139 #define L1_SR_RECO_START_CON ( ( P_AUDIO << 8 ) | 80 )
140 #define L1_SR_RECO_STOP_CON ( ( P_AUDIO << 8 ) | 81 )
141 #define L1_SR_RECO_STOP_IND ( ( P_AUDIO << 8 ) | 82 )
142 #define L1_SR_PROCESSING_STOP_CON ( ( P_AUDIO << 8 ) | 83 )
143 #endif
144 #if (AEC)
145 #define L1_AEC_CON ( ( P_AUDIO << 8 ) | 84 )
146 #define L1_AEC_IND ( ( P_AUDIO << 8 ) | 85 )
147 #endif
148 #if (FIR)
149 #define L1_AUDIO_FIR_CON ( ( P_AUDIO << 8 ) | 86 )
150 #endif
151 #if (AUDIO_MODE)
152 #define L1_AUDIO_MODE_CON ( ( P_AUDIO << 8 ) | 87 )
153 #endif
154 #if (L1_VOICE_MEMO_AMR)
155 #define L1_VM_AMR_PLAY_START_CON ( ( P_AUDIO << 8 ) | 88 )
156 #define L1_VM_AMR_PLAY_STOP_CON ( ( P_AUDIO << 8 ) | 89 )
157
158 #define L1_VM_AMR_RECORD_START_CON ( ( P_AUDIO << 8 ) | 90 )
159 #define L1_VM_AMR_RECORD_STOP_CON ( ( P_AUDIO << 8 ) | 91 )
160 #endif
161 #if (L1_CPORT == 1)
162 #define L1_CPORT_CONFIGURE_CON ( ( P_AUDIO << 8 ) | 92 )
163 #endif
164
165 // Messages L1A <-> Audio background
166 #if (SPEECH_RECO)
167 #define L1_SRBACK_SAVE_DATA_REQ ( ( P_AUDIO << 8 ) | 93 )
168 #define L1_SRBACK_SAVE_DATA_CON ( ( P_AUDIO << 8 ) | 94 )
169 #define L1_SRBACK_LOAD_MODEL_REQ ( ( P_AUDIO << 8 ) | 95 )
170 #define L1_SRBACK_LOAD_MODEL_CON ( ( P_AUDIO << 8 ) | 96 )
171 #define L1_SRBACK_TEMP_SAVE_DATA_REQ ( ( P_AUDIO << 8 ) | 97 )
172 #define L1_SRBACK_TEMP_SAVE_DATA_CON ( ( P_AUDIO << 8 ) | 98 )
173 #endif
174 #if (MELODY_E2)
175 #define L1_BACK_MELODY_E2_LOAD_INSTRUMENT_REQ ( ( P_AUDIO << 8 ) | 99 )
176 #define L1_BACK_MELODY_E2_LOAD_INSTRUMENT_CON ( ( P_AUDIO << 8 ) | 100 )
177 #define L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_REQ ( ( P_AUDIO << 8 ) | 101 )
178 #define L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_CON ( ( P_AUDIO << 8 ) | 102 )
179
180 #define L1_MELODY0_E2_STOP_CON ( ( P_AUDIO << 8 ) | 103 )
181 #define L1_MELODY1_E2_STOP_CON ( ( P_AUDIO << 8 ) | 104 )
182 #endif
183
184 #if (OP_RIV_AUDIO == 1)
185 #if (L1_AUDIO_DRIVER == 1)
186 #define L1_AUDIO_DRIVER_IND ( ( P_AUDIO << 8 ) | 105 )
187 #endif
188 #endif
189 #endif // AUDIO_TASK == 1