#include <mpxConnection.h>
|
| mpxConnection (asynUser *parentUser, asynUser *tcpUser, merlinDetector *parentObj) |
|
asynStatus | mpxGet (char *valueId, double timeout) |
| Get the specified named value from Labview. More...
|
|
asynStatus | mpxSet (char *valueId, char *value, double timeout) |
|
asynStatus | mpxCommand (char *commandId, double timeout) |
|
asynStatus | mpxWrite (double timeout) |
| Send a request to labview. More...
|
|
asynStatus | mpxReadCmd (char *cmdType, char *cmdName, double timeout) |
| Reads in the MPX command header and body from labview verifies the header and places the body in this->fromLabviewBody for parsing by the caller. More...
|
|
asynStatus | mpxWriteRead (char *cmdType, char *cmdName, double timeout) |
|
asynStatus | mpxRead (asynUser *pasynUser, char *bodyBuf, int bufSize, int *bytesRead, double timeout) |
| Reads in a raw MPX frame from a pasynOctetSyncIO handle. More...
|
|
merlinDataHeader | parseDataHeader (const char *header) |
|
void | parseMqDataFrame (NDAttributeList *pAttr, const char *header, size_t *xsize, size_t *ysize, int *pixelDepth, int *offset, int *profileSelect) |
|
void | dumpData (char *sdata, int size) |
| memory dump of data for diagnostics More...
|
|
◆ mpxConnection()
mpxConnection::mpxConnection |
( |
asynUser * |
parentUser, |
|
|
asynUser * |
tcpUser, |
|
|
merlinDetector * |
parentObj |
|
) |
| |
◆ dumpData()
void mpxConnection::dumpData |
( |
char * |
sdata, |
|
|
int |
size |
|
) |
| |
memory dump of data for diagnostics
◆ mpxCommand()
asynStatus mpxConnection::mpxCommand |
( |
char * |
commandId, |
|
|
double |
timeout |
|
) |
| |
◆ mpxGet()
asynStatus mpxConnection::mpxGet |
( |
char * |
valueId, |
|
|
double |
timeout |
|
) |
| |
Get the specified named value from Labview.
◆ mpxRead()
asynStatus mpxConnection::mpxRead |
( |
asynUser * |
pasynUser, |
|
|
char * |
bodyBuf, |
|
|
int |
bufSize, |
|
|
int * |
bytesRead, |
|
|
double |
timeout |
|
) |
| |
Reads in a raw MPX frame from a pasynOctetSyncIO handle.
This function skips any leading data, looking for the pattern MPX,0000000000,
Where 0000000000 = the no. of bytes in body of the frame in decimal (inclusive of comma after 000000000) Reads the rest of the body into the passed bodyBuf
◆ mpxReadCmd()
asynStatus mpxConnection::mpxReadCmd |
( |
char * |
cmdType, |
|
|
char * |
cmdName, |
|
|
double |
timeout |
|
) |
| |
Reads in the MPX command header and body from labview verifies the header and places the body in this->fromLabviewBody for parsing by the caller.
◆ mpxSet()
asynStatus mpxConnection::mpxSet |
( |
char * |
valueId, |
|
|
char * |
value, |
|
|
double |
timeout |
|
) |
| |
◆ mpxWrite()
asynStatus mpxConnection::mpxWrite |
( |
double |
timeout | ) |
|
Send a request to labview.
◆ mpxWriteRead()
asynStatus mpxConnection::mpxWriteRead |
( |
char * |
cmdType, |
|
|
char * |
cmdName, |
|
|
double |
timeout |
|
) |
| |
◆ parseDataHeader()
◆ parseMqDataFrame()
void mpxConnection::parseMqDataFrame |
( |
NDAttributeList * |
pAttr, |
|
|
const char * |
header, |
|
|
size_t * |
xsize, |
|
|
size_t * |
ysize, |
|
|
int * |
pixelDepth, |
|
|
int * |
offset, |
|
|
int * |
profileSelect |
|
) |
| |
◆ fromLabview
◆ fromLabviewBody
◆ fromLabviewError
int mpxConnection::fromLabviewError |
◆ fromLabviewHeader
◆ fromLabviewValue
◆ toLabview
The documentation for this class was generated from the following files:
- /home/runner/work/areaDetector/areaDetector/ADMerlin/merlinApp/src/mpxConnection.h
- /home/runner/work/areaDetector/areaDetector/ADMerlin/merlinApp/src/mpxConnection.cpp