ACQ2XX_API
Public Member Functions
SoapTransport Class Reference
Inheritance diagram for SoapTransport:
Transport

Public Member Functions

 SoapTransport (const char *id)
 Transport implementation connects to locate linux Kernel Device Driver.
virtual STATUS acqcmd (const char *command, char *response, int maxresponse)
 send an "acqcmd" (acquisition command or query) to the card.
virtual STATUS acq2sh (const char *command, char *response, int maxresponse)
 run a remote shell command or query.
virtual STATUS waitStateChange (int timeout, char *response, int maxresponse)
 block until remote state changes or timeout.
virtual STATUS readChannel (int channel, short *data, int nsamples, int start=0, int stride=1)
 read and output raw data for channel

Detailed Description

Definition at line 35 of file SoapTransport.cpp.


Constructor & Destructor Documentation

SoapTransport::SoapTransport ( const char *  id) [inline]

Transport implementation connects to locate linux Kernel Device Driver.

Definition at line 38 of file SoapTransport.cpp.


Member Function Documentation

virtual STATUS SoapTransport::acq2sh ( const char *  command,
char *  response,
int  maxresponse 
) [inline, virtual]

run a remote shell command or query.

Parameters:
command- the command (or query) to send
response- user buffer to collect response.
maxresponse- maximum response size required.
Parameters:
maxresponserun a remote shell command or query.
command- the command (or query) to send
response- user buffer to collect response.
maxresponse- maximum response size required.

Implements Transport.

Definition at line 54 of file SoapTransport.cpp.

References STATUS_WORKTODO.

virtual STATUS SoapTransport::acqcmd ( const char *  command,
char *  response,
int  maxresponse 
) [inline, virtual]

send an "acqcmd" (acquisition command or query) to the card.

Parameters:
command- the command (or query) to send
response- user buffer to collect response.
maxresponse- maximum response size required.
Parameters:
maxresponsesend an "acqcmd" (acquisition command or query) to the card.
command- the command (or query) to send
response- user buffer to collect response.
maxresponse- maximum response size required.

Implements Transport.

Definition at line 43 of file SoapTransport.cpp.

References STATUS_WORKTODO.

virtual STATUS SoapTransport::readChannel ( int  channel,
short *  data,
int  nsamples,
int  start = 0,
int  stride = 1 
) [inline, virtual]

read and output raw data for channel

Parameters:
channel- channel number 1..N
data- caller's buffer
nsamples- max samples to read
start- start sample in data set
stride- stride [subsample] value
Returns:
actual samples returned or STATUS_ERR
Parameters:
strideread and output raw data for channel
channel- channel number 1..N
data- caller's buffer
nsamples- max samples to read
start- start sample in data set
stride- stride [subsample] value
Returns:
actual samples returned or STATUS_ERR

Implements Transport.

Definition at line 72 of file SoapTransport.cpp.

References STATUS_WORKTODO.

virtual STATUS SoapTransport::waitStateChange ( int  timeout,
char *  response,
int  maxresponse 
) [inline, virtual]

block until remote state changes or timeout.

Parameters:
maxresponseblock until remote state changes or timeout.

Implements Transport.

Definition at line 65 of file SoapTransport.cpp.

References STATUS_WORKTODO.


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