BioSignalPi
v2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
ecgcapture.h
Go to the documentation of this file.
1
#ifndef ECGCAPTURE_H
2
#define ECGCAPTURE_H
3
4
#include <QObject>
5
#include <QVector>
6
#include <QPointF>
7
24
class
EcgCapture
: QObject
25
{
26
Q_OBJECT
27
28
public
:
29
30
enum
OperatingMode
{
31
ecgCapture
,
32
testToneSquare
,
33
testToneLowFreqSin
,
34
testToneHighFreqSin
35
};
36
37
enum
Frequency
{
38
lowFreq
,
39
midFreq
,
40
highFreq
41
};
42
43
enum
leadFormat
{
44
digital
,
45
electrode
46
};
47
48
EcgCapture
();
57
void
init
(
OperatingMode
,
Frequency
);
61
void
start
();
67
void
stop
();
68
void
testDevice
();
69
70
const
QVector<double>
readFrame
();
71
72
private
:
73
void
spiInit();
74
void
csEnable();
75
void
csDisable();
76
void
enableRegisterWrite();
77
bool
setReg(QByteArray);
78
double
ecgVoltageConversion(
int
ADCDecimal,
leadFormat
format);
79
double
respVoltageConversion(
int
);
80
81
int
test;
82
OperatingMode
mode;
83
leadFormat
leadMode;
84
QVector<QPointF> privateSamples;
85
};
88
#endif // ECGCAPTURE_H
EcgCapture::readFrame
const QVector< double > readFrame()
Reads a single frame.
Definition:
ecgcapture.cpp:400
EcgCapture::testDevice
void testDevice()
Method used to test if the device is working properly.
Definition:
ecgcapture.cpp:257
EcgCapture::digital
Definition:
ecgcapture.h:44
EcgCapture::EcgCapture
EcgCapture()
Definition:
ecgcapture.cpp:15
EcgCapture::electrode
Definition:
ecgcapture.h:45
EcgCapture
Responsible for communication with ADAS.
Definition:
ecgcapture.h:24
EcgCapture::leadFormat
leadFormat
Definition:
ecgcapture.h:43
EcgCapture::start
void start()
Start capturing frames from the ADAS1000.
Definition:
ecgcapture.cpp:353
EcgCapture::testToneLowFreqSin
Definition:
ecgcapture.h:33
EcgCapture::highFreq
Definition:
ecgcapture.h:40
EcgCapture::OperatingMode
OperatingMode
Definition:
ecgcapture.h:30
EcgCapture::init
void init(OperatingMode, Frequency)
Initiate the device by configuring the registers depending on operating mode and sampling frequency...
Definition:
ecgcapture.cpp:26
EcgCapture::testToneSquare
Definition:
ecgcapture.h:32
EcgCapture::Frequency
Frequency
Definition:
ecgcapture.h:37
EcgCapture::lowFreq
Definition:
ecgcapture.h:38
EcgCapture::stop
void stop()
stop capture
Definition:
ecgcapture.cpp:362
EcgCapture::testToneHighFreqSin
Definition:
ecgcapture.h:34
EcgCapture::ecgCapture
Definition:
ecgcapture.h:31
EcgCapture::midFreq
Definition:
ecgcapture.h:39
Generated on Mon Feb 8 2016 10:21:30 for BioSignalPi by
1.8.11