Codec Engine Application Programming Interface (API)  ce-w08
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
universal.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  * ======== universal.h ========
40  */
41 
57 #ifndef ti_sdo_ce_universal_UNIVERSAL_
58 #define ti_sdo_ce_universal_UNIVERSAL_
59 
60 #ifdef __cplusplus
61 extern "C" {
62 #endif
63 
64 #include <ti/xdais/dm/xdm.h>
65 #include <ti/xdais/dm/iuniversal.h>
66 
67 #include <ti/sdo/ce/Engine.h>
68 #include <ti/sdo/ce/visa.h>
69 #include <ti/sdo/ce/skel.h>
70 
73 
75 #define UNIVERSAL_EOK IUNIVERSAL_EOK
76 
78 #define UNIVERSAL_EFAIL IUNIVERSAL_EFAIL
79 
81 #define UNIVERSAL_EUNSUPPORTED IUNIVERSAL_EUNSUPPORTED
82 
84 #define UNIVERSAL_ETIMEOUT VISA_ETIMEOUT
85 
87 #define UNIVERSAL_FOREVER VISA_FOREVER
88 
89 
96 #define UNIVERSAL_STUBSNAME "UNIVERSAL_STUBS"
97 
98 
103 
109 
118 
121 
127 #define UNIVERSAL_VISATYPE "ti.sdo.ce.universal.IUNIVERSAL"
128 
135 extern SKEL_Fxns UNIVERSAL_SKEL;
136 
141 extern IUNIVERSAL_Fxns UNIVERSAL_STUBS;
142 
155 
156 
157 /*
158  * ======== UNIVERSAL_control ========
159  */
184 extern Int32 UNIVERSAL_control(UNIVERSAL_Handle handle,
185  UNIVERSAL_Cmd id, UNIVERSAL_DynamicParams *params,
186  UNIVERSAL_Status *status);
187 
188 
189 /*
190  * ======== UNIVERSAL_create ========
191  */
220 extern UNIVERSAL_Handle UNIVERSAL_create(Engine_Handle e, String name,
221  UNIVERSAL_Params *params);
222 
223 
224 /*
225  * ======== UNIVERSAL_delete ========
226  */
244 extern Void UNIVERSAL_delete(UNIVERSAL_Handle handle);
245 
246 
247 /*
248  * ======== UNIVERSAL_process ========
249  */
290 extern Int32 UNIVERSAL_process(UNIVERSAL_Handle handle,
291  XDM1_BufDesc *inBufs, XDM1_BufDesc *outBufs, XDM1_BufDesc *inOutBufs,
292  UNIVERSAL_InArgs *inArgs, UNIVERSAL_OutArgs *outArgs);
293 
294 /*
295  * ======== UNIVERSAL_processAsync ========
296  */
335 extern XDAS_Int32 UNIVERSAL_processAsync(UNIVERSAL_Handle handle,
336  XDM1_BufDesc *inBufs, XDM1_BufDesc *outBufs, XDM1_BufDesc *inOutBufs,
337  IUNIVERSAL_InArgs *inArgs, IUNIVERSAL_OutArgs *outArgs);
338 
339 /*
340  * ======== UNIVERSAL_processWait ========
341  */
386 extern XDAS_Int32 UNIVERSAL_processWait(UNIVERSAL_Handle handle,
387  XDM1_BufDesc *inBufs, XDM1_BufDesc *outBufs, XDM1_BufDesc *inOutBufs,
388  IUNIVERSAL_InArgs *inArgs, IUNIVERSAL_OutArgs *outArgs, UInt timeout);
389 
392 #ifdef __cplusplus
393 }
394 #endif
395 
396 #endif
397 /*
398  * @(#) ti.sdo.ce.universal; 1, 0, 0,3; 6-13-2013 00:19:28; /db/atree/library/trees/ce/ce-w08/src/ xlibrary
399 
400  */
401 
Copyright 2013, Texas Instruments Incorporated