audenc1.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  *  ======== audenc1.h ========
00035  */
00051 #ifndef ti_sdo_ce_audio1_AUDENC1_
00052 #define ti_sdo_ce_audio1_AUDENC1_
00053 
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057 
00058 #include <ti/xdais/dm/xdm.h>
00059 #include <ti/xdais/dm/iaudenc1.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 
00069 #define AUDENC1_EOK IAUDENC1_EOK
00070 
00071 #define AUDENC1_EFAIL IAUDENC1_EFAIL
00072 
00074 #define AUDENC1_EUNSUPPORTED IAUDENC1_EUNSUPPORTED
00075 
00076 #define AUDENC1_ETIMEOUT VISA_ETIMEOUT        
00077 #define AUDENC1_FOREVER  VISA_FOREVER         
00083 typedef VISA_Handle AUDENC1_Handle;
00084 
00086 typedef IAUDENC1_Params AUDENC1_Params;
00087 
00089 typedef IAUDENC1_InArgs AUDENC1_InArgs;
00090 
00092 typedef IAUDENC1_OutArgs AUDENC1_OutArgs;
00093 
00095 typedef IAUDENC1_Cmd AUDENC1_Cmd;
00096 
00098 typedef IAUDENC1_DynamicParams AUDENC1_DynamicParams;
00099 
00101 typedef IAUDENC1_Status AUDENC1_Status;
00102 
00103 
00110 extern SKEL_Fxns AUDENC1_SKEL;
00111 
00115 extern IAUDENC1_Fxns AUDENC1_STUBS;
00116 
00120 /*
00121  *  ======== AUDENC1_control ========
00122  */
00146 extern Int32 AUDENC1_control(AUDENC1_Handle handle, AUDENC1_Cmd id,
00147     AUDENC1_DynamicParams *params, AUDENC1_Status *status);
00148 
00149 
00150 /*
00151  *  ======== AUDENC1_create ========
00152  */
00181 extern AUDENC1_Handle AUDENC1_create(Engine_Handle e, String name,
00182     AUDENC1_Params *params);
00183 
00184 
00185 /*
00186  *  ======== AUDENC1_delete ========
00187  */
00205 extern Void AUDENC1_delete(AUDENC1_Handle handle);
00206 
00207 
00208 /*
00209  *  ======== AUDENC1_process ========
00210  */
00253 extern Int32 AUDENC1_process(AUDENC1_Handle handle, XDM1_BufDesc *inBufs,
00254     XDM1_BufDesc *outBufs, AUDENC1_InArgs *inArgs, AUDENC1_OutArgs *outArgs);
00255 
00256 
00257 /*
00258  *  ======== AUDENC1_processAsync ========
00259  */
00296 extern Int32 AUDENC1_processAsync(AUDENC1_Handle handle, XDM1_BufDesc *inBufs,
00297     XDM1_BufDesc *outBufs, AUDENC1_InArgs *inArgs, AUDENC1_OutArgs *outArgs);
00298 
00299 
00300 /*
00301  *  ======== AUDENC1_processWait ========
00302  */
00345 extern Int32 AUDENC1_processWait(AUDENC1_Handle handle, XDM1_BufDesc *inBufs,
00346     XDM1_BufDesc *outBufs, AUDENC1_InArgs *inArgs, AUDENC1_OutArgs *outArgs,
00347     UInt timeout);
00348 
00349 
00352 #ifdef __cplusplus
00353 }
00354 #endif
00355 
00356 #endif
00357 /*
00358  *  @(#) ti.sdo.ce.audio1; 1, 0, 1,279; 11-3-2010 22:18:17; /db/atree/library/trees/ce/ce-q16x/src/ xlibrary
00359 
00360  */
00361 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2010, Texas Instruments Incorporated