sphdec.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  *  ======== sphdec.h ========
00035  */
00052 #ifndef ti_sdo_ce_speech_SPHDEC_
00053 #define ti_sdo_ce_speech_SPHDEC_
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/isphdec.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 ISPHDEC_Status SPHDEC_Status;       
00078 #define SPHDEC_EOK      ISPHDEC_EOK         
00079 #define SPHDEC_EFAIL    ISPHDEC_EFAIL       
00080 #define SPHDEC_ERUNTIME ISPHDEC_ERUNTIME    
00081 #define SPHDEC_ETIMEOUT VISA_ETIMEOUT       
00082 #define SPHDEC_FOREVER  VISA_FOREVER        
00087 #define SPHDEC_VISATYPE "ti.sdo.ce.speech.ISPHDEC"
00088 
00095 #define SPHDEC_STUBSNAME "SPHDEC_STUBS"
00096 
00097 
00101 typedef VISA_Handle SPHDEC_Handle;
00102 
00107 typedef struct ISPHDEC_Params SPHDEC_Params;
00108 
00112 typedef ISPHDEC_InArgs          SPHDEC_InArgs;
00113 
00117 typedef ISPHDEC_OutArgs         SPHDEC_OutArgs;
00118 
00122 typedef ISPHDEC_Cmd             SPHDEC_Cmd;
00123 
00127 typedef ISPHDEC_DynamicParams   SPHDEC_DynamicParams;
00128 
00135 extern SKEL_Fxns SPHDEC_SKEL;
00136 
00140 extern ISPHDEC_Fxns SPHDEC_STUBS;
00141 
00144 /*
00145  *  ======== SPHDEC_create ========
00146  */
00171 extern SPHDEC_Handle SPHDEC_create(Engine_Handle e, String name,
00172         SPHDEC_Params *params);
00173 
00174 
00175 /*
00176  *  ======== SPHDEC_process ========
00177  */
00216 extern Int32 SPHDEC_process(SPHDEC_Handle handle,
00217         XDM_BufDesc *inBufs, XDM_BufDesc *outBufs,
00218         SPHDEC_InArgs *inArgs, SPHDEC_OutArgs *outArgs);
00219 
00220 
00221 /*
00222  *  ======== SPHDEC_control ========
00223  */
00247 extern Int32 SPHDEC_control(SPHDEC_Handle handle, SPHDEC_Cmd id,
00248         SPHDEC_DynamicParams *params, SPHDEC_Status *status);
00249 
00250 
00251 /*
00252  *  ======== SPHDEC_delete ========
00253  */
00271 extern Void SPHDEC_delete(SPHDEC_Handle handle);
00272 
00273 
00274 /*
00275  *  ======== SPHDEC_processAsync ========
00276  */
00313 extern XDAS_Int32 SPHDEC_processAsync(SPHDEC_Handle handle, XDM_BufDesc *inBufs,
00314         XDM_BufDesc *outBufs, SPHDEC_InArgs *inArgs, SPHDEC_OutArgs *outArgs);
00315 
00316 
00317 /*
00318  *  ======== SPHDEC_processWait ========
00319  */
00362 extern XDAS_Int32 SPHDEC_processWait(SPHDEC_Handle handle, XDM_BufDesc *inBufs,
00363     XDM_BufDesc *outBufs, SPHDEC_InArgs *inArgs, SPHDEC_OutArgs *outArgs,
00364     UInt timeout);
00365 
00366 
00369 #ifdef __cplusplus
00370 }
00371 #endif
00372 
00373 #endif
00374 /*
00375  *  @(#) ti.sdo.ce.speech; 1, 0, 2,1; 8-14-2012 13:01:54; /db/atree/library/trees/ce/ce-u07/src/ xlibrary
00376 
00377  */
00378 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated