annotate modules/bluespec/Pygar/core/AudioCoreRRR.h @ 44:9b0dfce52c29 pygar svn.45

[svn r45] adding mixer
author punk
date Wed, 05 May 2010 12:30:18 -0400
parents 2c8166d205d5
children 49049f97312c
rev   line source
punk@13 1
punk@13 2 #ifndef _AUDIOCORERRR_
punk@13 3 #define _AUDIOCORERRR_
punk@13 4
punk@13 5 #include <stdio.h>
punk@13 6 #include <sys/time.h>
punk@13 7
punk@13 8 #include "asim/provides/low_level_platform_interface.h"
punk@13 9 #include "asim/provides/funcp_simulated_memory.h"
punk@13 10 #include "asim/provides/rrr.h"
punk@13 11
punk@13 12
punk@13 13
punk@13 14 typedef class AUDIOCORERRR_SERVER_CLASS* AUDIOCORERRR_SERVER;
punk@13 15 class AUDIOCORERRR_SERVER_CLASS: public RRR_SERVER_CLASS, public PLATFORMS_MODULE_CLASS
punk@13 16 {
punk@13 17 private:
punk@13 18 // self-instantiation
punk@13 19 static AUDIOCORERRR_SERVER_CLASS instance;
punk@22 20 FILE *outputFile;
punk@13 21 FUNCP_SIMULATED_MEMORY_CLASS *memory;
punk@13 22
punk@22 23 // server stub
punk@13 24 RRR_SERVER_STUB serverStub;
punk@13 25
punk@13 26 int count;
punk@13 27
punk@13 28 public:
punk@13 29 AUDIOCORERRR_SERVER_CLASS();
punk@13 30 ~AUDIOCORERRR_SERVER_CLASS();
punk@13 31
punk@13 32 // static methods
punk@13 33 static AUDIOCORERRR_SERVER GetInstance() { return &instance; }
punk@13 34
punk@13 35 // required RRR methods
punk@13 36 void Init(PLATFORMS_MODULE);
punk@13 37 void Uninit();
punk@13 38 void Cleanup();
punk@13 39
punk@13 40 //
punk@13 41 // RRR service methods
punk@13 42 //
punk@13 43
punk@33 44 /* Not Used by ScratchPad
punk@13 45 UINT32 MemoryRequestLoad (UINT32 address);
punk@13 46 void MemoryRequestStore (UINT32 address, UINT32 data);
punk@33 47 */
punk@13 48
punk@22 49 void SendProcessedStream(UINT16 control, UINT16 data0);
punk@13 50 };
punk@13 51
punk@13 52
punk@13 53
punk@13 54 // include server stub
punk@13 55 #include "asim/rrr/server_stub_AUDIOCORERRR.h"
punk@13 56
punk@13 57 #endif