FASTApp/MPA3DetectorSrc/MPA3Detector.cpp
/** Called when asyn clients call pasynFloat64->write().
  * This function performs actions for some parameters, including ADAcquireTime, ADGain, etc.
  * For all parameters it sets the value in the parameter library and calls any registered callbacks..
  * \param[in] pasynUser pasynUser structure that encodes the reason and address.
  * \param[in] value Value to write. */
Called when asyn clients call pasynFloat64->write().
This function performs actions for some parameters, including ADAcquireTime, ADGain, etc.
For all parameters it sets the value in the parameter library and calls any registered callbacks
\param[in] pasynUser pasynUser structure that encodes the reason and address.
\param[in] value Value to write.
Called when asyn clients call pasynFloat64 - > write () . This function performs actions for some parameters including ADAcquireTime ADGain etc . For all parameters it sets the value in the parameter library and calls any registered callbacks \ param [ in ] pasynUser pasynUser structure that encodes the reason and address . \ param [ in ] value Value to write .
asynStatus MPA3Detector::writeFloat64(asynUser *pasynUser, epicsFloat64 value)
{
    int function = pasynUser->reason;
    asynStatus status = asynSuccess;
    status = setDoubleParam(function, value);
    if (function == P_AcquireTime) {
      sprintf(command,"rtpreset=%.3f",value);
      sendCommand(command);
    } else {
        if (function < FIRST_MPA_DETECTOR_PARAM) status = asynNDArrayDriver::writeFloat64(pasynUser, value);
    }
    callParamCallbacks();
    if (status)
        asynPrint(pasynUser, ASYN_TRACE_ERROR,
              "%s:writeFloat64 error, status=%d function=%d, value=%f\n",
              driverName, status, function, value);
    else
        asynPrint(pasynUser, ASYN_TRACEIO_DRIVER,
              "%s:writeFloat64: function=%d, value=%f\n",
              driverName, function, value);
    return status;
}
asynStatus MPA3Detector :: writeFloat64 ( asynUser * pasynUser , epicsFloat64 value ) { int function = pasynUser -> reason ; asynStatus status = asynSuccess ; status = setDoubleParam ( function , value ) ; if ( function == P_AcquireTime ) { sprintf ( command , " " , value ) ; sendCommand ( command ) ; } else { if ( function < FIRST_MPA_DETECTOR_PARAM ) status = asynNDArrayDriver :: writeFloat64 ( pasynUser , value ) ; } callParamCallbacks ( ) ; if ( status ) asynPrint ( pasynUser , ASYN_TRACE_ERROR , " \n " , driverName , status , function , value ) ; else asynPrint ( pasynUser , ASYN_TRACEIO_DRIVER , " \n " , driverName , function , value ) ; return status ; }
Called when asyn clients call pasynFloat64->write().
Called when asyn clients call pasynFloat64 - > write () .
/* Set the parameter and readback in the parameter library.  This may be overwritten when we read back the
     * status at the end, but that's OK */ /* Changing any of the following parameters requires recomputing the base image */ /* If this parameter belongs to a base class call its method */ /* Do callbacks so higher layers see any changes */