BioSignalPi  v2
Public Types | Public Member Functions | List of all members
EcgCapture Class Reference

Responsible for communication with ADAS. More...

#include <ecgcapture.h>

Inheritance diagram for EcgCapture:
Inheritance graph
[legend]
Collaboration diagram for EcgCapture:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 EcgCapture ()
 
void init (OperatingMode, Frequency)
 Initiate the device by configuring the registers depending on operating mode and sampling frequency. More...
 
void start ()
 Start capturing frames from the ADAS1000. More...
 
void stop ()
 stop capture More...
 
void testDevice ()
 Method used to test if the device is working properly. More...
 
const QVector< double > readFrame ()
 Reads a single frame. More...
 

Detailed Description

Responsible for communication with ADAS.

EcgCapture is the main class responsible for communication with the ADAS1000. It uses the BCM2835.h library for access to the GPIO pins of RPI

Todo:
Move all function descriptions from the .cpp file to the headerfile (.h file)
Author
Jonathan
Martin
Bug:
Crashes with a QVector index out of range. Problem caused by the readFrame function when it dosent provide a array with at least 5 elements

Definition at line 24 of file ecgcapture.h.


The documentation for this class was generated from the following files: