jerrym | f157933 | 2013-02-07 01:56:28 +0000 | [diff] [blame^] | 1 | // Class for handling DMA transters.
|
| 2 | // Copyright (c) National Instruments 2008. All Rights Reserved.
|
| 3 |
|
| 4 | #ifndef __tDMAManager_h__
|
| 5 | #define __tDMAManager_h__
|
| 6 |
|
| 7 | #include "NiRio.h"
|
| 8 | #include "tSystem.h"
|
| 9 |
|
| 10 | namespace nFPGA
|
| 11 | {
|
| 12 | // TODO: Implement DMA Manager
|
| 13 | /*
|
| 14 | class tDMAManager : public tSystem
|
| 15 | {
|
| 16 | public:
|
| 17 | tDMAManager(tNIRIO_u32 dmaChannel, tNIRIO_u32 hostBufferSize, tRioStatusCode *status);
|
| 18 | ~tDMAManager();
|
| 19 | void start(tRioStatusCode *status);
|
| 20 | void stop(tRioStatusCode *status);
|
| 21 | bool isStarted() {return _started;}
|
| 22 | void read(
|
| 23 | tNIRIO_u32* buf,
|
| 24 | tNIRIO_u32 num,
|
| 25 | tNIRIO_u32 timeout,
|
| 26 | tNIRIO_u32* read,
|
| 27 | tNIRIO_u32* remaining,
|
| 28 | tRioStatusCode *status);
|
| 29 | void write(
|
| 30 | tNIRIO_u32* buf,
|
| 31 | tNIRIO_u32 num,
|
| 32 | tNIRIO_u32 timeout,
|
| 33 | tNIRIO_u32* remaining,
|
| 34 | tRioStatusCode *status);
|
| 35 | private:
|
| 36 | bool _started;
|
| 37 | tNIRIO_u32 _dmaChannel;
|
| 38 | tNIRIO_u32 _hostBufferSize;
|
| 39 | tDMAChannelDescriptor const *_dmaChannelDescriptor;
|
| 40 |
|
| 41 | };
|
| 42 | */
|
| 43 | }
|
| 44 |
|
| 45 |
|
| 46 | #endif // __tDMAManager_h__
|
| 47 |
|