This is Unofficial EPICS BASE Doxygen Site
devBoSoftRaw.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 /* devBoSoftRaw.c - Device Support Routines for SoftRaw Binary Output*/
12 /*
13  * Author: Janet Anderson
14  * Date: 3-28-92
15  */
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 "recGbl.h"
26 #include "recSup.h"
27 #include "devSup.h"
28 #include "boRecord.h"
29 #include "epicsExport.h"
30 
31 /* Create the dset for devBoSoftRaw */
32 static long init_record(dbCommon *pcommon);
33 static long write_bo(boRecord *prec);
34 
35 bodset devBoSoftRaw = {
36  {5, NULL, NULL, init_record, NULL},
37  write_bo
38 };
40 
41 static long init_record(dbCommon *pcommon)
42 {
43  long status;
44 
45  /*Don't convert*/
46  status = 2;
47  return status;
48 
49 } /* end init_record() */
50 
51 static long write_bo(boRecord *prec)
52 {
53  long status;
54 
55  status = dbPutLink(&prec->out,DBR_LONG, &prec->rval,1);
56 
57  return(status);
58 }
pvd::Status status
#define init_record
#define NULL
Definition: catime.c:38
Miscellaneous macro definitions.
Device support routines.
Definition: devSup.h:140
epicsExportAddress(dset, devBoSoftRaw)
bodset devBoSoftRaw
Definition: devBoSoftRaw.c:35
#define DBR_LONG
Definition: db_access.h:75
int prec
Definition: reader.c:29
Exporting IOC objects.