Codec Engine Application Programming Interface (API)  ce-w08
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
audenc1.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013 by Texas Instruments Incorporated.
3  *
4  */
5 
6 /*
7  * Copyright (c) 2013, Texas Instruments Incorporated
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  *
14  * * Redistributions of source code must retain the above copyright
15  * notice, this list of conditions and the following disclaimer.
16  *
17  * * Redistributions in binary form must reproduce the above copyright
18  * notice, this list of conditions and the following disclaimer in the
19  * documentation and/or other materials provided with the distribution.
20  *
21  * * Neither the name of Texas Instruments Incorporated nor the names of
22  * its contributors may be used to endorse or promote products derived
23  * from this software without specific prior written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
27  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
29  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
32  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
34  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
35  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36  *
37  */
38 /*
39  * ======== audenc1.h ========
40  */
56 #ifndef ti_sdo_ce_audio1_AUDENC1_
57 #define ti_sdo_ce_audio1_AUDENC1_
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
63 #include <ti/xdais/dm/xdm.h>
64 #include <ti/xdais/dm/iaudenc1.h>
65 
66 #include <ti/sdo/ce/Engine.h>
67 #include <ti/sdo/ce/visa.h>
68 #include <ti/sdo/ce/skel.h>
69 
72 
74 #define AUDENC1_EOK IAUDENC1_EOK
75 
76 #define AUDENC1_EFAIL IAUDENC1_EFAIL
77 
79 #define AUDENC1_EUNSUPPORTED IAUDENC1_EUNSUPPORTED
80 
81 #define AUDENC1_ETIMEOUT VISA_ETIMEOUT
82 #define AUDENC1_FOREVER VISA_FOREVER
87 #define AUDENC1_VISATYPE "ti.sdo.ce.audio1.IAUDENC1"
88 
95 #define AUDENC1_STUBSNAME "AUDENC1_STUBS"
96 
101 
104 
107 
110 
113 
116 
119 
120 
127 extern SKEL_Fxns AUDENC1_SKEL;
128 
132 extern IAUDENC1_Fxns AUDENC1_STUBS;
133 
137 /*
138  * ======== AUDENC1_control ========
139  */
163 extern Int32 AUDENC1_control(AUDENC1_Handle handle, AUDENC1_Cmd id,
164  AUDENC1_DynamicParams *params, AUDENC1_Status *status);
165 
166 
167 /*
168  * ======== AUDENC1_create ========
169  */
198 extern AUDENC1_Handle AUDENC1_create(Engine_Handle e, String name,
199  AUDENC1_Params *params);
200 
201 
202 /*
203  * ======== AUDENC1_delete ========
204  */
222 extern Void AUDENC1_delete(AUDENC1_Handle handle);
223 
224 
225 /*
226  * ======== AUDENC1_process ========
227  */
270 extern Int32 AUDENC1_process(AUDENC1_Handle handle, XDM1_BufDesc *inBufs,
271  XDM1_BufDesc *outBufs, AUDENC1_InArgs *inArgs, AUDENC1_OutArgs *outArgs);
272 
273 
274 /*
275  * ======== AUDENC1_processAsync ========
276  */
313 extern Int32 AUDENC1_processAsync(AUDENC1_Handle handle, XDM1_BufDesc *inBufs,
314  XDM1_BufDesc *outBufs, AUDENC1_InArgs *inArgs, AUDENC1_OutArgs *outArgs);
315 
316 
317 /*
318  * ======== AUDENC1_processWait ========
319  */
362 extern Int32 AUDENC1_processWait(AUDENC1_Handle handle, XDM1_BufDesc *inBufs,
363  XDM1_BufDesc *outBufs, AUDENC1_InArgs *inArgs, AUDENC1_OutArgs *outArgs,
364  UInt timeout);
365 
366 
369 #ifdef __cplusplus
370 }
371 #endif
372 
373 #endif
374 /*
375  * @(#) ti.sdo.ce.audio1; 1, 0, 1,3; 6-13-2013 00:10:34; /db/atree/library/trees/ce/ce-w08/src/ xlibrary
376 
377  */
378 
Copyright 2013, Texas Instruments Incorporated