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
474 B

4 years ago
#ifndef SONODEVICE_H
#define SONODEVICE_H
#include <QObject>
#include "SonoPcieDevice.h"
#include "SonoDeviceConstant.h"
4 years ago
class SonoDevice
{
private:
char* _buffers[SW_BUFFER_NUM];
4 years ago
public:
SonoPcieDevice device;
SonoDevice();
~SonoDevice();
void init();
void startDma();
void stopDma();
4 years ago
int getCounter();
void resetCounter(void);
bool isDmaBusy ();
void copy(int srcIndex, int dstIndex);
const char* getBufferPtr(int index);
4 years ago
};
#endif //SONODEVICE_H