Export and use aidset, set USE_TYPED_DSET
I did ai so I can use it as an example in the Release Notes.
This commit is contained in:
@@ -50,8 +50,9 @@ static struct ai_channel {
|
||||
{"TIME", getCurrentTime},
|
||||
};
|
||||
|
||||
static long init_ai(aiRecord *prec)
|
||||
static long init_ai(dbCommon *pcommon)
|
||||
{
|
||||
aiRecord *prec = (aiRecord *)pcommon;
|
||||
int i;
|
||||
|
||||
if (prec->inp.type != INST_IO) {
|
||||
@@ -91,12 +92,9 @@ static long read_ai(aiRecord *prec)
|
||||
return -1;
|
||||
}
|
||||
|
||||
struct {
|
||||
dset common;
|
||||
DEVSUPFUN read_write;
|
||||
DEVSUPFUN special_linconv;
|
||||
} devAiGeneralTime = {
|
||||
{6, NULL, NULL, init_ai, NULL}, read_ai, NULL
|
||||
aidset devAiGeneralTime = {
|
||||
{6, NULL, NULL, init_ai, NULL},
|
||||
read_ai, NULL
|
||||
};
|
||||
epicsExportAddress(dset, devAiGeneralTime);
|
||||
|
||||
@@ -114,8 +112,9 @@ static struct bo_channel {
|
||||
{"RSTERRCNT", resetErrors},
|
||||
};
|
||||
|
||||
static long init_bo(boRecord *prec)
|
||||
static long init_bo(dbCommon *pcommon)
|
||||
{
|
||||
boRecord *prec = (boRecord *)pcommon;
|
||||
int i;
|
||||
|
||||
if (prec->out.type != INST_IO) {
|
||||
@@ -173,8 +172,9 @@ static struct li_channel {
|
||||
{"GETERRCNT", errorCount},
|
||||
};
|
||||
|
||||
static long init_li(longinRecord *prec)
|
||||
static long init_li(dbCommon *pcommon)
|
||||
{
|
||||
longinRecord *prec = (longinRecord *)pcommon;
|
||||
int i;
|
||||
|
||||
if (prec->inp.type != INST_IO) {
|
||||
@@ -243,8 +243,9 @@ static struct si_channel {
|
||||
{"BESTTEP", eventProvider},
|
||||
};
|
||||
|
||||
static long init_si(stringinRecord *prec)
|
||||
static long init_si(dbCommon *pcommon)
|
||||
{
|
||||
stringinRecord *prec = (stringinRecord *)pcommon;
|
||||
int i;
|
||||
|
||||
if (prec->inp.type != INST_IO) {
|
||||
|
||||
Reference in New Issue
Block a user