Mercurial > pygar
comparison modules/bluespec/Pygar/core/AudioCoreRRR.h @ 13:6d461680c6d9 pygar svn.14
[svn r14] more stuff
author | punk |
---|---|
date | Tue, 27 Apr 2010 09:03:28 -0400 |
parents | |
children | 0cfbb1e2de22 |
comparison
equal
deleted
inserted
replaced
12:394aa40fd812 | 13:6d461680c6d9 |
---|---|
1 | |
2 #ifndef _AUDIOCORERRR_ | |
3 #define _AUDIOCORERRR_ | |
4 | |
5 #include <stdio.h> | |
6 #include <sys/time.h> | |
7 | |
8 #include "asim/provides/low_level_platform_interface.h" | |
9 #include "asim/provides/funcp_simulated_memory.h" | |
10 #include "asim/provides/rrr.h" | |
11 | |
12 | |
13 | |
14 typedef class AUDIOCORERRR_SERVER_CLASS* AUDIOCORERRR_SERVER; | |
15 class AUDIOCORERRR_SERVER_CLASS: public RRR_SERVER_CLASS, public PLATFORMS_MODULE_CLASS | |
16 { | |
17 private: | |
18 // self-instantiation | |
19 static AUDIOCORERRR_SERVER_CLASS instance; | |
20 FUNCP_SIMULATED_MEMORY_CLASS *memory; | |
21 | |
22 | |
23 // server stub | |
24 RRR_SERVER_STUB serverStub; | |
25 | |
26 int count; | |
27 | |
28 public: | |
29 AUDIOCORERRR_SERVER_CLASS(); | |
30 ~AUDIOCORERRR_SERVER_CLASS(); | |
31 | |
32 // static methods | |
33 static AUDIOCORERRR_SERVER GetInstance() { return &instance; } | |
34 | |
35 // required RRR methods | |
36 void Init(PLATFORMS_MODULE); | |
37 void Uninit(); | |
38 void Cleanup(); | |
39 | |
40 // | |
41 // RRR service methods | |
42 // | |
43 | |
44 UINT32 MemoryRequestLoad (UINT32 address); | |
45 void MemoryRequestStore (UINT32 address, UINT32 data); | |
46 | |
47 void SendProcessedStream(UINT16 control, UINT16 data0); | |
48 }; | |
49 | |
50 | |
51 | |
52 // include server stub | |
53 #include "asim/rrr/server_stub_AUDIOCORERRR.h" | |
54 | |
55 #endif |