mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
Update headers and .sos to v15 image + most API changes
Java still does not work Change-Id: I172ac401a07b6703909068f82b7b6cc67e6075c0
This commit is contained in:
@@ -1,46 +1,41 @@
|
||||
// Class for handling DMA transters.
|
||||
// Class for handling DMA transfers.
|
||||
// Copyright (c) National Instruments 2008. All Rights Reserved.
|
||||
|
||||
#ifndef __tDMAManager_h__
|
||||
#define __tDMAManager_h__
|
||||
|
||||
#include "tSystem.h"
|
||||
#include <stdint.h>
|
||||
|
||||
namespace nFPGA
|
||||
{
|
||||
// TODO: Implement DMA Manager
|
||||
/*
|
||||
class tDMAManager : public tSystem
|
||||
{
|
||||
public:
|
||||
tDMAManager(tNIRIO_u32 dmaChannel, tNIRIO_u32 hostBufferSize, tRioStatusCode *status);
|
||||
tDMAManager(uint32_t dmaChannel, uint32_t 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,
|
||||
uint32_t* buf,
|
||||
size_t num,
|
||||
uint32_t timeout,
|
||||
size_t* remaining,
|
||||
tRioStatusCode *status);
|
||||
void write(
|
||||
tNIRIO_u32* buf,
|
||||
tNIRIO_u32 num,
|
||||
tNIRIO_u32 timeout,
|
||||
tNIRIO_u32* remaining,
|
||||
uint32_t* buf,
|
||||
size_t num,
|
||||
uint32_t timeout,
|
||||
size_t* remaining,
|
||||
tRioStatusCode *status);
|
||||
private:
|
||||
bool _started;
|
||||
tNIRIO_u32 _dmaChannel;
|
||||
tNIRIO_u32 _hostBufferSize;
|
||||
tDMAChannelDescriptor const *_dmaChannelDescriptor;
|
||||
uint32_t _dmaChannel;
|
||||
uint32_t _hostBufferSize;
|
||||
|
||||
};
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif // __tDMAManager_h__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user