annotate AudioProcessor.h @ 16:7e1510b47336 pygar svn.17

[svn r17] added rest of items for core
author punk
date Tue, 27 Apr 2010 22:54:50 -0400
parents
children
rev   line source
punk@16 1 //
punk@16 2 // INTEL CONFIDENTIAL
punk@16 3 // Copyright (c) 2008 Intel Corp. Recipient is granted a non-sublicensable
punk@16 4 // copyright license under Intel copyrights to copy and distribute this code
punk@16 5 // internally only. This code is provided "AS IS" with no support and with no
punk@16 6 // warranties of any kind, including warranties of MERCHANTABILITY,
punk@16 7 // FITNESS FOR ANY PARTICULAR PURPOSE or INTELLECTUAL PROPERTY INFRINGEMENT.
punk@16 8 // By making any use of this code, Recipient agrees that no other licenses
punk@16 9 // to any Intel patents, trade secrets, copyrights or other intellectual
punk@16 10 // property rights are granted herein, and no other licenses shall arise by
punk@16 11 // estoppel, implication or by operation of law. Recipient accepts all risks
punk@16 12 // of use.
punk@16 13 //
punk@16 14
punk@16 15 // possibly use include paths to hide existing modules?
punk@16 16
punk@16 17 #ifndef __AUDIO_PROCESSOR_CONNECTED_APPLICATION__
punk@16 18 #define __AUDIO_PROCESSOR_CONNECTED_APPLICATION__
punk@16 19
punk@16 20 #include <stdio.h>
punk@16 21 #include <pthread.h>
punk@16 22 #include <semaphore.h>
punk@16 23
punk@16 24 #include "asim/provides/virtual_platform.h"
punk@16 25
punk@16 26 #include "asim/rrr/client_stub_AUDIOPROCESSORRRR.h"
punk@16 27
punk@16 28 typedef enum {
punk@16 29 EndOfFile = 0,
punk@16 30 Data = 1
punk@16 31 } AudioProcessorControl;
punk@16 32
punk@16 33
punk@16 34 typedef class CONNECTED_APPLICATION_CLASS* CONNECTED_APPLICATION;
punk@16 35 class CONNECTED_APPLICATION_CLASS : public PLATFORMS_MODULE_CLASS
punk@16 36 {
punk@16 37 private:
punk@16 38 AUDIOPROCESSORRRR_CLIENT_STUB clientStub;
punk@16 39 static sem_t throttle;
punk@16 40 static pthread_mutex_t lock;
punk@16 41 static pthread_cond_t cond;
punk@16 42
punk@16 43 public:
punk@16 44 CONNECTED_APPLICATION_CLASS(VIRTUAL_PLATFORM vp);
punk@16 45 ~CONNECTED_APPLICATION_CLASS();
punk@16 46 static void EndSimulation();
punk@16 47 static void UpdateSemaphore();
punk@16 48
punk@16 49 // init
punk@16 50 void Init();
punk@16 51
punk@16 52 // main
punk@16 53 void Main();
punk@16 54 };
punk@16 55
punk@16 56 #endif