sphenc.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  *  ======== sphenc.h ========
00035  */
00052 #ifndef ti_sdo_ce_speech_SPHENC_
00053 #define ti_sdo_ce_speech_SPHENC_
00054 
00055 #ifdef __cplusplus
00056 extern "C" {
00057 #endif
00058 
00059 /*
00060  * By definition, this interface is 0.9 XDM.  Before including xdm.h,
00061  * define XDM_INCLUDE_DOT9_SUPPORT
00062  */
00063 #ifndef XDM_INCLUDE_DOT9_SUPPORT
00064 #define XDM_INCLUDE_DOT9_SUPPORT
00065 #endif
00066 #include <ti/xdais/dm/xdm.h>
00067 #include <ti/xdais/dm/isphenc.h>
00068 
00069 #include <ti/sdo/ce/Engine.h>
00070 #include <ti/sdo/ce/visa.h>
00071 #include <ti/sdo/ce/skel.h>
00072 
00075 
00076 typedef ISPHENC_Status SPHENC_Status;       
00078 #define SPHENC_EOK      ISPHENC_EOK         
00079 #define SPHENC_EFAIL    ISPHENC_EFAIL       
00080 #define SPHENC_ERUNTIME ISPHENC_ERUNTIME    
00081 #define SPHENC_ETIMEOUT VISA_ETIMEOUT       
00082 #define SPHENC_FOREVER  VISA_FOREVER        
00087 #define SPHENC_VISATYPE "ti.sdo.ce.speech.ISPHENC"
00088 
00092 typedef VISA_Handle SPHENC_Handle;
00093 
00098 typedef struct ISPHENC_Params SPHENC_Params;
00099 
00103 typedef ISPHENC_InArgs          SPHENC_InArgs;
00104 
00108 typedef ISPHENC_OutArgs         SPHENC_OutArgs;
00109 
00113 typedef ISPHENC_Cmd             SPHENC_Cmd;
00114 
00118 typedef ISPHENC_DynamicParams   SPHENC_DynamicParams;
00119 
00126 extern SKEL_Fxns SPHENC_SKEL;
00127 
00131 extern ISPHENC_Fxns SPHENC_STUBS;
00132 
00135 /*
00136  *  ======== SPHENC_create ========
00137  */
00162 extern SPHENC_Handle SPHENC_create(Engine_Handle e, String name,
00163         SPHENC_Params *params);
00164 
00165 
00166 /*
00167  *  ======== SPHENC_process ========
00168  */
00207 extern Int32 SPHENC_process(SPHENC_Handle handle,
00208         XDM_BufDesc *inBufs, XDM_BufDesc *outBufs,
00209         SPHENC_InArgs *inArgs, SPHENC_OutArgs *outArgs);
00210 
00211 
00212 /*
00213  *  ======== SPHENC_control ========
00214  */
00238 extern Int32 SPHENC_control(SPHENC_Handle handle, SPHENC_Cmd id,
00239        SPHENC_DynamicParams *params, SPHENC_Status *status);
00240 
00241 
00242 /*
00243  *  ======== SPHENC_delete ========
00244  */
00262 extern Void SPHENC_delete(SPHENC_Handle handle);
00263 
00264 
00265 /*
00266  *  ======== SPHENC_processAsync ========
00267  */
00304 extern XDAS_Int32 SPHENC_processAsync(SPHENC_Handle handle, XDM_BufDesc *inBufs,
00305         XDM_BufDesc *outBufs, ISPHENC_InArgs *inArgs, ISPHENC_OutArgs *outArgs);
00306 
00307 
00308 /*
00309  *  ======== SPHENC_processWait ========
00310  */
00353 extern XDAS_Int32 SPHENC_processWait(SPHENC_Handle handle, XDM_BufDesc *inBufs,
00354     XDM_BufDesc *outBufs, ISPHENC_InArgs *inArgs, ISPHENC_OutArgs *outArgs,
00355     UInt timeout);
00356 
00357 
00360 #ifdef __cplusplus
00361 }
00362 #endif
00363 
00364 #endif
00365 /*
00366  *  @(#) ti.sdo.ce.speech; 1, 0, 2,1; 1-17-2012 23:15:45; /db/atree/library/trees/ce/ce-t03/src/ xlibrary
00367 
00368  */
00369 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated