asyn  4-32
Public Member Functions | List of all members
asynInt16ArrayClient Class Reference

Class for asyn port clients to communicate on the asynInt16Array interface. More...

#include <asynPortClient.h>

Inheritance diagram for asynInt16ArrayClient:
asynPortClient

Public Member Functions

 asynInt16ArrayClient (const char *portName, int addr, const char *drvInfo, double timeout=DEFAULT_TIMEOUT)
 Constructor for asynInt16Array class. More...
 
virtual ~asynInt16ArrayClient ()
 Destructor for asynInt16Array class. More...
 
virtual asynStatus read (epicsInt16 *value, size_t nElements, size_t *nIn)
 Reads an epicsInt16 array from the port driver. More...
 
virtual asynStatus write (epicsInt16 *value, size_t nElements)
 Writes an epicsInt16 array to the port driver. More...
 
virtual asynStatus registerInterruptUser (interruptCallbackInt16Array pCallback)
 Registers an interruptCallbackInt16Array function that the driver will call when there is a new value. More...
 
- Public Member Functions inherited from asynPortClient
 asynPortClient (const char *portName, int addr, const char *asynInterfaceType, const char *drvInfo, double timeout)
 Constructor for asynPortClient class. More...
 
virtual ~asynPortClient ()
 Destructor for asynPortClient class Frees all allocated resources. More...
 
void setTimeout (double timeout)
 
void report (FILE *fp, int details)
 Reports the properties of this client. More...
 

Additional Inherited Members

- Protected Attributes inherited from asynPortClient
asynUser * pasynUser_
 
asynUser * pasynUserSyncIO_
 
asynInterface * pasynInterface_
 
double timeout_
 
char * portName_
 
int addr_
 
char * asynInterfaceType_
 
char * drvInfo_
 
void * drvPvt
 
void * interruptPvt_
 

Detailed Description

Class for asyn port clients to communicate on the asynInt16Array interface.

Constructor & Destructor Documentation

asynInt16ArrayClient::asynInt16ArrayClient ( const char *  portName,
int  addr,
const char *  drvInfo,
double  timeout = DEFAULT_TIMEOUT 
)
inline

Constructor for asynInt16Array class.

Parameters
[in]portNameThe name of the asyn port to connect to
[in]addrThe address on the asyn port to connect to
[in]drvInfoThe drvInfo string to identify which property of the port is being connected to
[in]timeoutThe default timeout for all communications between the client and the port driver
virtual asynInt16ArrayClient::~asynInt16ArrayClient ( )
inlinevirtual

Destructor for asynInt16Array class.

Disconnects from port, frees resources.

Member Function Documentation

virtual asynStatus asynInt16ArrayClient::read ( epicsInt16 *  value,
size_t  nElements,
size_t *  nIn 
)
inlinevirtual

Reads an epicsInt16 array from the port driver.

Parameters
[out]valueThe array to read from the port driver
[in]nElementsThe number of elements in the array
[out]nInThe number of array elements actual read
virtual asynStatus asynInt16ArrayClient::registerInterruptUser ( interruptCallbackInt16Array  pCallback)
inlinevirtual

Registers an interruptCallbackInt16Array function that the driver will call when there is a new value.

Parameters
[in]pCallbackThe address of the callback function
virtual asynStatus asynInt16ArrayClient::write ( epicsInt16 *  value,
size_t  nElements 
)
inlinevirtual

Writes an epicsInt16 array to the port driver.

Parameters
[in]valueThe array to write to the port driver
[in]nElementsThe number of elements in the array

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