9 #include <registryFunction.h>
11 #include <aSubRecord.h>
13 #include <epicsExport.h>
22 long QSRV_image_demo(aSubRecord *prec)
24 epicsUInt32 H = *(epicsUInt32*)prec->a,
25 W = *(epicsUInt32*)prec->b;
26 epicsUInt16 *I = (epicsUInt16*)prec->vala;
30 (void)recGblSetSevr(prec, READ_ALARM, INVALID_ALARM);
36 if(i%50==49 || j%50==49)
39 I[i*H+j] = ((epicsUInt32)j)*65535/H;
47 epicsRegisterFunction(QSRV_image_demo);