PASDK-516:Add ASOT event creation
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / framework / audioStreamOutProc.h
index 09871328dbd140f37544ee7bff77669f246a11c0..a767d8a1a2e1d8ff25a842ab899600c529247696 100644 (file)
@@ -41,6 +41,7 @@ All rights reserved.
 #define _ASOP_H_
  
 #include <xdc/std.h>
+#include <ti/sysbios/knl/Event.h>
 #include <ti/sysbios/knl/Task.h>
 
 #include "audioStreamProc_params.h"
@@ -56,6 +57,14 @@ All rights reserved.
 #define PAF_ASOT_FRAMELENGTH           256
 #define PAF_ASOT_MAX_FRAMELENGTH       1024
 
+/* Event IDs */
+#define Evt_Id_WakeTimer   Event_Id_00  // Wake Timer event
+#define Evt_Id_RxMsgAsit   Event_Id_01  // Rx ASIT message event
+#define Evt_Id_RxMsgAsdt   Event_Id_02  // Rx ASDT message event
+#define Evt_Id_TxMcaspEdma Event_Id_03  // Tx McASP EDMA event
+/* Event handle - to put in structure */
+extern Event_Handle asopEvt;
+
 // Global debug counter */
 extern Uint32 gTaskAsopCnt; // debug counter for ASOP task
 
@@ -215,12 +224,13 @@ typedef struct PAF_AST_OutIO {
 
 // Audio Stream Input Task (ASOT) configuration
 typedef struct PAF_ASOT_Config {
-    Task_Handle taskHandle;             // ASOT handle
-    ACP_Handle acp;                     // ASOT local ACP handle
-    Int8 cbDrainedFlag[DECODEN_MAX];    // CB drained flags
-    PAF_ASPM_Config *pAspmCfg;          // ASIT/ASOT shared configuration
-    PAF_AST_Config *pAstCfg;            // ASIT/ASOT/ASDT shared configuration
-    PAF_AST_IoOut  *pIoOut;
+    Task_Handle     taskHandle;                 // ASOT task handle
+    uint_least16_t  state;                      // ASOT state
+    ACP_Handle      acp;                        // ASOT ACP handle
+    Int8            cbDrainedFlag[DECODEN_MAX]; // CB drained flags
+    PAF_ASPM_Config *pAspmCfg;                  // ASIT/ASOT shared configuration
+    PAF_AST_Config  *pAstCfg;                   // ASIT/ASOT/ASDT shared configuration
+    PAF_AST_IoOut   *pIoOut;
 } PAF_ASOT_Config;