This is Unofficial EPICS BASE Doxygen Site
devMbboSoft.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 /* devMbboSoft.c */
11 /*
12  * Original Author: Bob Dalesio
13  * Current Author: Marty Kraimer
14  * Date: 6-1-90
15  */
16 #include <stdlib.h>
17 #include <stdio.h>
18 #include <string.h>
19 
20 #include "alarm.h"
21 #include "dbDefs.h"
22 #include "dbAccess.h"
23 #include "recGbl.h"
24 #include "recSup.h"
25 #include "devSup.h"
26 #include "mbboRecord.h"
27 #include "epicsExport.h"
28 
29 /* Create the dset for devMbboSoft */
30 static long init_record(dbCommon *pcommon);
31 static long write_mbbo(mbboRecord *prec);
32 
33 mbbodset devMbboSoft = {
34  {5, NULL, NULL, init_record, NULL},
35  write_mbbo
36 };
38 
39 static long init_record(dbCommon *pcommon)
40 {
41  /*dont convert*/
42  return 2;
43 
44 } /* end init_record() */
45 
46 static long write_mbbo(mbboRecord *prec)
47 {
48  dbPutLink(&prec->out,DBR_USHORT, &prec->val,1);
49  return 0;
50 }
epicsExportAddress(dset, devMbboSoft)
#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
mbbodset devMbboSoft
Definition: devMbboSoft.c:33
int prec
Definition: reader.c:29
Exporting IOC objects.