microCOR Lab SDK  1.7
 All Classes Files Functions Enumerations Enumerator Modules
microCORLab Class Reference

microCORLab device management class More...

#include <microCORLab.h>

Inheritance diagram for microCORLab:

Public Types

enum  ReferenceMode { DefaultReferenceMode = 0, EkgReferenceMode, ReferenceModeMin = DefaultReferenceMode, ReferenceModeMax = EkgReferenceMode }
 Hardware reference mode. More...
 

Public Slots

bool start ()
 starts ADC sampling and data acquiring. More...
 
void stop ()
 stops ADC sampling and data acquiring, if started. More...
 

Signals

void dataAcquired (double *d, size_t sz, bool trigger)
 Acquired sample data. More...
 
void dataInterrupted ()
 Data Interrupted for some reason.
 
void batteryLevelChanged (double)
 Battery Level Change.
 
void firmwareUpdateProgressChanged (double)
 
void terminalTypeChanged (qint8)
 terminalTypeChanged
 

Public Member Functions

 microCORLab (QObject *parent=0)
 
const UsbDevStateusbDevState () const
 USB Device State.
 
const GatewayStategatewayState () const
 Gateway Connection State.
 
const TerminalStateterminalState () const
 Terminal Connection State.
 
const TerminalRunningStateterminalRunningState () const
 Terminal Running State.
 
const BatteryStatebatteryState () const
 Battery State.
 
const SamplingStatesamplingState () const
 Sampling State.
 
bool setSerialNo (const QString &serialNo)
 gives serial number to gateway to connect a different terminal than default. More...
 
const QString & serialNo () const
 current terminal serial number to connect More...
 
void setTriggerEnabled (bool enabled)
 Enables trigger. Works only supported hardware. More...
 
bool isTriggerEnabled () const
 Cheks if trigger enabled. More...
 
void setReferenceMode (ReferenceMode rm)
 Sets reference mode. See microCORLab::ReferenceMode. More...
 
ReferenceMode referenceMode () const
 
double getBatteryValue () const
 
bool setResolution (uchar res)
 sets ADC resolution. More...
 
uchar resolution () const
 gets resolution. More...
 
void setAutoShutdown (int minutes)
 sets auto shutdown while data acquiring. More...
 
int autoShutdown () const
 gets auto shutdown time as minutes.
 
void shutdownDevices (bool closeTerm)
 Shutdown gateway and terminal. More...
 
bool setFirmware (const QString &fileName)
 Sets firmware file to update. Give empty to cancel. More...
 
const QString & firmware () const
 firmware file. See microCORLab::setFirmware(). More...
 
double firmwareUpdateProgress () const
 firmwareUpdateProgress More...
 
QString firmwareVersion () const
 Terminal firmware version. More...
 
QString bootloaderVersion () const
 Terminal bootloader version. More...
 
quint8 terminalType () const
 Terminal type number. More...
 
Loggerlogger ()
 returns internal logger. More...
 

Static Public Member Functions

static QString referenceMode (int id)
 
static QString terminalType (quint8 dt)
 
static bool isNaN (double value)
 Not-A-Number helper function. More...
 

Detailed Description

microCORLab device management class

Construct an object. Call microCORLab::start() after getting the TerminalRunningState::Firmware info and process data that coming from microCORLab::dataAcquired().

See example project for usage : mainwindow.h mainwindow.cpp

Examples:
mainwindow.h.

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