Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdApp/src/devEpidFast.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ epidFastDset devEpidFast = {
6,
NULL,
NULL,
init_record,
(DEVSUPFUN)init_record,
NULL,
update_params
(DEVSUPFUN)update_params
};
epicsExportAddress(dset, devEpidFast);

Expand Down
8 changes: 4 additions & 4 deletions stdApp/src/devEpidSoft.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
#include <epicsExport.h>

/* Create DSET */
static long init_record();
static long do_pid();
static long init_record(epidRecord *pepid);
static long do_pid(epidRecord *pepid);
typedef struct { /* epid DSET */
long number;
DEVSUPFUN dev_report;
Expand All @@ -73,9 +73,9 @@ EPID_SOFT_DSET devEpidSoft = {
5,
NULL,
NULL,
init_record,
(DEVSUPFUN)init_record,
NULL,
do_pid
(DEVSUPFUN)do_pid
};
epicsExportAddress(dset, devEpidSoft);

Expand Down
8 changes: 4 additions & 4 deletions stdApp/src/devEpidSoftCallback.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
#include <epicsExport.h>

/* Create DSET */
static long init_record();
static long do_pid();
static long init_record(epidRecord *pepid);
static long do_pid(epidRecord *pepid);
typedef struct { /* epid DSET */
long number;
DEVSUPFUN dev_report;
Expand All @@ -73,9 +73,9 @@ EPID_SOFT_DSET devEpidSoftCB = {
5,
NULL,
NULL,
init_record,
(DEVSUPFUN)init_record,
NULL,
do_pid
(DEVSUPFUN)do_pid
};
epicsExportAddress(dset, devEpidSoftCB);

Expand Down
24 changes: 10 additions & 14 deletions stdApp/src/devTimeOfDay.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@
#include "epicsExport.h"


static long init_record();
static long createString();
static long aiReadTs();
static long no_op();
static long init_record(struct stringinRecord *psi);
static long createString(struct stringinRecord *psi);
static long aiReadTs(struct aiRecord *pai);
static long no_op(struct aiRecord *pai);


typedef struct {
Expand All @@ -89,30 +89,27 @@ typedef struct {

/* define different DSET's for different input link types */

TOD_DSET devSiTodString = { 5, NULL, NULL,init_record,NULL,createString,NULL };
TOD_DSET devAiTodSeconds= { 6, NULL, NULL,init_record,NULL,aiReadTs,no_op};
TOD_DSET devSiTodString = { 5, NULL, NULL,(DEVSUPFUN)init_record,NULL,(DEVSUPFUN)createString,NULL };
TOD_DSET devAiTodSeconds= { 6, NULL, NULL,(DEVSUPFUN)init_record,NULL,(DEVSUPFUN)aiReadTs,(DEVSUPFUN)no_op};
epicsExportAddress(dset,devSiTodString);
epicsExportAddress(dset,devAiTodSeconds);

static long init_record(psi)
struct stringinRecord *psi;
static long init_record(struct stringinRecord *psi)
{
long status = 0;

return(status);
}


static long no_op(pai)
struct aiRecord *pai;
static long no_op(struct aiRecord *pai)
{
long status = 0;

return(status);
}

static long createString(psi)
struct stringinRecord *psi;
static long createString(struct stringinRecord *psi)
{


Expand All @@ -138,8 +135,7 @@ static long createString(psi)
}


static long aiReadTs(pai)
struct aiRecord *pai;
static long aiReadTs(struct aiRecord *pai)
{

recGblGetTimeStamp(pai); /* get time stamp NOW */
Expand Down
28 changes: 14 additions & 14 deletions stdApp/src/epidRecord.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,35 +100,35 @@
/* Create RSET - Record Support Entry Table*/
#define report NULL
#define initialize NULL
static long init_record();
static long process();
static long init_record(epidRecord *pepid, int pass);
static long process(epidRecord *pepid);
#define special NULL
#define get_value NULL
#define cvt_dbaddr NULL
#define get_array_info NULL
#define put_array_info NULL
static long get_units();
static long get_precision();
static long get_units(struct dbAddr *paddr, char *units);
static long get_precision(struct dbAddr *paddr, long *precision);
#define get_enum_str NULL
#define get_enum_strs NULL
#define put_enum_str NULL
static long get_graphic_double();
static long get_control_double();
static long get_alarm_double();
static long get_graphic_double(struct dbAddr *paddr, struct dbr_grDouble *pgd);
static long get_control_double(struct dbAddr *paddr, struct dbr_ctrlDouble *pcd);
static long get_alarm_double(struct dbAddr *paddr, struct dbr_alDouble *pad);

rset epidRSET={
RSETNUMBER,
report,
initialize,
init_record,
process,
(long (*)(struct dbCommon *, int))init_record,
(long (*)(struct dbCommon *))process,
special,
get_value,
cvt_dbaddr,
get_array_info,
put_array_info,
get_units,
get_precision,
(long (*)(const struct dbAddr *, long *))get_precision,
get_enum_str,
get_enum_strs,
put_enum_str,
Expand All @@ -147,8 +147,8 @@ struct epidDSET { /* epid DSET */
DEVSUPFUN do_pid;
};

static void checkAlarms();
static void monitor();
static void checkAlarms(epidRecord *pepid);
static void monitor(epidRecord *pepid);


static long init_record(epidRecord *pepid, int pass)
Expand All @@ -175,7 +175,7 @@ static long init_record(epidRecord *pepid, int pass)
return(S_dev_missingSup);
}
if (pdset->init_record) {
if ((status=(*pdset->init_record)(pepid))) return(status);
if ((status=(*(long (*)(void *))pdset->init_record)(pepid))) return(status);
}
return(0);
}
Expand Down Expand Up @@ -211,7 +211,7 @@ static long process(epidRecord *pepid)
}
}

status = (*pdset->do_pid)(pepid);
status = (*(long (*)(void *))pdset->do_pid)(pepid);
/* See if device support set pact=true, meaning it will call us back */
if (!pact && pepid->pact) return(0);
pepid->pact = TRUE;
Expand Down
20 changes: 10 additions & 10 deletions stdApp/src/throttleRecord.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ Modification Log:
/* Create RSET - Record Support Entry Table */
#define report NULL
#define initialize NULL
static long init_record();
static long process();
static long special();
static long init_record(void *precord, int pass);
static long process(throttleRecord *prec);
static long special(DBADDR *paddr, int after);
#define get_value NULL
#define cvt_dbaddr NULL
#define get_array_info NULL
#define put_array_info NULL
#define get_units NULL
static long get_precision();
static long get_precision(dbAddr *paddr, long *precision);
#define get_enum_str NULL
#define get_enum_strs NULL
#define put_enum_str NULL
Expand All @@ -75,15 +75,15 @@ rset throttleRSET =
RSETNUMBER,
report,
initialize,
init_record,
process,
(long (*)(struct dbCommon *, int))init_record,
(long (*)(struct dbCommon *))process,
special,
get_value,
cvt_dbaddr,
get_array_info,
put_array_info,
get_units,
get_precision,
(long (*)(const struct dbAddr *, long *))get_precision,
get_enum_str,
get_enum_strs,
put_enum_str,
Expand All @@ -98,12 +98,12 @@ static void checkAlarms(throttleRecord *prec);
//static void monitor(throttleRecord *prec);

static void enterValue( throttleRecord *prec);
static void delayFuncCallback();
static void delayFuncCallback(CALLBACK *pcallback);
static void valuePut( throttleRecord *prec);
static void valueSync( throttleRecord *prec);

static void checkLinkCallback();
static void checkLink();
static void checkLinkCallback(CALLBACK *pcallback);
static void checkLink(struct throttleRecord *prec);

enum { NOT_CA_LINK, CA_LINK_OK, CA_LINK_NOT_OK };
typedef struct rpvtStruct
Expand Down
2 changes: 1 addition & 1 deletion stdApp/src/timestampRecord.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <timestampRecord.h>
#undef GEN_SIZE_OFFSET

static void monitor();
static void monitor(timestampRecord *ptimestamp);

/* Create RSET - Record Support Entry Table*/
#define report NULL
Expand Down
Loading