BioSignalPi
v2
|
Module responsible for all connection to the BioMedical Devices used. More...
Classes | |
class | DeviceInterface |
Abstract interface for all devices. More... | |
class | DeviceManager |
Handles which device to connect through the DeviceInterface. More... | |
class | EcgCapture |
Responsible for communication with ADAS. More... | |
class | EcgMock |
Mock version of an device The EcgMock device will return sine and cosine functions as data. More... | |
class | SamplingThread |
DeviceInterface Class responsible for sampling ECG. More... | |
Functions | |
EcgCapture::EcgCapture () | |
void | EcgCapture::init (OperatingMode, Frequency) |
Initiate the device by configuring the registers depending on operating mode and sampling frequency. More... | |
void | EcgCapture::start () |
Start capturing frames from the ADAS1000. More... | |
void | EcgCapture::stop () |
stop capture More... | |
void | EcgCapture::testDevice () |
Method used to test if the device is working properly. More... | |
const QVector< double > | EcgCapture::readFrame () |
Reads a single frame. More... | |
Module responsible for all connection to the BioMedical Devices used.
Enumerator | |
---|---|
lowFreq | |
midFreq | |
highFreq |
Definition at line 37 of file ecgcapture.h.
Enumerator | |
---|---|
digital | |
electrode |
Definition at line 43 of file ecgcapture.h.
Enumerator | |
---|---|
ecgCapture | |
testToneSquare | |
testToneLowFreqSin | |
testToneHighFreqSin |
Definition at line 30 of file ecgcapture.h.
EcgCapture::EcgCapture | ( | ) |
Definition at line 15 of file ecgcapture.cpp.
void EcgCapture::init | ( | OperatingMode | mode, |
Frequency | freq | ||
) |
Initiate the device by configuring the registers depending on operating mode and sampling frequency.
[in] | OperatingMode | enum stating which operating mode to use |
[in] | Frequency | enum stating the which frequency to sample in |
Definition at line 26 of file ecgcapture.cpp.
const QVector< double > EcgCapture::readFrame | ( | ) |
Reads a single frame.
Definition at line 400 of file ecgcapture.cpp.
void EcgCapture::start | ( | ) |
Start capturing frames from the ADAS1000.
Start sending frames.
Definition at line 353 of file ecgcapture.cpp.
void EcgCapture::stop | ( | ) |
void EcgCapture::testDevice | ( | ) |
Method used to test if the device is working properly.
It works by writing to a register and then reading the same register.
Definition at line 257 of file ecgcapture.cpp.