asyn  4-39
Public Member Functions | List of all members
asynFloat64ArrayClient Class Reference

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

#include <asynPortClient.h>

Inheritance diagram for asynFloat64ArrayClient:
asynParamClient

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from asynParamClient
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 asynFloat64Array interface.

Constructor & Destructor Documentation

◆ asynFloat64ArrayClient() [1/2]

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

Constructor for asynFloat64Array 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

◆ asynFloat64ArrayClient() [2/2]

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

◆ ~asynFloat64ArrayClient()

virtual asynFloat64ArrayClient::~asynFloat64ArrayClient ( )
inlinevirtual

Destructor for asynFloat64Array class.

Disconnects from port, frees resources.

Member Function Documentation

◆ read()

virtual asynStatus asynFloat64ArrayClient::read ( epicsFloat64 *  value,
size_t  nElements,
size_t *  nIn 
)
inlinevirtual

Reads an epicsFloat64 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

◆ registerInterruptUser()

virtual asynStatus asynFloat64ArrayClient::registerInterruptUser ( interruptCallbackFloat64Array  pCallback,
void *  userPvt = 0 
)
inlinevirtual

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

Parameters
[in]pCallbackThe address of the callback function
[in]userPvtThe user-defined pointer to be passed to the callback function

◆ write()

virtual asynStatus asynFloat64ArrayClient::write ( epicsFloat64 *  value,
size_t  nElements 
)
inlinevirtual

Writes an epicsFloat64 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: