asyn 4-23
|
Structure for storing parameter value in parameter library. More...
#include <paramVal.h>
Public Member Functions | |
paramVal (const char *name) | |
paramVal (const char *name, asynParamType type) | |
bool | isDefined () |
void | setDefined (bool defined) |
bool | hasValueChanged () |
void | setValueChanged () |
void | resetValueChanged () |
void | setStatus (asynStatus status) |
asynStatus | getStatus () |
char * | getName () |
bool | nameEquals (const char *name) |
void | setInteger (epicsInt32 value) |
Sets the value for an integer. | |
epicsInt32 | getInteger () |
Gets the value for an integer in the parameter library. | |
void | setUInt32 (epicsUInt32 value, epicsUInt32 valueMask, epicsUInt32 interruptMask) |
Sets the value for a UInt32 in the parameter library. | |
epicsUInt32 | getUInt32 (epicsUInt32 valueMask) |
Gets the value for a UInt32 in the parameter library. | |
void | setDouble (epicsFloat64 value) |
Sets the value for a double in the parameter library. | |
epicsFloat64 | getDouble () |
Gets the value for an double in the parameter library. | |
void | setString (const char *value) |
Sets the value for a string in the parameter library. | |
char * | getString () |
Gets the value for a string in the parameter library. | |
void | report (int id, FILE *fp, int details) |
const char * | getTypeName () |
Public Attributes | |
asynParamType | type |
Parameter data type. | |
epicsUInt32 | uInt32RisingMask |
epicsUInt32 | uInt32FallingMask |
epicsUInt32 | uInt32CallbackMask |
epicsInt32 | ival |
epicsUInt32 | uival |
epicsFloat64 | dval |
char * | sval |
epicsInt8 * | pi8 |
epicsInt16 * | pi16 |
epicsInt32 * | pi32 |
epicsFloat32 * | pf32 |
epicsFloat64 * | pf64 |
void * | pgp |
Static Public Attributes | |
static const char * | typeNames [] |
Protected Attributes | |
asynStatus | status_ |
bool | valueDefined |
bool | valueChanged |
char * | name |
Parameter name. | |
union { | |
epicsInt32 ival | |
epicsUInt32 uival | |
epicsFloat64 dval | |
char * sval | |
epicsInt8 * pi8 | |
epicsInt16 * pi16 | |
epicsInt32 * pi32 | |
epicsFloat32 * pf32 | |
epicsFloat64 * pf64 | |
void * pgp | |
} | data |
Structure for storing parameter value in parameter library.
paramVal::paramVal | ( | const char * | name | ) |
paramVal::paramVal | ( | const char * | name, |
asynParamType | type | ||
) |
double paramVal::getDouble | ( | ) |
Gets the value for an double in the parameter library.
ParamValWrongType | if type is not asynParamFloat64 |
paramValNotDefined | if the value is not defined |
int paramVal::getInteger | ( | ) |
Gets the value for an integer in the parameter library.
ParamValWrongType | if type is not asynParamInt32 |
paramValNotDefined | if the value is not defined |
char * paramVal::getName | ( | ) |
asynStatus paramVal::getStatus | ( | ) |
char * paramVal::getString | ( | ) |
Gets the value for a string in the parameter library.
ParamValWrongType | if type is not asynParamOctet |
paramValNotDefined | if the value is not defined |
const char * paramVal::getTypeName | ( | ) |
epicsUInt32 paramVal::getUInt32 | ( | epicsUInt32 | valueMask | ) |
Gets the value for a UInt32 in the parameter library.
[in] | valueMask | Mask to use when getting the value. |
bool paramVal::hasValueChanged | ( | ) |
bool paramVal::isDefined | ( | ) |
bool paramVal::nameEquals | ( | const char * | name | ) |
void paramVal::report | ( | int | id, |
FILE * | fp, | ||
int | details | ||
) |
void paramVal::resetValueChanged | ( | ) |
void paramVal::setDefined | ( | bool | defined | ) |
void paramVal::setDouble | ( | epicsFloat64 | value | ) |
Sets the value for a double in the parameter library.
[in] | value | Value to set. |
void paramVal::setInteger | ( | epicsInt32 | value | ) |
Sets the value for an integer.
[in] | value | Value to set. |
ParamValWrongType | if type is not asynParamInt32 |
void paramVal::setStatus | ( | asynStatus | status | ) |
void paramVal::setString | ( | const char * | value | ) |
Sets the value for a string in the parameter library.
[out] | value | Address of value to set. |
void paramVal::setUInt32 | ( | epicsUInt32 | value, |
epicsUInt32 | valueMask, | ||
epicsUInt32 | interruptMask | ||
) |
Sets the value for a UInt32 in the parameter library.
[in] | value | Value to set. |
[in] | valueMask | Mask to use when setting the value. |
[in] | interruptMask | Mask of bits that have changed even if the value has not changed |
void paramVal::setValueChanged | ( | ) |
union { ... } paramVal::data [protected] |
epicsFloat64 paramVal::dval |
epicsInt32 paramVal::ival |
char* paramVal::name [protected] |
Parameter name.
epicsFloat32* paramVal::pf32 |
epicsFloat64* paramVal::pf64 |
void* paramVal::pgp |
epicsInt16* paramVal::pi16 |
epicsInt32* paramVal::pi32 |
epicsInt8* paramVal::pi8 |
asynStatus paramVal::status_ [protected] |
char* paramVal::sval |
Parameter data type.
const char * paramVal::typeNames [static] |
{ "asynParamTypeUndefined", "asynParamInt32", "asynParamUInt32Digital", "asynParamFloat64", "asynParamOctet", "asynParamInt8Array", "asynParamInt16Array", "asynParamInt32Array", "asynParamFloat32Array", "asynParamFloat64Array", "asynParamGenericPointer" }
epicsUInt32 paramVal::uInt32CallbackMask |
epicsUInt32 paramVal::uInt32FallingMask |
epicsUInt32 paramVal::uInt32RisingMask |
epicsUInt32 paramVal::uival |
bool paramVal::valueChanged [protected] |
bool paramVal::valueDefined [protected] |