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.
37 lines
698 B
37 lines
698 B
4 years ago
|
#ifndef SONODEVICE_H
|
||
|
#define SONODEVICE_H
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
#include "SonoPcieDevice.h"
|
||
|
#include "SonoConfig.h"
|
||
|
|
||
|
class SonoDevice
|
||
|
{
|
||
|
private:
|
||
|
char* _buffers[SW_BUFFER_NUM];
|
||
|
|
||
|
public:
|
||
|
SonoPcieDevice device;
|
||
|
|
||
|
SonoDevice();
|
||
|
~SonoDevice();
|
||
|
|
||
|
void init();
|
||
|
void startTransfer(bool emulatorEn);
|
||
|
void stopTransfer();
|
||
|
int getCounter();
|
||
|
void setRamOffsetAddress(qint32 offset);
|
||
|
void setTransferLength(qint32 length);
|
||
|
void setTransferRate(float rate);
|
||
|
void setOptions(bool performanceMode);
|
||
|
void setMode(bool dynamicMode);
|
||
|
void copy(int srcIndex, int dstIndex);
|
||
|
void show(int i);
|
||
|
void log(int i);
|
||
|
void fillRam();
|
||
|
const char* getBufferPtr(int index);
|
||
|
};
|
||
|
|
||
|
#endif //SONODEVICE_H
|