asyn  4-37
Macros | Functions
testAsynPortDriver.cpp File Reference
#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 <iocsh.h>
#include "testAsynPortDriver.h"
#include <epicsExport.h>

Macros

#define FREQUENCY   1000 /* Frequency in Hz */
 
#define AMPLITUDE   1.0 /* Plus and minus peaks of sin wave */
 
#define NUM_DIVISIONS   10 /* Number of scope divisions in X and Y */
 
#define MIN_UPDATE_TIME   0.02 /* Minimum update time, to prevent CPU saturation */
 
#define MAX_ENUM_STRING_SIZE   20
 

Functions

void simTask (void *drvPvt)
 
int testAsynPortDriverConfigure (const char *portName, int maxPoints)
 EPICS iocsh callable function to call constructor for the testAsynPortDriver class. More...
 
void testAsynPortDriverRegister (void)
 
 epicsExportRegistrar (testAsynPortDriverRegister)
 

Macro Definition Documentation

◆ AMPLITUDE

#define AMPLITUDE   1.0 /* Plus and minus peaks of sin wave */

◆ FREQUENCY

#define FREQUENCY   1000 /* Frequency in Hz */

◆ MAX_ENUM_STRING_SIZE

#define MAX_ENUM_STRING_SIZE   20

◆ MIN_UPDATE_TIME

#define MIN_UPDATE_TIME   0.02 /* Minimum update time, to prevent CPU saturation */

◆ NUM_DIVISIONS

#define NUM_DIVISIONS   10 /* Number of scope divisions in X and Y */

Function Documentation

◆ epicsExportRegistrar()

epicsExportRegistrar ( testAsynPortDriverRegister  )

◆ simTask()

void simTask ( void *  drvPvt)

◆ testAsynPortDriverConfigure()

int testAsynPortDriverConfigure ( const char *  portName,
int  maxPoints 
)

EPICS iocsh callable function to call constructor for the testAsynPortDriver class.

Parameters
[in]portNameThe name of the asyn port driver to be created.
[in]maxPointsThe maximum number of points in the volt and time arrays

◆ testAsynPortDriverRegister()

void testAsynPortDriverRegister ( void  )