MNE-CPP
beta 1.0
|
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 () |
The TMSIDriver class provides real time data acquisition of EEG data with a TMSi Refa device.
Definition at line 272 of file tmsidriver.h.
TMSIDriver::TMSIDriver | ( | TMSIProducer * | pTMSIProducer | ) |
Constructs a TMSIDriver.
[in] | pTMSIProducer | a 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.
bool TMSIDriver::getSampleMatrixValue | ( | MatrixXf & | sampleMatrix | ) |
Get sample from the device in form of a mtrix.
[in] | MatrixXf | the block sample values in form of a matrix. |
[out] | bool | returns 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.
[in] | iNumberOfChannels | number of channels specified by the user. |
[in] | iSamplingFrequency | sampling frequency specified by the user. |
[in] | iSamplesPerBlock | samples per block specified by the user. |
[in] | bUseChExponent | Flag for using the channels exponent. Defined by the user via the GUI. |
[in] | bUseUnitGain | Flag for using the channels unit gain. Defined by the user via the GUI. |
[in] | bUseUnitOffset | Flag for using the channels unit offset. Defined by the user via the GUI. |
[in] | bWriteDriverDebugToFile | Flag for writing driver debug information to a file. Defined by the user via the GUI. |
[in] | sOutpuFilePath | Holds the path for the output file. Defined by the user via the GUI. |
[out] | bool | returns true if device was successfully initialised, false otherwise. |
[in] | bUseCommonAverage | Flag for using common average when recording EEG data. Defined by the user via the GUI. |
[in] | bMeasureImpedance | Flag for measuring impedances. |
Definition at line 135 of file tmsidriver.cpp.
bool TMSIDriver::uninitDevice | ( | ) |
Uninitialise device.
[out] | bool | returns true if device was successfully uninitialised, false otherwise. |
Definition at line 312 of file tmsidriver.cpp.