]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - pasdk/test_dsp/framework/alphaFuncProc.h
Fixed problem of input task being stuck when input stream stops:
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / framework / alphaFuncProc.h
2 /*
3 Copyright (c) 2016, Texas Instruments Incorporated - http://www.ti.com/
4 All rights reserved.
6 * Redistribution and use in source and binary forms, with or without 
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 *
13 * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the
16 * distribution.
17 *
18 * Neither the name of Texas Instruments Incorporated nor the names of
19 * its contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 *
34 */
36 /*
37  *  ======== alphaFuncProc.h ========
38  */
40 #ifndef _AFP_H_
41 #define _AFP_H_
42  
43 #include <xdc/std.h>
45 #include <acp.h>
46 //#include <acp_mds.h>
47 //#include <acp_mds_priv.h>
48 #include "dcs7.h"
49 #include "alphaFuncProcParams.h"
51 // Global debug counters */
52 extern Uint32 gTaskAfpCnt; // debug counter for AFP task
54 /* AFP Handle */
55 typedef struct AFP_Obj *AFP_Handle;
57 /* AFP Function Table */
58 typedef struct AFP_Fxns {
59     //void   (*log)(AFP_Handle, void *, char *); // FL: leave dedicated log out for now
60     void * (*memAlloc)(AFP_Handle, Int32 *, UInt32, UInt32);
61     void   (*process)(AFP_Handle);    
62     void   (*acpInit)(void);
63     void   (*acpExit)(void);
64 } AFP_Fxns;
66 /* AFP Object */
67 typedef struct AFP_Obj {
68     Uint32 size;
69     const AFP_Fxns *fxns;
70     const AFP_Params *params;
71     DCS7_Handle dcs7;
72     const DCS7_Fxns *dcs7Fxns;
73     const DCS7_Config *dcs7Config;
74     ACP_Handle acp;
75     ACP_Params *acpParams;
76     Uint16 *rxBuf;
77     Uint16 *txBuf;
78     Int *pBufHeapId;
79     Int *pObjHeapId;
80     //void *logObj;
81 } AFP_Obj;
83 #endif /* _AFP_H_ */