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

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

#include <asynPortClient.h>

Inheritance diagram for asynOptionClient:
asynPortClient

Public Member Functions

 asynOptionClient (const char *portName, int addr, const char *drvInfo, double timeout=DEFAULT_TIMEOUT)
 Constructor for asynOption class. More...
 
virtual ~asynOptionClient ()
 Destructor for asynOption class. More...
 
virtual asynStatus getOption (const char *key, char *value, int maxChars)
 Get an option from the port driver. More...
 
virtual asynStatus setOption (const char *key, const char *value)
 Sets an option in the port driver. 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 asynOption interface.

Constructor & Destructor Documentation

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

Constructor for asynOption 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 asynOptionClient::~asynOptionClient ( )
inlinevirtual

Destructor for asynOption class.

Disconnects from port, frees resources.

Member Function Documentation

virtual asynStatus asynOptionClient::getOption ( const char *  key,
char *  value,
int  maxChars 
)
inlinevirtual

Get an option from the port driver.

Parameters
[in]keyThe key to read from the port driver
[out]valueThe value to read from the port driver
[in]maxCharsThe size of value
virtual asynStatus asynOptionClient::setOption ( const char *  key,
const char *  value 
)
inlinevirtual

Sets an option in the port driver.

Parameters
[in]keyThe key to set in the port driver
[out]valueThe value to set in the port driver

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