#include <asynPortDriver.h>
Public Member Functions | |
| paramList (int startVal, int nVals, asynStandardInterfaces *pasynInterfaces) | |
| Constructor for paramList class. | |
| ~paramList () | |
| Destructor for paramList class; frees resources allocated in constructor. | |
| asynStatus | setInteger (int index, int value) |
| 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 | 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 | 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 () |
| Prints the contents of paramList. | |
The parameter class supports 3 types of parameters: int, double and dynamic-length strings.
| paramList::paramList | ( | int | startVal, | |
| int | nVals, | |||
| asynStandardInterfaces * | pasynInterfaces | |||
| ) |
Constructor for paramList class.
| [in] | startVal | The first index number for this parameter list, typically 0. |
| [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::setInteger | ( | int | index, | |
| int | value | |||
| ) |
Sets the value for an integer in the parameter library.
| [in] | index | The parameter number |
| [out] | value | Value to set. |
| asynStatus paramList::setDouble | ( | int | index, | |
| double | value | |||
| ) |
Sets the value for a double in the parameter library.
| [in] | index | The parameter number |
| [out] | 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::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::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::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::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::callCallbacks | ( | ) |
| void paramList::report | ( | ) |
Prints the contents of paramList.
Prints the number of parameters in the list, and the data type, index and value of each parameter.
1.5.6