Changes for udf and other problems discovered while looking at udf

This commit is contained in:
Marty Kraimer
1996-10-31 22:24:14 +00:00
parent a160ebf5ba
commit 179c9f6df0
34 changed files with 382 additions and 670 deletions
+6 -16
View File
@@ -1,7 +1,5 @@
/* devAiSoft.c */
/* base/src/dev $Id$ */
/* devAiSoft.c - Device Support Routines for soft Analog Input Records*/
/*
* Original Author: Bob Dalesio
* Current Author: Marty Kraimer
@@ -35,14 +33,10 @@
* .11 10-10-92 jba replaced code with recGblGetLinkValue call
* ...
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
#include <string.h>
#include <alarm.h>
#include <cvtTable.h>
#include <dbDefs.h>
@@ -51,7 +45,6 @@
#include <devSup.h>
#include <link.h>
#include <aiRecord.h>
/* Create the dset for devAiSoft */
static long init_record();
static long read_ai();
@@ -70,9 +63,9 @@ struct {
init_record,
NULL,
read_ai,
NULL };
NULL
};
static long init_record(pai)
struct aiRecord *pai;
{
@@ -81,8 +74,8 @@ static long init_record(pai)
/* ai.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/
switch (pai->inp.type) {
case (CONSTANT) :
if(recGblInitConstantLink(&pai->inp,DBF_DOUBLE,&pai->val))
pai->udf = FALSE;
if(recGblInitConstantLink(&pai->inp,DBF_DOUBLE,&pai->val))
pai->udf = FALSE;
break;
case (PV_LINK) :
case (DB_LINK) :
@@ -98,16 +91,13 @@ static long init_record(pai)
pai->linr = 0;
return(0);
}
static long read_ai(pai)
struct aiRecord *pai;
{
long status;
status = dbGetLink(&(pai->inp),DBR_DOUBLE, &(pai->val),0,0);
if (pai->inp.type!=CONSTANT && RTN_SUCCESS(status))
pai->udf = FALSE;
if (pai->inp.type!=CONSTANT && RTN_SUCCESS(status)) pai->udf = FALSE;
return(2); /*don't convert*/
}
+3 -13
View File
@@ -1,7 +1,5 @@
/* devAiSoftRaw.c */
/* base/src/dev $Id$ */
/* devAiSoftRaw.c - Device Support Routines for soft Analog Input Records*/
/*
* Original Author: Bob Dalesio
* Current Author: Marty Kraimer
@@ -36,13 +34,10 @@
* .04 10-10-92 jba replaced code with recGblGetLinkValue call
* ...
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
#include <string.h>
#include <alarm.h>
#include <cvtTable.h>
#include <dbDefs.h>
@@ -51,7 +46,6 @@
#include <devSup.h>
#include <link.h>
#include <aiRecord.h>
/* Create the dset for devAiSoftRaw */
static long init_record();
static long read_ai();
@@ -71,9 +65,9 @@ struct {
init_record,
NULL,
read_ai,
special_linconv};
special_linconv
};
static long init_record(pai)
struct aiRecord *pai;
{
@@ -95,14 +89,13 @@ static long init_record(pai)
}
return(0);
}
static long read_ai(pai)
struct aiRecord *pai;
{
long status;
status = dbGetLink(&(pai->inp),DBR_LONG,&(pai->rval),0,0);
return(0);
}
@@ -110,8 +103,5 @@ static long special_linconv(pai,after)
struct aiRecord *pai;
int after;
{
if(!after) return(0);
return(0);
}
+5 -14
View File
@@ -1,7 +1,5 @@
/* devBiSoft.c */
/* base/src/dev $Id$ */
/* devBiSoft.c - Device Support Routines for Soft Binary Input*/
/*
* Original Author: Bob Dalesio
* Current Author: Marty Kraimer
@@ -35,13 +33,10 @@
* .03 10-10-92 jba replaced code with recGblGetLinkValue call
* ...
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
#include <string.h>
#include <alarm.h>
#include <dbDefs.h>
#include <dbAccess.h>
@@ -49,11 +44,9 @@
#include <devSup.h>
#include <module_types.h>
#include <biRecord.h>
/* Create the dset for devBiSoft */
static long init_record();
static long read_bi();
struct {
long number;
DEVSUPFUN report;
@@ -67,9 +60,9 @@ struct {
NULL,
init_record,
NULL,
read_bi};
read_bi
};
static long init_record(pbi)
struct biRecord *pbi;
{
@@ -78,8 +71,8 @@ static long init_record(pbi)
/* bi.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK */
switch (pbi->inp.type) {
case (CONSTANT) :
if(recGblInitConstantLink(&pbi->inp,DBF_ENUM,&pbi->val))
pbi->udf = FALSE;
if(recGblInitConstantLink(&pbi->inp,DBF_ENUM,&pbi->val))
pbi->udf = FALSE;
break;
case (DB_LINK) :
case (PV_LINK) :
@@ -92,15 +85,13 @@ static long init_record(pbi)
}
return(0);
}
static long read_bi(pbi)
struct biRecord *pbi;
{
long status;
status = dbGetLink(&pbi->inp, DBR_USHORT, &pbi->val,0,0);
if(pbi->inp.type!=CONSTANT && RTN_SUCCESS(status)) pbi->udf=FALSE;
return(2);
}
+3 -11
View File
@@ -1,7 +1,5 @@
/* devBiSoftRaw.c */
/* base/src/dev $Id$ */
/* devBiSoftRaw.c - Device Support Routines for Soft Binary Input*/
/*
* Original Author: Bob Dalesio
* Current Author: Marty Kraimer
@@ -36,13 +34,10 @@
* .04 10-10-92 jba replaced code with recGblGetLinkValue call
* ...
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
#include <string.h>
#include <alarm.h>
#include <dbDefs.h>
#include <dbAccess.h>
@@ -50,11 +45,9 @@
#include <devSup.h>
#include <module_types.h>
#include <biRecord.h>
/* Create the dset for devBiSoftRaw */
static long init_record();
static long read_bi();
struct {
long number;
DEVSUPFUN report;
@@ -68,9 +61,9 @@ struct {
NULL,
init_record,
NULL,
read_bi};
read_bi
};
static long init_record(pbi)
struct biRecord *pbi;
{
@@ -92,13 +85,12 @@ static long init_record(pbi)
}
return(0);
}
static long read_bi(pbi)
struct biRecord *pbi;
{
long status;
status = dbGetLink(&pbi->inp, DBR_ULONG, &pbi->rval,0,0);
return(0);
}
+6 -11
View File
@@ -1,7 +1,5 @@
/* devEventSoft.c */
/* base/src/dev $Id$ */
/* devEventSoft.c - Device Support Routines for Soft Event Input */
/*
* Author: Janet Anderson
* Date: 04-21-91
@@ -34,13 +32,10 @@
* .03 10-10-92 jba replaced code with recGblGetLinkValue call
* .04 03-03-94 mrk Move constant link value to val only if val is zero
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
#include <string.h>
#include <alarm.h>
#include <dbDefs.h>
#include <dbAccess.h>
@@ -52,7 +47,6 @@
/* Create the dset for devEventSoft */
static long init_record();
static long read_event();
struct {
long number;
DEVSUPFUN report;
@@ -66,7 +60,8 @@ struct {
NULL,
init_record,
NULL,
read_event};
read_event
};
static long init_record(pevent)
struct eventRecord *pevent;
@@ -76,8 +71,8 @@ static long init_record(pevent)
/* event.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/
switch (pevent->inp.type) {
case (CONSTANT) :
if(recGblInitConstantLink(&pevent->inp,DBF_USHORT,&pevent->val))
pevent->udf = FALSE;
if(recGblInitConstantLink(&pevent->inp,DBF_USHORT,&pevent->val))
pevent->udf = FALSE;
break;
case (PV_LINK) :
case (DB_LINK) :
@@ -90,11 +85,11 @@ static long init_record(pevent)
}
return(0);
}
static long read_event(pevent)
struct eventRecord *pevent;
{
long status,options=0,nRequest=1;
long status;
status = dbGetLink(&pevent->inp,DBR_USHORT,&pevent->val,0,0);
if(pevent->inp.type!=CONSTANT && RTN_SUCCESS(status)) pevent->udf=FALSE;
+2 -5
View File
@@ -1,7 +1,5 @@
/* devEventTestIoEvent.c */
/* base/src/dev $Id$ */
/* devEventTestIoEvent.c - Device Support Routines for ioEvent*/
/*
* Author: Marty Kraimer
* Date: 01/09/92
@@ -39,7 +37,6 @@
#include <stdioLib.h>
#include <wdLib.h>
#include <string.h>
#include <dbDefs.h>
#include <dbAccess.h>
#include <dbScan.h>
@@ -63,11 +60,11 @@ struct {
init,
NULL,
get_ioint_info,
read_event};
read_event
};
static IOSCANPVT ioscanpvt;
WDOG_ID wd_id=NULL;
static long init(after)
int after;
+5 -13
View File
@@ -1,7 +1,5 @@
/* devHistogramSoft.c */
/* base/src/dev $Id$ */
/* devHistogramSoft.c - Device Support Routines for soft Histogram Input */
/*
* Author: Janet Anderson
* Date: 07/02/91
@@ -34,14 +32,10 @@
* .03 03-13-92 jba ANSI C changes
* ...
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
#include <string.h>
#include <alarm.h>
#include <cvtTable.h>
#include <dbDefs.h>
@@ -50,7 +44,6 @@
#include <devSup.h>
#include <link.h>
#include <histogramRecord.h>
/* Create the dset for devHistogramSoft */
static long init_record();
static long read_histogram();
@@ -69,9 +62,9 @@ struct {
init_record,
NULL,
read_histogram,
NULL};
NULL
};
static long init_record(phistogram)
struct histogramRecord *phistogram;
{
@@ -80,8 +73,8 @@ static long init_record(phistogram)
/* histogram.svl must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/
switch (phistogram->svl.type) {
case (CONSTANT) :
if(recGblInitConstantLink(&phistogram->svl,DBF_DOUBLE,&phistogram->sgnl))
phistogram->udf = FALSE;
if(recGblInitConstantLink(&phistogram->svl,DBF_DOUBLE,&phistogram->sgnl))
phistogram->udf = FALSE;
break;
case (PV_LINK) :
case (DB_LINK) :
@@ -94,13 +87,12 @@ static long init_record(phistogram)
}
return(status);
}
static long read_histogram(phistogram)
struct histogramRecord *phistogram;
{
long status;
status = dbGetLink(&phistogram->svl,DBR_DOUBLE, &phistogram->sgnl,0,0);
return(0); /*add count*/
}
+3 -7
View File
@@ -1,7 +1,5 @@
/* devHistogramTestAsyn.c */
/* base/src/dev $Id$ */
/* devHistogramTestAsyn.c - Device Support Routines for testing asynchronous processing*/
/*
* Author: Janet Anderson
* Date: 07/02/91
@@ -37,14 +35,12 @@
* .06 04-05-94 mrk ANSI changes to callback routines
* ...
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
#include <wdLib.h>
#include <memLib.h>
#include <string.h>
#include <alarm.h>
#include <callback.h>
#include <cvtTable.h>
@@ -55,7 +51,7 @@
#include <link.h>
#include <dbCommon.h>
#include <histogramRecord.h>
/* Create the dset for devHistogramTestAsyn */
static long init_record();
static long read_histogram();
@@ -107,8 +103,8 @@ static long init_record(phistogram)
callbackSetCallback(myCallback,&pcallback->callback);
pcallback->precord = (struct dbCommon *)phistogram;
pcallback->wd_id = wdCreate();
if(recGblInitConstantLink(&phistogram->svl,DBF_DOUBLE,&phistogram->sgnl))
phistogram->udf = FALSE;
if(recGblInitConstantLink(&phistogram->svl,DBF_DOUBLE,&phistogram->sgnl))
phistogram->udf = FALSE;
break;
default :
recGblRecordError(S_db_badField,(void *)phistogram,
+5 -8
View File
@@ -1,7 +1,5 @@
/* devLiSoft.c */
/* base/src/dev $Id$ */
/* devLiSoft.c - Device Support Routines for Soft Longin Input */
/*
* Author: Janet Anderson
* Date: 09-23-91
@@ -33,8 +31,6 @@
* .02 03-13-92 jba ANSI C changes
* .03 10-10-92 jba replaced code with recGblGetLinkValue call
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
@@ -65,7 +61,8 @@ struct {
NULL,
init_record,
NULL,
read_longin};
read_longin
};
static long init_record(plongin)
struct longinRecord *plongin;
@@ -75,8 +72,8 @@ static long init_record(plongin)
/* longin.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/
switch (plongin->inp.type) {
case (CONSTANT) :
if(recGblInitConstantLink(&plongin->inp,DBF_LONG,&plongin->val))
plongin->udf = FALSE;
if(recGblInitConstantLink(&plongin->inp,DBF_LONG,&plongin->val))
plongin->udf = FALSE;
break;
case (PV_LINK) :
case (DB_LINK) :
@@ -89,7 +86,7 @@ static long init_record(plongin)
}
return(0);
}
static long read_longin(plongin)
struct longinRecord *plongin;
{
+3 -10
View File
@@ -1,7 +1,5 @@
/* devLoSoft.c */
/* base/src/dev $Id$ */
/* devLoSoft.c - Device Support Routines for Soft Longout Output */
/*
* Author: Janet Anderson
* Date: 09-23-91
@@ -33,7 +31,6 @@
* .02 03-13-92 jba ANSI C changes
* .03 10-10-92 jba replaced code with recGblGetLinkValue call
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
@@ -46,12 +43,9 @@
#include <devSup.h>
#include <module_types.h>
#include <longoutRecord.h>
static long init_record();
/* Create the dset for devLoSoft */
static long init_record();
static long write_longout();
struct {
long number;
DEVSUPFUN report;
@@ -65,8 +59,8 @@ struct {
NULL,
init_record,
NULL,
write_longout};
write_longout
};
static long init_record(plongout)
struct longoutRecord *plongout;
@@ -80,6 +74,5 @@ static long write_longout(plongout)
long status;
status = dbPutLink(&plongout->out,DBR_LONG, &plongout->val,1);
return(0);
}
+5 -11
View File
@@ -1,7 +1,5 @@
/* devMbbiDirectSoft.c */
/* base/src/dev $Id$ */
/* devMbbiDirectSoft.c - Device Support for Soft Direct Multibit Binary Input*/
/*
* Original Author: Bob Dalesio
* Current Author: Matthew Needes
@@ -33,8 +31,6 @@
* (Modification log in devMbbiSoft.c applies)
* .01 10-08-93 mcn (created) support for direct mbbi records
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
@@ -47,11 +43,9 @@
#include <devSup.h>
#include <module_types.h>
#include <mbbiDirectRecord.h>
/* Create the dset for devMbbiSoft */
static long init_record();
static long read_mbbi();
struct {
long number;
DEVSUPFUN report;
@@ -65,9 +59,9 @@ struct {
NULL,
init_record,
NULL,
read_mbbi};
read_mbbi
};
static long init_record(pmbbi)
struct mbbiDirectRecord *pmbbi;
{
@@ -76,8 +70,8 @@ static long init_record(pmbbi)
/* mbbi.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/
switch (pmbbi->inp.type) {
case (CONSTANT) :
if(recGblInitConstantLink(&pmbbi->inp,DBF_ENUM,&pmbbi->val))
pmbbi->udf = FALSE;
if(recGblInitConstantLink(&pmbbi->inp,DBF_ENUM,&pmbbi->val))
pmbbi->udf = FALSE;
break;
case (DB_LINK) :
case (PV_LINK) :
@@ -90,7 +84,7 @@ static long init_record(pmbbi)
}
return(0);
}
static long read_mbbi(pmbbi)
struct mbbiDirectRecord *pmbbi;
{
+3 -9
View File
@@ -1,7 +1,5 @@
/* devMbbiDirectSoftRaw.c */
/* base/src/dev $Id$ */
/* devMbbiDirectSoftRaw.c - Device Support for Direct Soft MBBI */
/*
* Original Author: Bob Dalesio
* Current Author: Matthew Needes
@@ -33,7 +31,6 @@
* (modification log of devMbbiDirectSoftRaw applies)
* .01 10-08-93 mcn device support for direct mbbi records.
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
@@ -46,11 +43,9 @@
#include <devSup.h>
#include <module_types.h>
#include <mbbiDirectRecord.h>
/* Create the dset for devMbbiDirectSoftRaw */
static long init_record();
static long read_mbbi();
struct {
long number;
DEVSUPFUN report;
@@ -64,9 +59,9 @@ struct {
NULL,
init_record,
NULL,
read_mbbi};
read_mbbi
};
static long init_record(pmbbi)
struct mbbiDirectRecord *pmbbi;
{
@@ -88,13 +83,12 @@ static long init_record(pmbbi)
}
return(0);
}
static long read_mbbi(pmbbi)
struct mbbiDirectRecord *pmbbi;
{
long status;
status = dbGetLink(&pmbbi->inp,DBR_LONG,&pmbbi->rval,0,0);
return(0);
}
+5 -13
View File
@@ -1,7 +1,5 @@
/* devMbbiSoft.c */
/* base/src/dev $Id$ */
/* devMbbiSoft.c - Device Support Routines for Soft Multibit Binary Input*/
/*
* Original Author: Bob Dalesio
* Current Author: Marty Kraimer
@@ -35,13 +33,10 @@
* .03 10-10-92 jba replaced code with recGblGetLinkValue call
* ...
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
#include <string.h>
#include <alarm.h>
#include <dbDefs.h>
#include <dbAccess.h>
@@ -49,12 +44,9 @@
#include <devSup.h>
#include <module_types.h>
#include <mbbiRecord.h>
/* Create the dset for devMbbiSoft */
static long init_record();
static long read_mbbi();
struct {
long number;
DEVSUPFUN report;
@@ -68,21 +60,21 @@ struct {
NULL,
init_record,
NULL,
read_mbbi};
read_mbbi
};
static long init_record(pmbbi)
struct mbbiRecord *pmbbi;
{
long status;
if (pmbbi->inp.type == CONSTANT) {
if(recGblInitConstantLink(&pmbbi->inp,DBF_ENUM,&pmbbi->val))
pmbbi->udf = FALSE;
if(recGblInitConstantLink(&pmbbi->inp,DBF_ENUM,&pmbbi->val))
pmbbi->udf = FALSE;
}
return(0);
}
static long read_mbbi(pmbbi)
struct mbbiRecord *pmbbi;
{
+3 -9
View File
@@ -1,7 +1,5 @@
/* devMbbiSoftRaw.c */
/* base/src/dev $Id$ */
/* devMbbiSoftRaw.c - Device Support Routines for Soft Multibit Binary Input*/
/*
* Original Author: Bob Dalesio
* Current Author: Marty Kraimer
@@ -36,8 +34,6 @@
* .04 10-10-92 jba replaced code with recGblGetLinkValue call
* ...
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
@@ -50,11 +46,9 @@
#include <devSup.h>
#include <module_types.h>
#include <mbbiRecord.h>
/* Create the dset for devMbbiSoftRaw */
static long init_record();
static long read_mbbi();
struct {
long number;
DEVSUPFUN report;
@@ -68,9 +62,9 @@ struct {
NULL,
init_record,
NULL,
read_mbbi};
read_mbbi
};
static long init_record(pmbbi)
struct mbbiRecord *pmbbi;
{
@@ -81,7 +75,7 @@ static long init_record(pmbbi)
}
return(0);
}
static long read_mbbi(pmbbi)
struct mbbiRecord *pmbbi;
{
+3 -13
View File
@@ -1,7 +1,5 @@
/* devMbboDirectSoft.c */
/* base/src/dev $Id$ */
/* devMbboDirectSoft.c - Device Support for Soft mbbo Direct */
/*
* Original Author: Bob Dalesio
* Current Author: Matthew Needes
@@ -33,8 +31,6 @@
* (log for devMbboSoft applies)
* 1. 10-08-93 mcn (created) dev support for MbboDirect records
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
@@ -47,12 +43,9 @@
#include <devSup.h>
#include <module_types.h>
#include <mbboDirectRecord.h>
static long init_record();
/* Create the dset for devMbboSoft */
static long init_record();
static long write_mbbo();
struct {
long number;
DEVSUPFUN report;
@@ -66,14 +59,12 @@ struct {
NULL,
init_record,
NULL,
write_mbbo};
write_mbbo
};
static long init_record(pmbbo)
struct mbboDirectRecord *pmbbo;
{
long status = 0;
/* dont convert */
@@ -88,6 +79,5 @@ static long write_mbbo(pmbbo)
long status;
status = dbPutLink(&pmbbo->out,DBR_USHORT,&pmbbo->val,1);
return(0);
}
+3 -10
View File
@@ -1,7 +1,5 @@
/* devMbboDirectSoftRaw.c */
/* base/src/dev $Id$ */
/* devMbboDirectSoftRaw.c - Device Support SoftRaw Direct mbbo */
/*
* Author: Janet Anderson
* Current Author: Matthew Needes
@@ -33,8 +31,6 @@
* (log for devMbboSoftRaw.c applies)
* .01 10-08-93 mcn (created) device support for devMbboDirect records
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
@@ -48,11 +44,9 @@
#include <module_types.h>
#include <mbboDirectRecord.h>
static long init_record();
/* Create the dset for devMbboDirectSoftRaw */
static long init_record();
static long write_mbbo();
struct {
long number;
DEVSUPFUN report;
@@ -66,9 +60,8 @@ struct {
NULL,
init_record,
NULL,
write_mbbo};
write_mbbo
};
static long init_record(pmbbo)
struct mbboDirectRecord *pmbbo;
+3 -11
View File
@@ -1,7 +1,5 @@
/* devMbboSoft.c */
/* base/src/dev $Id$ */
/* devMbboSoft.c - Device Support Routines for Soft Multibit Binary Output*/
/*
* Original Author: Bob Dalesio
* Current Author: Marty Kraimer
@@ -36,8 +34,6 @@
* .04 10-10-92 jba replaced code with recGblGetLinkValue call
* ...
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
@@ -50,12 +46,9 @@
#include <devSup.h>
#include <module_types.h>
#include <mbboRecord.h>
static long init_record();
/* Create the dset for devMbboSoft */
static long init_record();
static long write_mbbo();
struct {
long number;
DEVSUPFUN report;
@@ -69,9 +62,8 @@ struct {
NULL,
init_record,
NULL,
write_mbbo};
write_mbbo
};
static long init_record(pmbbo)
struct mbboRecord *pmbbo;
+3 -11
View File
@@ -1,7 +1,5 @@
/* devMbboSoftRaw.c */
/* base/src/dev $Id$ */
/* devMbboSoftRaw.c - Device Support Routines for SoftRaw Multibit Binary Output*/
/*
* Author: Janet Anderson
* Date: 3-28-92
@@ -33,8 +31,6 @@
* .02 10-10-92 jba replaced code with recGblGetLinkValue call
* ...
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
@@ -47,12 +43,9 @@
#include <devSup.h>
#include <module_types.h>
#include <mbboRecord.h>
static long init_record();
/* Create the dset for devMbboSoftRaw */
static long init_record();
static long write_mbbo();
struct {
long number;
DEVSUPFUN report;
@@ -66,9 +59,8 @@ struct {
NULL,
init_record,
NULL,
write_mbbo};
write_mbbo
};
static long init_record(pmbbo)
struct mbboRecord *pmbbo;
+2 -6
View File
@@ -1,7 +1,5 @@
/* devPtSoft.c */
/* base/src/dev $Id$ */
/* devPtSoft.c - Device Support Routines for Soft Pulse Generator Output */
/*
* Author: Janet Anderson
* Date: 6-1-91
@@ -34,8 +32,6 @@
* .03 10-10-92 jba replaced code with recGblGetLinkValue call
* ...
*/
#include <vxWorks.h>
#include <types.h>
#include <stdioLib.h>
@@ -52,7 +48,6 @@
/* Create the dset for devPtSoft */
static long init_record();
static long write_pt();
struct {
long number;
DEVSUPFUN report;
@@ -66,7 +61,8 @@ struct {
NULL,
init_record,
NULL,
write_pt};
write_pt
};
static long init_record(ppt)
struct pulseTrainRecord *ppt;
+3 -5
View File
@@ -1,7 +1,5 @@
/* devSiSoft.c */
/* base/src/dev $Id$ */
/* devSiSoft.c - Device Support Routines for Soft String Input */
/*
* Author: Janet Anderson
* Date: 04-21-91
@@ -51,7 +49,6 @@
/* Create the dset for devSiSoft */
static long init_record();
static long read_stringin();
struct {
long number;
DEVSUPFUN report;
@@ -65,7 +62,8 @@ struct {
NULL,
init_record,
NULL,
read_stringin};
read_stringin
};
static long init_record(pstringin)
struct stringinRecord *pstringin;
@@ -89,7 +87,7 @@ static long init_record(pstringin)
}
return(0);
}
static long read_stringin(pstringin)
struct stringinRecord *pstringin;
{
+2 -6
View File
@@ -1,7 +1,5 @@
/* devSoSoft.c */
/* base/src/dev $Id$ */
/* devSoSoft.c - Device Support Routines for Soft String Output */
/*
* Author: Janet Anderson
* Date: 04-21-91
@@ -50,7 +48,6 @@
/* Create the dset for devSoSoft */
static long init_record();
static long write_stringout();
struct {
long number;
DEVSUPFUN report;
@@ -64,8 +61,8 @@ struct {
NULL,
init_record,
NULL,
write_stringout};
write_stringout
};
static long init_record(pstringout)
struct stringoutRecord *pstringout;
@@ -79,6 +76,5 @@ static long write_stringout(pstringout)
long status;
status = dbPutLink(&pstringout->out,DBR_STRING,pstringout->val,1);
return(status);
}