comparison modules/bluespec/Pygar/common/AudioProcessorRRR.h @ 8:74716e9a81cc pygar svn.9

[svn r9] Pygar now has the proper directory structure to play nicely with awb. Also, the apm file for audio-core willcompile successfully.
author rlm
date Fri, 23 Apr 2010 02:32:05 -0400
parents
children
comparison
equal deleted inserted replaced
7:7393cd19371e 8:74716e9a81cc
1
2 #ifndef _AUDIOPROCESSORRRR_
3 #define _AUDIOPROCESSORRRR_
4
5 #include <stdio.h>
6 #include <sys/time.h>
7
8 #include "asim/provides/low_level_platform_interface.h"
9
10 #include "asim/provides/rrr.h"
11
12
13
14 typedef class AUDIOPROCESSORRRR_SERVER_CLASS* AUDIOPROCESSORRRR_SERVER;
15 class AUDIOPROCESSORRRR_SERVER_CLASS: public RRR_SERVER_CLASS, public PLATFORMS_MODULE_CLASS
16 {
17 private:
18 // self-instantiation
19 static AUDIOPROCESSORRRR_SERVER_CLASS instance;
20 FILE *outputFile;
21
22 // server stub
23 RRR_SERVER_STUB serverStub;
24
25 int count;
26
27 public:
28 AUDIOPROCESSORRRR_SERVER_CLASS();
29 ~AUDIOPROCESSORRRR_SERVER_CLASS();
30
31 // static methods
32 static AUDIOPROCESSORRRR_SERVER GetInstance() { return &instance; }
33
34 // required RRR methods
35 void Init(PLATFORMS_MODULE);
36 void Uninit();
37 void Cleanup();
38
39 //
40 // RRR service methods
41 //
42 void SendProcessedStream(UINT16 control, UINT16 data0);
43 };
44
45
46
47 // include server stub
48 #include "asim/rrr/server_stub_AUDIOPROCESSORRRR.h"
49
50 #endif