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