This is Unofficial EPICS BASE Doxygen Site
devAoSoftRaw.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 /* devAoSoftRaw.c */
11 
12 /* Device Support Routines for soft raw Analog Output Records*/
13 /*
14  * Author: Janet Anderson
15  * Date: 09-25-91
16  */
17 
18 #include <stdlib.h>
19 #include <stdio.h>
20 #include <string.h>
21 
22 #include "alarm.h"
23 #include "dbDefs.h"
24 #include "dbAccess.h"
25 #include "dbEvent.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 devAoSoftRaw */
35 static long write_ao(aoRecord *prec);
36 
37 aodset devAoSoftRaw = {
38  {6, NULL, NULL, NULL, NULL},
39  write_ao, NULL
40 };
42 
43 static long write_ao(aoRecord *prec)
44 {
45  long status;
46 
47  status = dbPutLink(&prec->out,DBR_LONG,&prec->rval,1);
48 
49  return(status);
50 }
epicsExportAddress(dset, devAoSoftRaw)
pvd::Status status
#define NULL
Definition: catime.c:38
Miscellaneous macro definitions.
Device support routines.
Definition: devSup.h:140
#define DBR_LONG
Definition: db_access.h:75
int prec
Definition: reader.c:29
aodset devAoSoftRaw
Definition: devAoSoftRaw.c:37
Exporting IOC objects.