MNE-CPP  beta 1.0
Public Member Functions | List of all members
TMSIPlugin::TMSIDriver Class Reference

The TMSIDriver class provides real time data acquisition of EEG data with a TMSi Refa device. More...

#include <tmsidriver.h>

Public Member Functions

 TMSIDriver (TMSIProducer *pTMSIProducer)
 
 ~TMSIDriver ()
 
bool getSampleMatrixValue (MatrixXf &sampleMatrix)
 
bool initDevice (int iNumberOfChannels, int iSamplingFrequency, int iSamplesPerBlock, bool bUseChExponent, bool bUseUnitGain, bool bUseUnitOffset, bool bWriteDriverDebugToFile, QString sOutpuFilePath, bool bUseCommonAverage, bool bMeasureImpedance)
 
bool uninitDevice ()
 

Detailed Description

The TMSIDriver class provides real time data acquisition of EEG data with a TMSi Refa device.

TMSIDriver

Definition at line 272 of file tmsidriver.h.

Constructor & Destructor Documentation

TMSIDriver::TMSIDriver ( TMSIProducer pTMSIProducer)

Constructs a TMSIDriver.

Parameters
[in]pTMSIProducera pointer to the corresponding TMSI Producer class.

Definition at line 59 of file tmsidriver.cpp.

TMSIDriver::~TMSIDriver ( )

Destroys the TMSIDriver.

Definition at line 127 of file tmsidriver.cpp.

Member Function Documentation

bool TMSIDriver::getSampleMatrixValue ( MatrixXf &  sampleMatrix)

Get sample from the device in form of a mtrix.

Parameters
[in]MatrixXfthe block sample values in form of a matrix.
[out]boolreturns true if sample was successfully written to the input variable, false otherwise.

Definition at line 365 of file tmsidriver.cpp.

bool TMSIDriver::initDevice ( int  iNumberOfChannels,
int  iSamplingFrequency,
int  iSamplesPerBlock,
bool  bUseChExponent,
bool  bUseUnitGain,
bool  bUseUnitOffset,
bool  bWriteDriverDebugToFile,
QString  sOutpuFilePath,
bool  bUseCommonAverage,
bool  bMeasureImpedance 
)

Initialise device.

Parameters
[in]iNumberOfChannelsnumber of channels specified by the user.
[in]iSamplingFrequencysampling frequency specified by the user.
[in]iSamplesPerBlocksamples per block specified by the user.
[in]bUseChExponentFlag for using the channels exponent. Defined by the user via the GUI.
[in]bUseUnitGainFlag for using the channels unit gain. Defined by the user via the GUI.
[in]bUseUnitOffsetFlag for using the channels unit offset. Defined by the user via the GUI.
[in]bWriteDriverDebugToFileFlag for writing driver debug information to a file. Defined by the user via the GUI.
[in]sOutpuFilePathHolds the path for the output file. Defined by the user via the GUI.
[out]boolreturns true if device was successfully initialised, false otherwise.
[in]bUseCommonAverageFlag for using common average when recording EEG data. Defined by the user via the GUI.
[in]bMeasureImpedanceFlag for measuring impedances.

Definition at line 135 of file tmsidriver.cpp.

bool TMSIDriver::uninitDevice ( )

Uninitialise device.

Parameters
[out]boolreturns true if device was successfully uninitialised, false otherwise.

Definition at line 312 of file tmsidriver.cpp.


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