This is Unofficial EPICS BASE Doxygen Site
devAoSoft.c
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * EPICS BASE Versions 3.13.7
7 * and higher are distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 /* devAoSoft.c */
11 
12 /* Device Support Routines for soft Analog Output Records*/
13 /*
14  * Original Author: Bob Dalesio
15  * Current Author: Marty Kraimer
16  * Date: 6-1-90
17  */
18 
19 #include <stdlib.h>
20 #include <stdio.h>
21 #include <string.h>
22 
23 #include "alarm.h"
24 #include "dbDefs.h"
25 #include "dbAccess.h"
26 #include "recGbl.h"
27 #include "recSup.h"
28 #include "devSup.h"
29 #include "link.h"
30 #include "special.h"
31 #include "aoRecord.h"
32 #include "epicsExport.h"
33 
34 /* Create the dset for devAoSoft */
35 static long init_record(dbCommon *pcommon);
36 static long write_ao(aoRecord *prec);
37 
38 aodset devAoSoft = {
39  {6, NULL, NULL, init_record, NULL},
40  write_ao, NULL
41 };
43 
44 static long init_record(dbCommon *pcommon)
45 {
46 
47  long status=0;
48  status = 2;
49  return status;
50 
51 } /* end init_record() */
52 
53 static long write_ao(aoRecord *prec)
54 {
55  long status;
56 
57  status = dbPutLink(&prec->out,DBR_DOUBLE, &prec->oval,1);
58 
59  return(status);
60 }
pvd::Status status
#define init_record
#define NULL
Definition: catime.c:38
epicsExportAddress(dset, devAoSoft)
Miscellaneous macro definitions.
Device support routines.
Definition: devSup.h:140
aodset devAoSoft
Definition: devAoSoft.c:38
#define DBR_DOUBLE
Definition: db_access.h:76
int prec
Definition: reader.c:29
Exporting IOC objects.