You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
653 B
31 lines
653 B
4 years ago
|
#ifndef DMACTRL_H
|
||
|
#define DMACTRL_H
|
||
|
|
||
|
#include "model/hardware/device/SonoDevice.h"
|
||
|
//#include "model/hardware/service/HardwarePacketEngine.h"
|
||
|
|
||
|
struct EmulatorProperties
|
||
|
{
|
||
|
EmulatorProperties();
|
||
|
|
||
|
};
|
||
|
|
||
|
class DmaCtrl
|
||
|
{
|
||
|
private:
|
||
|
SonoDevice* _device;
|
||
|
void startTransfer(bool emulatorEn);
|
||
|
void stopTransfer();
|
||
|
void setRamOffsetAddress(qint32 offset);
|
||
|
void setTransferLength(qint32 length);
|
||
|
void setTransferRate(float rate);
|
||
|
void setOptions(bool performanceMode);
|
||
|
void setMode(bool dynamicMode);
|
||
|
|
||
|
public:
|
||
|
DmaCtrl();
|
||
|
void dmaTransactionMode(bool emulActive) const;
|
||
|
};
|
||
|
|
||
|
#endif // DMACTRL_H
|