WPILib 2012
WPILibRoboticsLibraryforFRC
ChipObject/tDMAManager.h
00001 // Class for handling DMA transters.
00002 // Copyright (c) National Instruments 2008.  All Rights Reserved.
00003 
00004 #ifndef __tDMAManager_h__
00005 #define __tDMAManager_h__
00006 
00007 #include "NiRio.h"
00008 #include "tSystem.h"
00009 
00010 namespace nFPGA
00011 {
00012 // TODO: Implement DMA Manager
00013 /*
00014 class tDMAManager : public tSystem
00015 {
00016 public:
00017    tDMAManager(tNIRIO_u32 dmaChannel, tNIRIO_u32 hostBufferSize, tRioStatusCode *status);
00018    ~tDMAManager();
00019    void start(tRioStatusCode *status);
00020    void stop(tRioStatusCode *status);
00021    bool isStarted() {return _started;}
00022    void read(
00023       tNIRIO_u32*      buf,
00024       tNIRIO_u32       num,
00025       tNIRIO_u32       timeout,
00026       tNIRIO_u32*      read,
00027       tNIRIO_u32*      remaining,
00028       tRioStatusCode *status);
00029    void write(
00030       tNIRIO_u32*      buf,
00031       tNIRIO_u32       num,
00032       tNIRIO_u32       timeout,
00033       tNIRIO_u32*      remaining,
00034       tRioStatusCode *status);
00035 private:
00036    bool _started;
00037    tNIRIO_u32 _dmaChannel;
00038    tNIRIO_u32 _hostBufferSize;
00039    tDMAChannelDescriptor const *_dmaChannelDescriptor;
00040 
00041 };
00042 */
00043 }
00044 
00045 
00046 #endif // __tDMAManager_h__
00047 
 All Classes Functions Variables