areaDetector  3-14
EPICS areaDetector framework
Public Member Functions | Public Attributes | List of all members
mpxConnection Class Reference

#include <mpxConnection.h>

Public Member Functions

 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...
 

Public Attributes

char toLabview [MPX_MAXLINE]
 
char fromLabview [MPX_MAXLINE]
 
char fromLabviewHeader [MPX_MAXLINE]
 
char fromLabviewBody [MPX_MAXLINE]
 
char fromLabviewValue [MPX_MAXLINE]
 
int fromLabviewError
 

Constructor & Destructor Documentation

◆ mpxConnection()

mpxConnection::mpxConnection ( asynUser *  parentUser,
asynUser *  tcpUser,
merlinDetector parentObj 
)

Member Function Documentation

◆ 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()

merlinDataHeader mpxConnection::parseDataHeader ( const char *  header)

◆ parseMqDataFrame()

void mpxConnection::parseMqDataFrame ( NDAttributeList pAttr,
const char *  header,
size_t *  xsize,
size_t *  ysize,
int *  pixelDepth,
int *  offset,
int *  profileSelect 
)

Member Data Documentation

◆ fromLabview

char mpxConnection::fromLabview[MPX_MAXLINE]

◆ fromLabviewBody

char mpxConnection::fromLabviewBody[MPX_MAXLINE]

◆ fromLabviewError

int mpxConnection::fromLabviewError

◆ fromLabviewHeader

char mpxConnection::fromLabviewHeader[MPX_MAXLINE]

◆ fromLabviewValue

char mpxConnection::fromLabviewValue[MPX_MAXLINE]

◆ toLabview

char mpxConnection::toLabview[MPX_MAXLINE]

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