The BabyMEGClient class provides a TCP/IP communication between Qt and Labview.
More...
#include <babymegclient.h>
|
void | DataAcq () |
|
void | error (int socketError, const QString &message) |
|
void | DataAcq () |
|
void | error (int socketError, const QString &message) |
|
|
QString | name |
|
int | port |
|
bool | SocketIsConnected |
|
bool | SkipLoop |
|
bool | DataAcqStartFlag |
|
BabyMEGInfo * | myBabyMEGInfo |
|
QByteArray | buffer |
|
int | numBlock |
|
bool | DataACK |
|
QSharedPointer< BabyMEGInfo > | myBabyMEGInfo |
|
The BabyMEGClient class provides a TCP/IP communication between Qt and Labview.
DECLARE CLASS BabyMEGClient
Definition at line 70 of file babymegclient.h.
BabyMEGClient::BabyMEGClient |
( |
int |
myPort, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
BabyMEGClient::BabyMEGClient |
( |
int |
myPort, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
void BabyMEGClient::ConnectToBabyMEG |
( |
| ) |
|
|
slot |
void BabyMEGClient::ConnectToBabyMEG |
( |
| ) |
|
|
slot |
Connect to BabyMEG server
- Parameters
-
void BabyMEGClient::DisConnectBabyMEG |
( |
| ) |
|
|
slot |
void BabyMEGClient::DisConnectBabyMEG |
( |
| ) |
|
|
slot |
DisConnect to BabyMEG server
- Parameters
-
void BabyMEGClient::DispatchDataPackage |
( |
int |
tmp | ) |
|
Dispatch the data package
- Parameters
-
void BabyMEGClient::DispatchDataPackage |
( |
int |
tmp | ) |
|
void BabyMEGClient::handleBuffer |
( |
| ) |
|
Handle the data buffer connecting to the TCP socket
- Parameters
-
void BabyMEGClient::handleBuffer |
( |
| ) |
|
Handle the data buffer connecting to the TCP socket
- Parameters
-
Definition at line 308 of file babymegclient.cpp.
void BabyMEGClient::HexDisplay |
( |
double |
a | ) |
|
void BabyMEGClient::HexDisplay |
( |
double |
a | ) |
|
double BabyMEGClient::MGH_LM_Byte2Double |
( |
QByteArray |
InByte | ) |
|
Convert one 8-byte array to a double
- Parameters
-
[in] | InByte | – Byte array |
[out] | <double>. | |
double BabyMEGClient::MGH_LM_Byte2Double |
( |
QByteArray |
InByte | ) |
|
Convert one 8-byte array to a double
- Parameters
-
[in] | InByte | – Byte array |
[out] | <double>. | |
Definition at line 153 of file babymegclient.cpp.
int BabyMEGClient::MGH_LM_Byte2Int |
( |
QByteArray |
InByte | ) |
|
Convert a 4-byte array to an integer
- Parameters
-
[in] | InByte | – Byte array |
[out] | <int>. | |
int BabyMEGClient::MGH_LM_Byte2Int |
( |
QByteArray |
InByte | ) |
|
Convert a 4-byte array to an integer
- Parameters
-
[in] | InByte | – Byte array |
[out] | <int>. | |
Definition at line 119 of file babymegclient.cpp.
QByteArray BabyMEGClient::MGH_LM_Int2Byte |
( |
int |
a | ) |
|
Convert an integer (4 bytes) to a 4-byte array
- Parameters
-
[in] | a | – <int>. |
[out] | Byte | array |
QByteArray BabyMEGClient::MGH_LM_Int2Byte |
( |
int |
a | ) |
|
Convert an integer (4 bytes) to a 4-byte array
- Parameters
-
[in] | a | – <int>. |
[out] | Byte | array |
Definition at line 136 of file babymegclient.cpp.
void BabyMEGClient::ReadNextBlock |
( |
int |
tmp | ) |
|
Read next data block
- Parameters
-
void BabyMEGClient::ReadNextBlock |
( |
int |
tmp | ) |
|
void BabyMEGClient::ReadToBuffer |
( |
| ) |
|
|
slot |
void BabyMEGClient::ReadToBuffer |
( |
| ) |
|
|
slot |
Read data from socket to a buffer
- Parameters
-
void BabyMEGClient::SendCommand |
( |
QString |
s | ) |
|
Send command with command format as string
- Parameters
-
void BabyMEGClient::SendCommand |
( |
QString |
s | ) |
|
Send command with command format as string
- Parameters
-
Definition at line 474 of file babymegclient.cpp.
void BabyMEGClient::SendCommandToBabyMEG |
( |
| ) |
|
|
slot |
void BabyMEGClient::SendCommandToBabyMEG |
( |
| ) |
|
|
slot |
Send Command to BabyMEG server
- Parameters
-
void BabyMEGClient::SendCommandToBabyMEGShortConnection |
( |
QByteArray |
s | ) |
|
|
slot |
Send Command to BabyMEG command server with short sync connection
- Parameters
-
[in] | String | s - the string will be sent to server. |
Definition at line 231 of file babymegclient.cpp.
void BabyMEGClient::SendCommandToBabyMEGShortConnection |
( |
QByteArray |
s | ) |
|
|
slot |
Send Command to BabyMEG command server with short sync connection
- Parameters
-
[in] | String | s - the string will be sent to server. |
void BabyMEGClient::SetInfo |
( |
QSharedPointer< BabyMEGInfo > |
pInfo | ) |
|
Set Head Info
- Parameters
-
[in] | pInfo | – struct of header information |
Definition at line 100 of file babymegclient.cpp.
Set Head Info
- Parameters
-
[in] | pInfo | – struct of header information |
Definition at line 94 of file babymegclient.cpp.
The documentation for this class was generated from the following files:
- D:/Users/Christoph/GitHub/mne-cpp/applications/mne_rt_server/connectors/BabyMEG/babymegclient.h
- D:/Users/Christoph/GitHub/mne-cpp/applications/mne_rt_server/connectors/BabyMEG/babymegclient.cpp