17 #define NUM_VERT_SELECTIONS 4
22 #define P_RunString "SCOPE_RUN"
23 #define P_MaxPointsString "SCOPE_MAX_POINTS"
24 #define P_TimePerDivString "SCOPE_TIME_PER_DIV"
25 #define P_TimePerDivSelectString "SCOPE_TIME_PER_DIV_SELECT"
26 #define P_VertGainString "SCOPE_VERT_GAIN"
27 #define P_VertGainSelectString "SCOPE_VERT_GAIN_SELECT"
28 #define P_VoltsPerDivString "SCOPE_VOLTS_PER_DIV"
29 #define P_VoltsPerDivSelectString "SCOPE_VOLTS_PER_DIV_SELECT"
30 #define P_VoltOffsetString "SCOPE_VOLT_OFFSET"
31 #define P_TriggerDelayString "SCOPE_TRIGGER_DELAY"
32 #define P_NoiseAmplitudeString "SCOPE_NOISE_AMPLITUDE"
33 #define P_UpdateTimeString "SCOPE_UPDATE_TIME"
34 #define P_WaveformString "SCOPE_WAVEFORM"
35 #define P_TimeBaseString "SCOPE_TIME_BASE"
36 #define P_MinValueString "SCOPE_MIN_VALUE"
37 #define P_MaxValueString "SCOPE_MAX_VALUE"
38 #define P_MeanValueString "SCOPE_MEAN_VALUE"
51 virtual asynStatus
writeInt32(asynUser *pasynUser, epicsInt32 value);
52 virtual asynStatus
writeFloat64(asynUser *pasynUser, epicsFloat64 value);
53 virtual asynStatus
readFloat64Array(asynUser *pasynUser, epicsFloat64 *value,
54 size_t nElements,
size_t *nIn);
55 virtual asynStatus
readEnum(asynUser *pasynUser,
char *strings[],
int values[],
int severities[],
56 size_t nElements,
size_t *nIn);
64 #define FIRST_SCOPE_COMMAND P_Run
81 #define LAST_SCOPE_COMMAND P_MeanValue
85 epicsEventId eventId_;
87 epicsFloat64 *pTimeBase_;
93 void setVoltsPerDiv();
98 #define NUM_SCOPE_PARAMS (&LAST_SCOPE_COMMAND - &FIRST_SCOPE_COMMAND + 1)
virtual asynStatus writeInt32(asynUser *pasynUser, epicsInt32 value)
Called when asyn clients call pasynInt32->write().
Definition: testAsynPortDriver.cpp:206
int P_MaxValue
Definition: testAsynPortDriver.h:79
Base class for asyn port drivers; handles most of the bookkeeping for writing an asyn port driver wit...
Definition: asynPortDriver.h:41
virtual asynStatus readEnum(asynUser *pasynUser, char *strings[], int values[], int severities[], size_t nElements, size_t *nIn)
Called when asyn clients call pasynEnum->read().
Definition: testAsynPortDriver.cpp:341
virtual asynStatus writeFloat64(asynUser *pasynUser, epicsFloat64 value)
Called when asyn clients call pasynFloat64->write().
Definition: testAsynPortDriver.cpp:256
void simTask(void)
Simulation task that runs as a separate thread.
Definition: testAsynPortDriver.cpp:143
int P_VoltsPerDiv
Definition: testAsynPortDriver.h:70
int P_Waveform
Definition: testAsynPortDriver.h:76
int P_TimeBase
Definition: testAsynPortDriver.h:77
char * portName
The name of this asyn port.
Definition: asynPortDriver.h:173
int P_UpdateTime
Definition: testAsynPortDriver.h:75
int P_VoltOffset
Definition: testAsynPortDriver.h:72
int P_VertGain
Definition: testAsynPortDriver.h:68
virtual asynStatus readFloat64Array(asynUser *pasynUser, epicsFloat64 *value, size_t nElements, size_t *nIn)
Called when asyn clients call pasynFloat64Array->read().
Definition: testAsynPortDriver.cpp:308
int P_MinValue
Definition: testAsynPortDriver.h:78
int P_Run
Values used for pasynUser->reason, and indexes into the parameter library.
Definition: testAsynPortDriver.h:63
int P_MaxPoints
Definition: testAsynPortDriver.h:65
int P_VoltsPerDivSelect
Definition: testAsynPortDriver.h:71
int P_TimePerDivSelect
Definition: testAsynPortDriver.h:67
int P_TimePerDiv
Definition: testAsynPortDriver.h:66
testAsynPortDriver(const char *portName, int maxArraySize)
Constructor for the testAsynPortDriver class.
Definition: testAsynPortDriver.cpp:49
int P_MeanValue
Definition: testAsynPortDriver.h:80
#define NUM_VERT_SELECTIONS
Definition: testAsynPortDriver.h:17
int P_TriggerDelay
Definition: testAsynPortDriver.h:73
Class that demonstrates the use of the asynPortDriver base class to greatly simplify the task of writ...
Definition: testAsynPortDriver.h:46
int P_NoiseAmplitude
Definition: testAsynPortDriver.h:74
int P_VertGainSelect
Definition: testAsynPortDriver.h:69