#include <asynPortDriver.h>
| Public Member Functions | |
| paramList (int nVals, asynStandardInterfaces *pasynInterfaces) | |
| Constructor for paramList class. | |
| ~paramList () | |
| Destructor for paramList class; frees resources allocated in constructor. | |
| asynStatus | createParam (const char *name, asynParamType type, int *index) | 
| Adds a new parameter to the parameter library. | |
| asynStatus | findParam (const char *name, int *index) | 
| Finds a parameter in the parameter library. | |
| asynStatus | getName (int index, const char **name) | 
| Returns the name of a parameter from the parameter library. | |
| asynStatus | setInteger (int index, int value) | 
| Sets the value for an integer in the parameter library. | |
| asynStatus | setUInt32 (int index, epicsUInt32 value, epicsUInt32 mask) | 
| Sets the value for an integer in the parameter library. | |
| asynStatus | setDouble (int index, double value) | 
| Sets the value for a double in the parameter library. | |
| asynStatus | setString (int index, const char *string) | 
| Sets the value for a string in the parameter library. | |
| asynStatus | getInteger (int index, int *value) | 
| Returns the value for an integer from the parameter library. | |
| asynStatus | getUInt32 (int index, epicsUInt32 *value, epicsUInt32 mask) | 
| Returns the value for an integer from the parameter library. | |
| asynStatus | getDouble (int index, double *value) | 
| Returns the value for a double from the parameter library. | |
| asynStatus | getString (int index, int maxChars, char *value) | 
| Returns the value for a string from the parameter library. | |
| asynStatus | setUInt32Interrupt (int index, epicsUInt32 mask, interruptReason reason) | 
| Sets the value of the UInt32Interrupt in the parameter library. | |
| asynStatus | clearUInt32Interrupt (int index, epicsUInt32 mask) | 
| Clears the UInt32Interrupt in the parameter library. | |
| asynStatus | getUInt32Interrupt (int index, epicsUInt32 *mask, interruptReason reason) | 
| Returns the UInt32Interrupt from the parameter library. | |
| asynStatus | callCallbacks (int addr) | 
| Calls the registered asyn callback functions for all clients for any parameters that have changed since the last time this function was called. | |
| asynStatus | callCallbacks () | 
| void | report (FILE *fp, int details) | 
| Reports on status of the paramList. | |
The parameter class supports 3 types of parameters: int, double and dynamic-length strings.
| paramList::paramList | ( | int | nVals, | |
| asynStandardInterfaces * | pasynInterfaces | |||
| ) | 
Constructor for paramList class.
| [in] | nVals | Number of parameters in the list. | 
| [in] | pasynInterfaces | Pointer to asynStandardInterfaces structure, used for callbacks | 
| paramList::~paramList | ( | ) | 
Destructor for paramList class; frees resources allocated in constructor.
| asynStatus paramList::callCallbacks | ( | ) | 
| asynStatus paramList::callCallbacks | ( | int | addr | ) | 
Calls the registered asyn callback functions for all clients for any parameters that have changed since the last time this function was called.
| [in] | addr | A client will be called if addr matches the asyn address registered for that client. | 
| asynStatus paramList::clearUInt32Interrupt | ( | int | index, | |
| epicsUInt32 | mask | |||
| ) | 
Clears the UInt32Interrupt in the parameter library.
| [in] | index | The parameter number | 
| [in] | mask | The interrupt mask. | 
| asynStatus paramList::createParam | ( | const char * | name, | |
| asynParamType | type, | |||
| int * | index | |||
| ) | 
Adds a new parameter to the parameter library.
| [in] | name | The name of this parameter | 
| [in] | type | The type of this parameter | 
| [out] | index | The parameter number | 
| asynStatus paramList::findParam | ( | const char * | name, | |
| int * | index | |||
| ) | 
Finds a parameter in the parameter library.
| [in] | name | The name of this parameter | 
| [out] | index | The parameter number | 
| asynStatus paramList::getDouble | ( | int | index, | |
| double * | value | |||
| ) | 
Returns the value for a double from the parameter library.
| [in] | index | The parameter number | 
| [out] | value | Address of value to get. | 
| asynStatus paramList::getInteger | ( | int | index, | |
| int * | value | |||
| ) | 
Returns the value for an integer from the parameter library.
| [in] | index | The parameter number | 
| [out] | value | Address of value to get. | 
| asynStatus paramList::getName | ( | int | index, | |
| const char ** | value | |||
| ) | 
Returns the name of a parameter from the parameter library.
| [in] | index | The parameter number | 
| [out] | value | Address of pointer that will contain name string pointer. | 
| asynStatus paramList::getString | ( | int | index, | |
| int | maxChars, | |||
| char * | value | |||
| ) | 
Returns the value for a string from the parameter library.
| [in] | index | The parameter number | 
| [in] | maxChars | Maximum number of characters to return. | 
| [out] | value | Address of value to get. | 
| asynStatus paramList::getUInt32 | ( | int | index, | |
| epicsUInt32 * | value, | |||
| epicsUInt32 | mask | |||
| ) | 
Returns the value for an integer from the parameter library.
| [in] | index | The parameter number | 
| [out] | value | Address of value to get. | 
| [in] | mask | The mask to use when getting the value. | 
| asynStatus paramList::getUInt32Interrupt | ( | int | index, | |
| epicsUInt32 * | mask, | |||
| interruptReason | reason | |||
| ) | 
Returns the UInt32Interrupt from the parameter library.
| [in] | index | The parameter number | 
| [out] | mask | The address of the interrupt mask to return. | 
| [in] | reason | The interrupt reason. | 
| void paramList::report | ( | FILE * | fp, | |
| int | details | |||
| ) | 
Reports on status of the paramList.
| [in] | fp | The file pointer on which report information will be written | 
| [in] | details | The level of report detail desired. Prints the number of parameters in the list, and if details >1 also prints the index, data type, name, and value of each parameter. | 
| asynStatus paramList::setDouble | ( | int | index, | |
| double | value | |||
| ) | 
Sets the value for a double in the parameter library.
| [in] | index | The parameter number | 
| [in] | value | Value to set. | 
| asynStatus paramList::setInteger | ( | int | index, | |
| int | value | |||
| ) | 
Sets the value for an integer in the parameter library.
| [in] | index | The parameter number | 
| [in] | value | Value to set. | 
| asynStatus paramList::setString | ( | int | index, | |
| const char * | value | |||
| ) | 
Sets the value for a string in the parameter library.
| [in] | index | The parameter number | 
| [out] | value | Address of value to set. | 
| asynStatus paramList::setUInt32 | ( | int | index, | |
| epicsUInt32 | value, | |||
| epicsUInt32 | mask | |||
| ) | 
Sets the value for an integer in the parameter library.
| [in] | index | The parameter number | 
| [in] | value | Value to set. | 
| [in] | mask | Mask to use when setting the value. | 
| asynStatus paramList::setUInt32Interrupt | ( | int | index, | |
| epicsUInt32 | mask, | |||
| interruptReason | reason | |||
| ) | 
Sets the value of the UInt32Interrupt in the parameter library.
| [in] | index | The parameter number | 
| [in] | mask | The interrupt mask. | 
| [in] | reason | The interrupt reason. | 
 1.5.7.1
 1.5.7.1