From e9e0eecd88ff6f165b5fb192c9f2fb46970e3e6a Mon Sep 17 00:00:00 2001 From: mp49 Date: Thu, 18 Jul 2013 19:55:05 +0000 Subject: [PATCH] asynMotorAxis: added support for setting axis specific strings in the parameter library. --- motorApp/MotorSrc/asynMotorAxis.cpp | 10 ++++++++++ motorApp/MotorSrc/asynMotorAxis.h | 1 + 2 files changed, 11 insertions(+) diff --git a/motorApp/MotorSrc/asynMotorAxis.cpp b/motorApp/MotorSrc/asynMotorAxis.cpp index f83bf204..eacf63ee 100644 --- a/motorApp/MotorSrc/asynMotorAxis.cpp +++ b/motorApp/MotorSrc/asynMotorAxis.cpp @@ -282,6 +282,16 @@ asynStatus asynMotorAxis::setDoubleParam(int function, double value) return pC_->setDoubleParam(axisNo_, function, value); } +/** + * Sets the value for a string for this axis in the parameter library. + * \param[in] function The function (parameter) number + * \param[in] value Value to set */ +asynStatus asynMotorAxis::setStringParam(int function, const char *value) +{ + // Call the base class method + return pC_->setStringParam(axisNo_, function, value); +} + /** Calls the callbacks for any parameters that have changed for this axis in the parameter library. diff --git a/motorApp/MotorSrc/asynMotorAxis.h b/motorApp/MotorSrc/asynMotorAxis.h index 4b22e85d..7cc2c62a 100644 --- a/motorApp/MotorSrc/asynMotorAxis.h +++ b/motorApp/MotorSrc/asynMotorAxis.h @@ -25,6 +25,7 @@ class epicsShareFunc asynMotorAxis { virtual asynStatus setIntegerParam(int index, int value); virtual asynStatus setDoubleParam(int index, double value); + virtual asynStatus setStringParam(int index, const char *value); virtual void report(FILE *fp, int details); virtual asynStatus callParamCallbacks();