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

The EEGProducer class provides a EEG data producer for a given sampling rate. More...

#include <tmsiproducer.h>

Inheritance diagram for TMSIPlugin::TMSIProducer:

Public Member Functions

 TMSIProducer (TMSI *pTMSI)
 
 ~TMSIProducer ()
 
virtual void start (int iNumberOfChannels, int iSamplingFrequency, int iSamplesPerBlock, bool bUseChExponent, bool bUseUnitGain, bool bUseUnitOffset, bool bWriteDriverDebugToFile, QString sOutputFilePath, bool bUseCommonAverage, bool bMeasureImpedance)
 
void stop ()
 

Protected Member Functions

virtual void run ()
 

Detailed Description

The EEGProducer class provides a EEG data producer for a given sampling rate.

DECLARE CLASS EEGProducer

Definition at line 89 of file tmsiproducer.h.

Constructor & Destructor Documentation

TMSIProducer::TMSIProducer ( TMSI pTMSI)

Constructs a TMSIProducer.

Parameters
[in]pTMSIa pointer to the corresponding TMSI class.

Definition at line 62 of file tmsiproducer.cpp.

TMSIProducer::~TMSIProducer ( )

Destroys the TMSIProducer.

Definition at line 72 of file tmsiproducer.cpp.

Member Function Documentation

void TMSIProducer::run ( )
protectedvirtual

The starting point for the thread. After calling start(), the newly created thread calls this function. Returning from this method will end the execution of the thread. Pure virtual method inherited by QThread.

Definition at line 131 of file tmsiproducer.cpp.

void TMSIProducer::start ( int  iNumberOfChannels,
int  iSamplingFrequency,
int  iSamplesPerBlock,
bool  bUseChExponent,
bool  bUseUnitGain,
bool  bUseUnitOffset,
bool  bWriteDriverDebugToFile,
QString  sOutputFilePath,
bool  bUseCommonAverage,
bool  bMeasureImpedance 
)
virtual

Starts the TMSIProducer by starting the producer's thread and initialising the device.

Parameters
[in]iNumberOfChannelsThe number of channels defined by the user via the GUI.
[in]iSamplingFrequencyThe sampling frequency defined by the user via the GUI (in Hertz).
[in]iSamplesPerBlockThe samples per block defined by the user via the GUI.
[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]sOutpuFilePathHolds the path for the output file. Defined by the user via the GUI.
[in]bWriteDriverDebugToFileFlag for writing the received samples to a file. Defined by the user via the GUI.
[in]bUseUnitOffsetFlag for using the channels unit offset. Defined by the user via the GUI.
[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 80 of file tmsiproducer.cpp.

void TMSIProducer::stop ( )

Stops the TMSIProducer by stopping the producer's thread.

Definition at line 113 of file tmsiproducer.cpp.


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