#include <stdlib.h>#include <string.h>#include <stdio.h>#include <errno.h>#include <math.h>#include <epicsTypes.h>#include <epicsTime.h>#include <epicsThread.h>#include <epicsString.h>#include <epicsTimer.h>#include <epicsMutex.h>#include <epicsEvent.h>#include <epicsExport.h>#include <iocsh.h>#include "asynPortDriver.h"Classes | |
| class | testAsynPortDriver |
| Class that demonstrates the use of the asynPortDriver base class to greatly simplify the task of writing an asyn port driver. More... | |
Defines | |
| #define | FREQUENCY 1000 |
| #define | AMPLITUDE 1.0 |
| #define | NUM_DIVISIONS 10 |
| #define | MIN_UPDATE_TIME 0.02 |
| #define | NUM_DRIVER_PARAMS (sizeof(driverParamString)/sizeof(driverParamString[0])) |
Enumerations | |
| enum | testParams { P_Run, P_MaxPoints, P_TimePerDivision, P_VoltsPerDivision, P_VoltOffset, P_TriggerDelay, P_NoiseAmplitude, P_UpdateTime, P_Waveform, P_TimeBase, P_MinValue, P_MaxValue, P_MeanValue } |
| Enum values are used for pasynUser->reason values, and are the index into the parameter library. More... | |
Functions | |
| void | simTask (void *drvPvt) |
| int | testAsynPortDriverConfigure (const char *portName, int maxPoints) |
| EPICS iocsh callable function to call constructor for the testAsynPortDriver class. | |
| void | testAsynPortDriverRegister (void) |
| epicsExportRegistrar (testAsynPortDriverRegister) | |
| #define AMPLITUDE 1.0 |
| #define FREQUENCY 1000 |
| #define MIN_UPDATE_TIME 0.02 |
| #define NUM_DIVISIONS 10 |
| #define NUM_DRIVER_PARAMS (sizeof(driverParamString)/sizeof(driverParamString[0])) |
| enum testParams |
| epicsExportRegistrar | ( | testAsynPortDriverRegister | ) |
| void simTask | ( | void * | drvPvt | ) |
| int testAsynPortDriverConfigure | ( | const char * | portName, | |
| int | maxPoints | |||
| ) |
EPICS iocsh callable function to call constructor for the testAsynPortDriver class.
| [in] | portName | The name of the asyn port driver to be created. |
| [in] | maxPoints | The maximum number of points in the volt and time arrays |
| void testAsynPortDriverRegister | ( | void | ) |
1.5.6