From 3055df0c8b165b4dd5c28abb6756a141b9ea2364 Mon Sep 17 00:00:00 2001 From: MarkRivers Date: Thu, 17 Dec 2009 05:52:26 +0000 Subject: [PATCH] Changes to get callbacks to devAsynMotor working --- motorApp/MotorSrc/asynMotorDriver.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/motorApp/MotorSrc/asynMotorDriver.h b/motorApp/MotorSrc/asynMotorDriver.h index dd936e85..71c10b81 100644 --- a/motorApp/MotorSrc/asynMotorDriver.h +++ b/motorApp/MotorSrc/asynMotorDriver.h @@ -65,7 +65,12 @@ public: int asynFlags, int autoConnect, int priority, int stackSize); /* These are the methods that we override from asynPortDriver */ + virtual asynStatus writeInt32(asynUser *pasynUser, epicsInt32 value); + virtual asynStatus writeFloat64(asynUser *pasynUser, epicsFloat64 value); virtual asynStatus readGenericPointer(asynUser *pasynUser, void *pointer); + virtual asynStatus setIntegerParam(int list, int index, int value); + virtual asynStatus setDoubleParam(int list, int index, double value); + virtual asynStatus callParamCallbacks(int list, int addr); /* These are the methods that are new to this class */ virtual asynStatus moveAxis(asynUser *pasynUser, double position, int relative, double min_velocity, double max_velocity, double acceleration); @@ -115,6 +120,9 @@ protected: int motorStatusHomed; #define LAST_MOTOR_PARAM motorStatusHomed +private: + MotorStatus *axisStatus; + int *axisStatusChanged; }; #define NUM_MOTOR_DRIVER_PARAMS (&LAST_MOTOR_PARAM - &FIRST_MOTOR_PARAM + 1)