sphenc1.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  *  ======== 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         
00080 #define SPHENC1_VISATYPE "ti.sdo.ce.speech1.ISPHENC1"
00081 
00088 #define SPHENC1_STUBSNAME "SPHENC1_STUBS"
00089 
00090 
00094 typedef VISA_Handle SPHENC1_Handle;
00095 
00096 /* The following are just wrapper typedefs */
00097 
00099 typedef ISPHENC1_Params SPHENC1_Params;
00100 
00102 typedef ISPHENC1_InArgs  SPHENC1_InArgs;
00103 
00105 typedef ISPHENC1_OutArgs SPHENC1_OutArgs;
00106 
00108 typedef ISPHENC1_Cmd     SPHENC1_Cmd;
00109 
00111 typedef ISPHENC1_DynamicParams SPHENC1_DynamicParams;
00112 
00114 typedef ISPHENC1_Status SPHENC1_Status;
00115 
00122 extern SKEL_Fxns SPHENC1_SKEL;
00123 
00127 extern ISPHENC1_Fxns SPHENC1_STUBS;
00128 
00132 /*
00133  *  ======== SPHENC1_control ========
00134  */
00162 extern Int32 SPHENC1_control(SPHENC1_Handle handle, SPHENC1_Cmd id,
00163     SPHENC1_DynamicParams *params, SPHENC1_Status *status);
00164 
00165 
00166 /*
00167  *  ======== SPHENC1_create ========
00168  */
00197 extern SPHENC1_Handle SPHENC1_create(Engine_Handle e, String name,
00198     SPHENC1_Params *params);
00199 
00200 
00201 /*
00202  *  ======== SPHENC1_delete ========
00203  */
00221 extern Void SPHENC1_delete(SPHENC1_Handle handle);
00222 
00223 
00224 /*
00225  *  ======== SPHENC1_process ========
00226  */
00271 extern Int32 SPHENC1_process(SPHENC1_Handle handle,
00272     XDM1_SingleBufDesc *inBuf, XDM1_SingleBufDesc *outBuf,
00273     SPHENC1_InArgs *inArgs, SPHENC1_OutArgs *outArgs);
00274 
00275 
00276 /*
00277  *  ======== SPHENC1_processAsync ========
00278  */
00315 extern XDAS_Int32 SPHENC1_processAsync(SPHENC1_Handle handle,
00316     XDM1_SingleBufDesc *inBuf, XDM1_SingleBufDesc *outBuf,
00317     SPHENC1_InArgs *inArgs, SPHENC1_OutArgs *outArgs);
00318 
00319 
00320 /*
00321  *  ======== SPHENC1_processWait ========
00322  */
00365 extern XDAS_Int32 SPHENC1_processWait(SPHENC1_Handle handle,
00366     XDM1_SingleBufDesc *inBuf, XDM1_SingleBufDesc *outBuf,
00367     SPHENC1_InArgs *inArgs, SPHENC1_OutArgs *outArgs, UInt timeout);
00368 
00369 
00372 #ifdef __cplusplus
00373 }
00374 #endif
00375 
00376 #endif
00377 /*
00378  *  @(#) ti.sdo.ce.speech1; 1, 0, 1,1; 8-14-2012 13:01:57; /db/atree/library/trees/ce/ce-u07/src/ xlibrary
00379 
00380  */
00381 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated