auddec1.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  *  ======== auddec1.h ========
00035  */
00036 
00052 #ifndef ti_sdo_ce_audio1_AUDDEC1_
00053 #define ti_sdo_ce_audio1_AUDDEC1_
00054 
00055 #ifdef __cplusplus
00056 extern "C" {
00057 #endif
00058 
00059 #include <ti/xdais/dm/xdm.h>
00060 #include <ti/xdais/dm/iauddec1.h>
00061 
00062 #include <ti/sdo/ce/Engine.h>
00063 #include <ti/sdo/ce/visa.h>
00064 #include <ti/sdo/ce/skel.h>
00065 
00068 
00069 #define AUDDEC1_EOK      IAUDDEC1_EOK         
00070 #define AUDDEC1_EFAIL    IAUDDEC1_EFAIL       
00073 #define AUDDEC1_EUNSUPPORTED IAUDDEC1_EUNSUPPORTED
00074 
00075 #define AUDDEC1_ETIMEOUT VISA_ETIMEOUT        
00076 #define AUDDEC1_FOREVER  VISA_FOREVER         
00082 typedef VISA_Handle AUDDEC1_Handle;
00083 
00088 typedef struct IAUDDEC1_Params AUDDEC1_Params;
00089 
00090 
00091 typedef IAUDDEC1_InArgs  AUDDEC1_InArgs;    
00092 typedef IAUDDEC1_OutArgs AUDDEC1_OutArgs;   
00093 typedef IAUDDEC1_Cmd     AUDDEC1_Cmd;       
00094 typedef IAUDDEC1_Status  AUDDEC1_Status;    
00097 typedef IAUDDEC1_DynamicParams AUDDEC1_DynamicParams;
00098 
00099 
00106 extern SKEL_Fxns AUDDEC1_SKEL;
00107 
00111 extern IAUDDEC1_Fxns AUDDEC1_STUBS;
00112 
00116 /*
00117  *  ======== AUDDEC1_control ========
00118  */
00142 extern Int32 AUDDEC1_control(AUDDEC1_Handle handle, AUDDEC1_Cmd id,
00143     AUDDEC1_DynamicParams *params, AUDDEC1_Status *status);
00144 
00145 
00146 /*
00147  *  ======== AUDDEC1_create ========
00148  */
00176 extern AUDDEC1_Handle AUDDEC1_create(Engine_Handle e, String name,
00177     AUDDEC1_Params *params);
00178 
00179 
00180 /*
00181  *  ======== AUDDEC1_delete ========
00182  */
00200 extern Void AUDDEC1_delete(AUDDEC1_Handle handle);
00201 
00202 
00203 /*
00204  *  ======== AUDDEC1_process ========
00205  */
00244 extern Int32 AUDDEC1_process(AUDDEC1_Handle handle, XDM1_BufDesc *inBufs,
00245     XDM1_BufDesc *outBufs, AUDDEC1_InArgs *inArgs, AUDDEC1_OutArgs *outArgs);
00246 
00247 
00248 /*
00249  *  ======== AUDDEC1_processAsync ========
00250  */
00287 extern Int32 AUDDEC1_processAsync(AUDDEC1_Handle handle, XDM1_BufDesc *inBufs,
00288     XDM1_BufDesc *outBufs, AUDDEC1_InArgs *inArgs, AUDDEC1_OutArgs *outArgs);
00289 
00290 
00291 /*
00292  *  ======== AUDDEC1_processWait ========
00293  */
00336 extern Int32 AUDDEC1_processWait(AUDDEC1_Handle handle, XDM1_BufDesc *inBufs,
00337     XDM1_BufDesc *outBufs, AUDDEC1_InArgs *inArgs, AUDDEC1_OutArgs *outArgs,
00338     UInt timeout);
00339 
00340 
00343 #ifdef __cplusplus
00344 }
00345 #endif
00346 
00347 #endif
00348 /*
00349  *  @(#) ti.sdo.ce.audio1; 1, 0, 1,282; 12-2-2010 21:18:54; /db/atree/library/trees/ce/ce-r11x/src/ xlibrary
00350 
00351  */
00352 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2010, Texas Instruments Incorporated