This is Unofficial EPICS BASE Doxygen Site
devBoSoft.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 
11 /* devBoSoft.c - Device Support Routines for Soft Binary Output*/
12 /*
13  * Original Author: Bob Dalesio
14  * Current Author: Marty Kraimer
15  * Date: 6-1-90
16  */
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 "boRecord.h"
30 #include "epicsExport.h"
31 
32 /* Create the dset for devBoSoft */
33 static long init_record(dbCommon *pcommon);
34 static long write_bo(boRecord *prec);
35 
36 bodset devBoSoft = {
37  {5, NULL, NULL, init_record, NULL},
38  write_bo
39 };
41 
42 static long init_record(dbCommon *pcommon)
43 {
44  long status=0;
45 
46  /* dont convert */
47  status=2;
48  return status;
49 
50 } /* end init_record() */
51 
52 static long write_bo(boRecord *prec)
53 {
54  long status;
55 
56  status = dbPutLink(&prec->out,DBR_USHORT,&prec->val,1);
57 
58  return(status);
59 }
pvd::Status status
epicsExportAddress(dset, devBoSoft)
#define DBR_USHORT
Definition: dbFldTypes.h:80
#define init_record
#define NULL
Definition: catime.c:38
Miscellaneous macro definitions.
Device support routines.
Definition: devSup.h:140
bodset devBoSoft
Definition: devBoSoft.c:36
int prec
Definition: reader.c:29
Exporting IOC objects.