| CE Gobi SDK 2.7 GobiApi

- Main Page
- Modules
- Classes
- Files

- File List

SwiM2MAVAPI.h
1 /*===========================================================================
2 FILE:
3 SwiM2MAVAPI.h
4
5 DESCRIPTION:
6 Sierra Wireless M2M AV Service APIs, Service Type 0xF5
7
8 Copyright (C) 2015 Sierra Wireless Incorporated. All rights reserved.
9 Sierra Wireless Proprietary/GTDR
10 ==========================================================================*/
11
12 #ifndef __SWI_M2MAV_API_H__
13 #define __SWI_M2MAV_API_H__
14 /*=========================================================================*/
15 // Definitions
16 /*=========================================================================*/
17
22
23 /*=========================================================================*/
24 // Structs
25 /*=========================================================================*/
26
27 /*=========================================================================*/
28 // Definitions
29 /*=========================================================================*/
30 #ifdef GOBIAPI_EXPORTS
31 #define IMPORTGOBI extern "C" __declspec( dllexport )
32 #else //GOBIAPI_EXPORTS
33 #ifdef __cplusplus
34 /* C++ callable DLL */
35 #define IMPORTGOBI extern "C" __declspec( dllimport )
36 #else
37 /* C callable DLL */
38 #define IMPORTGOBI __declspec( dllimport )
39 #endif
40 #endif //GOBIAPI_EXPORTS
41
42 // Calling convention for API
43 #define GOBICALLBACK __stdcall
44 #define GOBICMAPI __stdcall
45
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49
50
51 #define MAX_PIFACE_TABLE_SIZE 9
52
53 typedef struct
54 {
55 BYTE PIFACEParamLen;
56 BYTE PIFACEParam[MAX_PIFACE_TABLE_SIZE];
57 } PIFACETable;
58
59 typedef struct
60 {
61 BYTE AudioProfile;
62 BYTE ACDBDevice;
63 BYTE PIFACEID;
64 PIFACETable PIFACETbl;
65 } AudioConfig;
66
67 typedef struct
68 {
69 LONG B0;
70 LONG B1;
71 LONG B2;
72 LONG A1;
73 LONG A2;
74 } PCMIIRFilter;
75
76 typedef struct
77 {
78 BYTE Profile;
79 BYTE Switch;
80 BYTE Stage;
81 } PCMIIRSetConfig;
82
83 typedef struct
84 {
85 BYTE Profile;
86 BYTE Stage;
87 PCMIIRFilter Coeff;
88 } PCMIIRSetCoeff;
89 #ifdef __cplusplus
90 };
91 #endif
92
93 /*=========================================================================*/
94 // Prototypes
95 /*=========================================================================*/
96
128 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetProfile(
129 // req params
130 BYTE* pGenerator,
131 // resp params
132 BYTE* pProfile,
133 BYTE* pEarMute,
134 BYTE* pMicMute,
135 BYTE* pOutGenerator,
136 BYTE* pVolume,
137 BYTE* pCwtMute
138 );
139
169 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetProfile(
170 // req params
171 BYTE* pProfile,
172 BYTE* pEarMute,
173 BYTE* pMicMute,
174 BYTE* pGenerator,
175 BYTE* pVolume,
176 BYTE* pCwtMute
177 // resp params
178 );
179
196 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetVolume(
197 // req params
198 BYTE* pProfile,
199 BYTE* pGenerator,
200 // resp params
201 BYTE* pVolume
202 );
203
222 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetVolume(
223 // req params
224 BYTE* pProfile,
225 BYTE* pGenerator,
226 BYTE* pVolume
227 // resp params
228 );
229
230 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetAVMute(
231 // req params
232 BYTE* pProfile,
233 BYTE* pEarMute,
234 BYTE* pMicMute,
235 BYTE* pcwtMute//waiting tone mute
236 // resp params
237 );
238
239 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetAVMute(
240 // req params
241 BYTE* pProfile,
242 BYTE* pEarMute,
243 BYTE* pMicMute,
244 BYTE* pcwtMute//waiting tone mute
245 // resp params
246 );
247
248 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetAVCFG(
249 // req params
250 BYTE* pAudioProfile,
251 BYTE* pABCDDevice,
252 BYTE* pPIFACEID,
253 PIFACETable* pPIFACETable
254 // resp params
255 );
256
257 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetAVCFG(
258 // req params
259 // resp params
260 AudioConfig* pAudioConfig,
261 BYTE* pSize
262 );
263
264 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioNVDef(
265 // req params
266 // resp params
267 );
268
269 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetLPBK(
270 // req params
271 BYTE* pEnable
272 // resp params
273 );
274
275 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetSpeakerGain(
276 // req params
277 BYTE* pProfile,
278 // resp params
279 USHORT* pSpkrGain
280 );
281
282 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetSpeakerGain(
283 // req params
284 BYTE* pProfile,
285 USHORT* pSpkrGain
286 // resp params
287 );
288
289 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetSTG(
290 // req params
291 BYTE* pProfile,
292 // resp params
293 WORD* pGainValue
294 );
295
296
297 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetSTG(
298 // req params
299 BYTE* pProfile,
300 WORD* pGainValue
301 // resp params
302 );
303
304 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetTxVolume(
305 // req params
306 BYTE* pProfile,
307 // resp params
308 WORD* pTxVolume
309 );
310
311 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetTxVolume(
312 // req params
313 BYTE* pProfile,
314 WORD* pTxVolume
315 // resp params
316 );
317
318 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetMicGain(
319 // req params
320 BYTE* pProfile,
321 // resp params
322 WORD* pMicGain
323 );
324
325 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetMicGain(
326 // req params
327 BYTE* pProfile,
328 WORD* pMicGain
329 // resp params
330 );
331
332 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetVolDB(
333 // req params
334 BYTE* pProfile,
335 BYTE* pGenerator,
336 BYTE* pLevel,
337 // resp params
338 WORD* pValue
339 );
340
341 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetVolDB(
342 // req params
343 BYTE* pProfile,
344 BYTE* pGenerator,
345 BYTE* pLevel,
346 WORD* pValue
347 // resp params
348 );
349
350 /*IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetTXPCMIIR(
351 // req params
352 BYTE* pProfile,
353 BYTE* pOpMode,
354 // resp params
355 BYTE* pSwitch,
356 BYTE* pStage,
357 PCMIIRFilter* pFilterCoeff
358 );
359
360 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetTXPCMIIR(
361 // req params
362 PCMIIRSetConfig* pConfig,
363 PCMIIRSetCoeff* pCoeff
364 // resp params
365 );
366
367 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetRXPCMIIR(
368 // req params
369 BYTE* pProfile,
370 BYTE* pOpMode,
371 // resp params
372 BYTE* pSwitch,
373 BYTE* pStage,
374 PCMIIRFilter* pFilterCoeff
375 );
376
377 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetRXPCMIIR(
378 // req params
379 PCMIIRSetConfig* pConfig,
380 PCMIIRSetCoeff* pCoeff
381 // resp params
382 );*/
383
384 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetAVTXG(
385 // req params
386 BYTE* pProfile,
387 // resp params
388 WORD* pEncoderGain
389 );
390
391 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetAVTXG(
392 // req params
393 BYTE* pProfile,
394 WORD* pEncoderGain
395 // resp params
396 );
397
398 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetAVRXG(
399 // req params
400 BYTE* pProfile,
401 // resp params
402 WORD* pDecoderGain
403 );
404
405 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetAVRXG(
406 // req params
407 BYTE* pProfile,
408 WORD* pDecoderGain
409 // resp params
410 );
411
412 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetAVEC(
413 // req params
414 BYTE* pProfile,
415 // resp params
416 BYTE* pSwitch
417 );
418
419 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetAVEC(
420 // req params
421 BYTE* pProfile,
422 BYTE* pSwitch
423 // resp params
424 );
425
426 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetAVNS(
427 // req params
428 BYTE* pProfile,
429 // resp params
430 BYTE* pSwitch
431 );
432
433 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetAVNS(
434 // req params
435 BYTE* pProfile,
436 BYTE* pSwitch
437 // resp params
438 );
439
440 IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioPlayTone(
441 // req params
442 BYTE* pGenerator,
443 BYTE* pAudioTone,
444 USHORT* pToneDuration //optional
445 // resp params
446 ); // End of SwiM2MAV group
448 #endif //SwiM2MAVAPI_H
AudioConfig
Definition: SwiM2MAVAPI.h:59
PCMIIRFilter
Definition: SwiM2MAVAPI.h:67
SwiM2MAV_AudioGetProfile
IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetProfile(BYTE *pGenerator, BYTE *pProfile, BYTE *pEarMute, BYTE *pMicMute, BYTE *pOutGenerator, BYTE *pVolume, BYTE *pCwtMute)
PIFACETable
Definition: SwiM2MAVAPI.h:53
SwiM2MAV_AudioSetProfile
IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetProfile(BYTE *pProfile, BYTE *pEarMute, BYTE *pMicMute, BYTE *pGenerator, BYTE *pVolume, BYTE *pCwtMute)
SwiM2MAV_AudioSetVolume
IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioSetVolume(BYTE *pProfile, BYTE *pGenerator, BYTE *pVolume)
PCMIIRSetCoeff
Definition: SwiM2MAVAPI.h:83
PCMIIRSetConfig
Definition: SwiM2MAVAPI.h:76
SwiM2MAV_AudioGetVolume
IMPORTGOBI ULONG GOBICMAPI SwiM2MAV_AudioGetVolume(BYTE *pProfile, BYTE *pGenerator, BYTE *pVolume)