Mercurial > pygar
view modules/bluespec/Pygar/core/AudioCoreRRR.h @ 42:ced2ebd41347 pygar svn.43
[svn r43] bunch of updates that almost work...
author | punk |
---|---|
date | Wed, 05 May 2010 01:09:09 -0400 |
parents | 2c8166d205d5 |
children | 49049f97312c |
line wrap: on
line source
2 #ifndef _AUDIOCORERRR_3 #define _AUDIOCORERRR_5 #include <stdio.h>6 #include <sys/time.h>8 #include "asim/provides/low_level_platform_interface.h"9 #include "asim/provides/funcp_simulated_memory.h"10 #include "asim/provides/rrr.h"14 typedef class AUDIOCORERRR_SERVER_CLASS* AUDIOCORERRR_SERVER;15 class AUDIOCORERRR_SERVER_CLASS: public RRR_SERVER_CLASS, public PLATFORMS_MODULE_CLASS16 {17 private:18 // self-instantiation19 static AUDIOCORERRR_SERVER_CLASS instance;20 FILE *outputFile;21 FUNCP_SIMULATED_MEMORY_CLASS *memory;23 // server stub24 RRR_SERVER_STUB serverStub;26 int count;28 public:29 AUDIOCORERRR_SERVER_CLASS();30 ~AUDIOCORERRR_SERVER_CLASS();32 // static methods33 static AUDIOCORERRR_SERVER GetInstance() { return &instance; }35 // required RRR methods36 void Init(PLATFORMS_MODULE);37 void Uninit();38 void Cleanup();40 //41 // RRR service methods42 //44 /* Not Used by ScratchPad45 UINT32 MemoryRequestLoad (UINT32 address);46 void MemoryRequestStore (UINT32 address, UINT32 data);47 */49 void SendProcessedStream(UINT16 control, UINT16 data0);50 };54 // include server stub55 #include "asim/rrr/server_stub_AUDIOCORERRR.h"57 #endif