]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - procsdk_audio_x_xx_xx_xx/test_dsp/framework/systemStream.h
Add demo source code
[processor-sdk/performance-audio-sr.git] / procsdk_audio_x_xx_xx_xx / test_dsp / framework / systemStream.h
1 /*
2  *  ======== systemStream.h ========
3  */
5 //
6 // See: pa/f/ss0.h
7 //
9 #ifndef _SYSTEM_STREAM_H_
10 #define _SYSTEM_STREAM_H_
12 #include <xdc/std.h>
13 #include <acp.h>
14 #include "pafsys.h"
16 #define PAF_SYSTEMSTREAMFXNS_XN 4
18 struct PAF_SST_Params;
19 struct PAF_SST_Config;
21 typedef void PAF_SST_FxnsMain 
22     (const struct PAF_SST_Params *, struct PAF_SST_Config *);
23 typedef Int PAF_SST_FxnsCompute 
24     (const struct PAF_SST_Params *, struct PAF_SST_Config *, Int64 *);
25 typedef Int PAF_SST_FxnsTransmit 
26     (const struct PAF_SST_Params *, struct PAF_SST_Config *, Int64 *);
28 typedef struct PAF_SST_Fxns {
29     PAF_SST_FxnsMain *main;
30     Int32 count;
31     struct {
32         PAF_SST_FxnsCompute  *compute;
33         PAF_SST_FxnsTransmit *transmit;
34     } sub[1];
35 } PAF_SST_Fxns;
37 typedef struct PAF_SST_Params {
38     Int8 streams;
39     Int8 stream1; /* unused */
40     Int8 streamN; /* unused */
41     Int8 ss;
42     const PAF_SST_Fxns *fxns;
43 } PAF_SST_Params;
45 typedef struct PAF_SST_Config {
46     ACP_Handle acp;
47     PAF_SystemStatus *pStatus;
48 } PAF_SST_Config;
50 typedef struct PAF_ERR_Config {
51     ACP_Handle acp;
52     PAF_ErrorStatus *pStatus;
53 } PAF_ERR_Config;
55 /* Audio Stream functions */
56 extern PAF_SST_FxnsMain     systemStreamMain;
57 extern PAF_SST_FxnsCompute  systemStream1Compute;
58 extern PAF_SST_FxnsTransmit systemStream1Transmit;
59 extern PAF_SST_FxnsCompute  systemStream2Compute;
60 extern PAF_SST_FxnsTransmit systemStream2Transmit;
61 extern PAF_SST_FxnsCompute  systemStream3Compute;
62 extern PAF_SST_FxnsTransmit systemStream3Transmit;
63 #ifdef THX
64 extern PAF_SST_FxnsCompute  systemStream4Compute;
65 extern PAF_SST_FxnsTransmit systemStream4Transmit;
66 #endif
67 extern PAF_SST_FxnsCompute  systemStream5Compute;
68 extern PAF_SST_FxnsTransmit systemStream5Transmit;
70 #endif /* _SYSTEM_STREAM_H_ */