sphenc1.h

Go to the documentation of this file.
00001 /* 
00002  * Copyright (c) 2010, 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  *  ======== sphenc1.h ========
00035  */
00051 #ifndef ti_sdo_ce_speech1_SPHENC1_
00052 #define ti_sdo_ce_speech1_SPHENC1_
00053 
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057 
00058 #include <ti/xdais/dm/xdm.h>
00059 #include <ti/xdais/dm/isphenc1.h>
00060 
00061 #include <ti/sdo/ce/Engine.h>
00062 #include <ti/sdo/ce/visa.h>
00063 #include <ti/sdo/ce/skel.h>
00064 
00067 
00068 #define SPHENC1_EOK      ISPHENC1_EOK         
00069 #define SPHENC1_EFAIL    ISPHENC1_EFAIL       
00072 #define SPHENC1_EUNSUPPORTED ISPHENC1_EUNSUPPORTED
00073 
00074 #define SPHENC1_ETIMEOUT VISA_ETIMEOUT        
00075 #define SPHENC1_FOREVER  VISA_FOREVER         
00081 typedef VISA_Handle SPHENC1_Handle;
00082 
00083 /* The following are just wrapper typedefs */
00084 
00086 typedef ISPHENC1_Params SPHENC1_Params;
00087 
00089 typedef ISPHENC1_InArgs  SPHENC1_InArgs;
00090 
00092 typedef ISPHENC1_OutArgs SPHENC1_OutArgs;
00093 
00095 typedef ISPHENC1_Cmd     SPHENC1_Cmd;
00096 
00098 typedef ISPHENC1_DynamicParams SPHENC1_DynamicParams;
00099 
00101 typedef ISPHENC1_Status SPHENC1_Status;
00102 
00109 extern SKEL_Fxns SPHENC1_SKEL;
00110 
00114 extern ISPHENC1_Fxns SPHENC1_STUBS;
00115 
00119 /*
00120  *  ======== SPHENC1_control ========
00121  */
00149 extern Int32 SPHENC1_control(SPHENC1_Handle handle, SPHENC1_Cmd id,
00150     SPHENC1_DynamicParams *params, SPHENC1_Status *status);
00151 
00152 
00153 /*
00154  *  ======== SPHENC1_create ========
00155  */
00184 extern SPHENC1_Handle SPHENC1_create(Engine_Handle e, String name,
00185     SPHENC1_Params *params);
00186 
00187 
00188 /*
00189  *  ======== SPHENC1_delete ========
00190  */
00208 extern Void SPHENC1_delete(SPHENC1_Handle handle);
00209 
00210 
00211 /*
00212  *  ======== SPHENC1_process ========
00213  */
00258 extern Int32 SPHENC1_process(SPHENC1_Handle handle,
00259     XDM1_SingleBufDesc *inBuf, XDM1_SingleBufDesc *outBuf,
00260     SPHENC1_InArgs *inArgs, SPHENC1_OutArgs *outArgs);
00261 
00262 
00263 /*
00264  *  ======== SPHENC1_processAsync ========
00265  */
00302 extern XDAS_Int32 SPHENC1_processAsync(SPHENC1_Handle handle,
00303     XDM1_SingleBufDesc *inBuf, XDM1_SingleBufDesc *outBuf,
00304     SPHENC1_InArgs *inArgs, SPHENC1_OutArgs *outArgs);
00305 
00306 
00307 /*
00308  *  ======== SPHENC1_processWait ========
00309  */
00352 extern XDAS_Int32 SPHENC1_processWait(SPHENC1_Handle handle,
00353     XDM1_SingleBufDesc *inBuf, XDM1_SingleBufDesc *outBuf,
00354     SPHENC1_InArgs *inArgs, SPHENC1_OutArgs *outArgs, UInt timeout);
00355 
00356 
00359 #ifdef __cplusplus
00360 }
00361 #endif
00362 
00363 #endif
00364 /*
00365  *  @(#) ti.sdo.ce.speech1; 1, 0, 1,270; 11-3-2010 22:20:49; /db/atree/library/trees/ce/ce-q16x/src/ xlibrary
00366 
00367  */
00368 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2010, Texas Instruments Incorporated