37 #ifndef EEGOSPORTSDRIVER_H
38 #define EEGOSPORTSDRIVER_H
65 #include <QSharedPointer>
66 #include <qapplication.h>
86 typedef HRESULT (* CREATEAMPLIFIER) (IAmplifier** ppObject);
95 using namespace Eigen;
103 class EEGoSportsProducer;
111 #define MAX_BUFFER_SIZE 0xFFFFFFFF
114 #define __load_dll_func__(var, type, name) \
115 var = (type)::GetProcAddress(m_oLibHandle, name); \
117 cout<< "Plugin EEGoSports - ERROR - Error loading method " << name << "\n"; \
149 bool getSampleMatrixValue(MatrixXf& sampleMatrix);
162 bool initDevice(
int iNumberOfChannels,
163 int iSamplingFrequency,
165 bool bWriteDriverDebugToFile,
166 QString sOutpuFilePath,
167 bool bMeasureImpedance);
180 bool m_bInitDeviceSuccess;
184 uint m_uiNumberOfChannels;
185 uint m_uiSamplingFrequency;
186 bool m_bUseChExponent;
187 bool m_bWriteDriverDebugToFile;
188 bool m_bUsePreprocessing;
189 QString m_sOutputFilePath;
190 bool m_bMeasureImpedances;
193 HINSTANCE m_oLibHandle;
196 ULONG m_uiNumberOfAvailableChannels;
199 ofstream m_outputFileStream;
201 uint m_nLastTriggerValue;
204 CREATEAMPLIFIER m_oFpCreateAmplifier;
211 EEGoSportsPlugin::EEGO_GAIN GetGainForSignalRange(
int range);
216 #endif // EEGOSPORTSDRIVER_H
The EEGoSportsDriver class provides real time data acquisition of EEG data with a TMSi Refa device...
The EEGProducer class provides a EEG data producer for a given sampling rate.