BioSignalPi  v2
Classes | Enumerations | Enumerator | Functions
Device-Facade

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...
 

Enumerations

enum  EcgCapture::OperatingMode { EcgCapture::ecgCapture, EcgCapture::testToneSquare, EcgCapture::testToneLowFreqSin, EcgCapture::testToneHighFreqSin }
 
enum  EcgCapture::Frequency { EcgCapture::lowFreq, EcgCapture::midFreq, EcgCapture::highFreq }
 
enum  EcgCapture::leadFormat { EcgCapture::digital, EcgCapture::electrode }
 

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...
 

Detailed Description

Module responsible for all connection to the BioMedical Devices used.

Author
Martin

Enumeration Type Documentation

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.

Function Documentation

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.

Parameters
[in]OperatingModeenum stating which operating mode to use
[in]Frequencyenum stating the which frequency to sample in

Definition at line 26 of file ecgcapture.cpp.

Here is the caller graph for this function:

const QVector< double > EcgCapture::readFrame ( )

Reads a single frame.

Returns
QVector<double> singleFrame

Definition at line 400 of file ecgcapture.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void EcgCapture::start ( )

Start capturing frames from the ADAS1000.

Start sending frames.

Definition at line 353 of file ecgcapture.cpp.

Here is the caller graph for this function:

void EcgCapture::stop ( )

stop capture

Todo:
Implement

Definition at line 362 of file ecgcapture.cpp.

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.

Deprecated:
Currently not in use.

Definition at line 257 of file ecgcapture.cpp.