-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEEGSite.h
More file actions
43 lines (37 loc) · 918 Bytes
/
EEGSite.h
File metadata and controls
43 lines (37 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef EEGSITE_H
#define EEGSITE_H
#include <QObject>
#include <QDebug>
#define timeForAnalysis = 5000;
#define timeForFeedback = 1000;
class EEGSite : public QObject {
Q_OBJECT
public:
EEGSite();
EEGSite(int id);
bool getIsConnected();
int getBaselineFrequency();
void setBaseline(int);
int calculateBaseline(int* data);
void listenAlphaFrequencies(int * data);
void listenBetaFrequencies(int * data);
void listenDeltaFrequencies(int * data);
void listenThetaFrequencies(int * data);
void deliverTreatment(int);
void disconnectSite();
void reconnectSite();
int* getWaveform(char);
signals:
void contactLost(bool);
private:
int id;
bool isConnected;
int baselineFrequency;
int alpha[60];
int beta[60];
int theta[60];
int delta[60];
int calcNewBaseline(int, int);
void generateWaveForm();
};
#endif // EEGSITE_H