mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
This is the changes made by Patrick Plenefisch converting the native code to use CMake and the CMake Maven Plugin, as opposed to the native Maven plugin. This is to allow for compatibility with newer versions of the GCC toolchain. All the cpp sources were moved from maven style directories to cpp style directories for CMake. Change-Id: I67f5e3608948f37c83b0990d232105a3784f8593
47 lines
1.0 KiB
C++
47 lines
1.0 KiB
C++
// Class for handling DMA transters.
|
|
// Copyright (c) National Instruments 2008. All Rights Reserved.
|
|
|
|
#ifndef __tDMAManager_h__
|
|
#define __tDMAManager_h__
|
|
|
|
#include "tSystem.h"
|
|
|
|
namespace nFPGA
|
|
{
|
|
// TODO: Implement DMA Manager
|
|
/*
|
|
class tDMAManager : public tSystem
|
|
{
|
|
public:
|
|
tDMAManager(tNIRIO_u32 dmaChannel, tNIRIO_u32 hostBufferSize, tRioStatusCode *status);
|
|
~tDMAManager();
|
|
void start(tRioStatusCode *status);
|
|
void stop(tRioStatusCode *status);
|
|
bool isStarted() {return _started;}
|
|
void read(
|
|
tNIRIO_u32* buf,
|
|
tNIRIO_u32 num,
|
|
tNIRIO_u32 timeout,
|
|
tNIRIO_u32* read,
|
|
tNIRIO_u32* remaining,
|
|
tRioStatusCode *status);
|
|
void write(
|
|
tNIRIO_u32* buf,
|
|
tNIRIO_u32 num,
|
|
tNIRIO_u32 timeout,
|
|
tNIRIO_u32* remaining,
|
|
tRioStatusCode *status);
|
|
private:
|
|
bool _started;
|
|
tNIRIO_u32 _dmaChannel;
|
|
tNIRIO_u32 _hostBufferSize;
|
|
tDMAChannelDescriptor const *_dmaChannelDescriptor;
|
|
|
|
};
|
|
*/
|
|
}
|
|
|
|
|
|
#endif // __tDMAManager_h__
|
|
|