universal.h

Go to the documentation of this file.
00001 /* 
00002  * Copyright (c) 2012, Texas Instruments Incorporated
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  *
00009  * *  Redistributions of source code must retain the above copyright
00010  *    notice, this list of conditions and the following disclaimer.
00011  *
00012  * *  Redistributions in binary form must reproduce the above copyright
00013  *    notice, this list of conditions and the following disclaimer in the
00014  *    documentation and/or other materials provided with the distribution.
00015  *
00016  * *  Neither the name of Texas Instruments Incorporated nor the names of
00017  *    its contributors may be used to endorse or promote products derived
00018  *    from this software without specific prior written permission.
00019  *
00020  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00021  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
00022  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00023  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
00024  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00025  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00026  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
00027  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00028  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
00029  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
00030  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00031  * 
00032  */
00033 /*
00034  *  ======== universal.h ========
00035  */
00036 
00052 #ifndef ti_sdo_ce_universal_UNIVERSAL_
00053 #define ti_sdo_ce_universal_UNIVERSAL_
00054 
00055 #ifdef __cplusplus
00056 extern "C" {
00057 #endif
00058 
00059 #include <ti/xdais/dm/xdm.h>
00060 #include <ti/xdais/dm/iuniversal.h>
00061 
00062 #include <ti/sdo/ce/Engine.h>
00063 #include <ti/sdo/ce/visa.h>
00064 #include <ti/sdo/ce/skel.h>
00065 
00068 
00070 #define UNIVERSAL_EOK            IUNIVERSAL_EOK
00071 
00073 #define UNIVERSAL_EFAIL          IUNIVERSAL_EFAIL
00074 
00076 #define UNIVERSAL_EUNSUPPORTED   IUNIVERSAL_EUNSUPPORTED
00077 
00079 #define UNIVERSAL_ETIMEOUT VISA_ETIMEOUT
00080 
00082 #define UNIVERSAL_FOREVER  VISA_FOREVER
00083 
00084 
00091 #define UNIVERSAL_STUBSNAME "UNIVERSAL_STUBS"
00092 
00093 
00097 typedef VISA_Handle UNIVERSAL_Handle;
00098 
00103 typedef struct IUNIVERSAL_Params UNIVERSAL_Params;
00104 
00106 typedef IUNIVERSAL_InArgs  UNIVERSAL_InArgs;
00108 typedef IUNIVERSAL_OutArgs UNIVERSAL_OutArgs;
00110 typedef IUNIVERSAL_Cmd     UNIVERSAL_Cmd;
00112 typedef IUNIVERSAL_Status  UNIVERSAL_Status;
00113 
00115 typedef IUNIVERSAL_DynamicParams UNIVERSAL_DynamicParams;
00116 
00122 #define UNIVERSAL_VISATYPE "ti.sdo.ce.universal.IUNIVERSAL"
00123 
00130 extern SKEL_Fxns UNIVERSAL_SKEL;
00131 
00136 extern IUNIVERSAL_Fxns UNIVERSAL_STUBS;
00137 
00145 typedef struct IUNIVERSAL_CodecClassConfig {
00146     Bool manageInBufsCache     [ XDM_MAX_IO_BUFFERS ];
00147     Bool manageInOutBufsCache  [ XDM_MAX_IO_BUFFERS ];
00148     Bool manageOutBufsCache    [ XDM_MAX_IO_BUFFERS ];
00149 } IUNIVERSAL_CodecClassConfig;
00150 
00151 
00152 /*
00153  *  ======== UNIVERSAL_control ========
00154  */
00179 extern Int32 UNIVERSAL_control(UNIVERSAL_Handle handle,
00180     UNIVERSAL_Cmd id, UNIVERSAL_DynamicParams *params,
00181     UNIVERSAL_Status *status);
00182 
00183 
00184 /*
00185  *  ======== UNIVERSAL_create ========
00186  */
00215 extern UNIVERSAL_Handle UNIVERSAL_create(Engine_Handle e, String name,
00216     UNIVERSAL_Params *params);
00217 
00218 
00219 /*
00220  *  ======== UNIVERSAL_delete ========
00221  */
00239 extern Void UNIVERSAL_delete(UNIVERSAL_Handle handle);
00240 
00241 
00242 /*
00243  *  ======== UNIVERSAL_process ========
00244  */
00285 extern Int32 UNIVERSAL_process(UNIVERSAL_Handle handle,
00286         XDM1_BufDesc *inBufs, XDM1_BufDesc *outBufs, XDM1_BufDesc *inOutBufs,
00287         UNIVERSAL_InArgs *inArgs, UNIVERSAL_OutArgs *outArgs);
00288 
00289 /*
00290  *  ======== UNIVERSAL_processAsync ========
00291  */
00330 extern XDAS_Int32 UNIVERSAL_processAsync(UNIVERSAL_Handle handle,
00331         XDM1_BufDesc *inBufs, XDM1_BufDesc *outBufs, XDM1_BufDesc *inOutBufs,
00332         IUNIVERSAL_InArgs *inArgs, IUNIVERSAL_OutArgs *outArgs);
00333 
00334 /*
00335  *  ======== UNIVERSAL_processWait ========
00336  */
00381 extern XDAS_Int32 UNIVERSAL_processWait(UNIVERSAL_Handle handle,
00382         XDM1_BufDesc *inBufs, XDM1_BufDesc *outBufs, XDM1_BufDesc *inOutBufs,
00383         IUNIVERSAL_InArgs *inArgs, IUNIVERSAL_OutArgs *outArgs, UInt timeout);
00384 
00387 #ifdef __cplusplus
00388 }
00389 #endif
00390 
00391 #endif
00392 /*
00393  *  @(#) ti.sdo.ce.universal; 1, 0, 0,1; 8-14-2012 13:02:40; /db/atree/library/trees/ce/ce-u07/src/ xlibrary
00394 
00395  */
00396 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated