changed igv to hgv
This commit is contained in:
@@ -598,14 +598,14 @@ static long cmd_pc(pr)
|
||||
if(pr->cnte==FALLING_EDGE)
|
||||
mode |= 0x1000; /*count on falling edge*/
|
||||
|
||||
/* If necessary set igv control Active High Level Gate N */
|
||||
if(pr->gtyp==INTERNAL && pr->igv!=0)
|
||||
/* If necessary set hgv control Active High Level Gate N */
|
||||
if(pr->gtyp==INTERNAL && pr->hgv!=0)
|
||||
{
|
||||
unsigned short igv = (unsigned short)pr->igv;
|
||||
unsigned short hgv = (unsigned short)pr->hgv;
|
||||
|
||||
if(igv>5) recGblRecordError(S_db_badField,(void *)pr,
|
||||
"devMz8310 : illegal igv value");
|
||||
else mode |= igv<<13;
|
||||
if(hgv>5) recGblRecordError(S_db_badField,(void *)pr,
|
||||
"devMz8310 : illegal hgv value");
|
||||
else mode |= hgv<<13;
|
||||
}
|
||||
|
||||
/*set count source selection*/
|
||||
@@ -842,7 +842,7 @@ static long write_pt(pr)
|
||||
pdata = PDATAREG(card,chip);
|
||||
|
||||
/* Should we just set on or off */
|
||||
if(pr->dcy<=0e0 || (pr->gtyp==SOFTWARE && pr->igv!=0)) {
|
||||
if(pr->dcy<=0e0 || (pr->gtyp==SOFTWARE && pr->hgv!=0)) {
|
||||
pr->udf = FALSE;
|
||||
putCmd(pcmd,(DISARM | (1<<channel)));
|
||||
putCmd(pcmd,(LDPCOUNTER | (channel+1)));
|
||||
@@ -903,16 +903,16 @@ static long write_pt(pr)
|
||||
if(pr->cedg==FALLING_EDGE)
|
||||
mode |= 0x1000; /*count on falling edge*/
|
||||
|
||||
/* If necessary set igv control MODE K: Active High Level Gate N */
|
||||
if(pr->gtyp==INTERNAL && pr->igv!=0)
|
||||
/* If necessary set hgv control MODE K: Active High Level Gate N */
|
||||
if(pr->gtyp==INTERNAL && pr->hgv!=0)
|
||||
{
|
||||
unsigned short igv = (unsigned short)pr->igv;
|
||||
unsigned short hgv = (unsigned short)pr->hgv;
|
||||
|
||||
if(igv>5)
|
||||
if(hgv>5)
|
||||
recGblRecordError(S_db_badField,(void *)pr,
|
||||
"devMz8310 : illegal igv value");
|
||||
"devMz8310 : illegal hgv value");
|
||||
else
|
||||
mode |= igv<<13;
|
||||
mode |= hgv<<13;
|
||||
}
|
||||
|
||||
/*set count source selection*/
|
||||
|
||||
@@ -129,7 +129,7 @@ static long init_record(ppc,pass)
|
||||
recGblRecordError(S_dev_noDSET,(void *)ppc,"pc: init_record");
|
||||
return(S_dev_noDSET);
|
||||
}
|
||||
/* get the igv value if sgl is a constant*/
|
||||
/* get the hgv value if sgl is a constant*/
|
||||
if (ppc->sgl.type == CONSTANT && ppc->gtyp == SOFTWARE){
|
||||
ppc->sgv = ppc->sgl.value.value;
|
||||
}
|
||||
@@ -168,7 +168,7 @@ static long process(ppc)
|
||||
return(S_dev_missingSup);
|
||||
}
|
||||
|
||||
/* get soft igv value when sgl is a DB_LINK and gtyp from Software */
|
||||
/* get soft hgv value when sgl is a DB_LINK and gtyp from Software */
|
||||
if (!ppc->pact && ppc->gtyp == SOFTWARE){
|
||||
if (ppc->sgl.type == DB_LINK){
|
||||
options=0;
|
||||
@@ -190,7 +190,7 @@ static long process(ppc)
|
||||
}
|
||||
}
|
||||
if(status==0){
|
||||
if(ppc->sgv != ppc->osgv){ /* soft igv changed */
|
||||
if(ppc->sgv != ppc->osgv){ /* soft hgv changed */
|
||||
save=ppc->cmd;
|
||||
if(ppc->sgv!=0){
|
||||
ppc->cmd=CTR_START;
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
* .08 06-02-92 jba changed graphic/control limits for per,oper
|
||||
* .09 07-15-92 jba changed VALID_ALARM to INVALID alarm
|
||||
* .10 07-16-92 jba added invalid alarm fwd link test and chngd fwd lnk to macro
|
||||
* .11 09-10-92 jba replaced get of igv value with call to recGblGetLinkvalue
|
||||
* .11 09-10-92 jba replaced get of hgv value with call to recGblGetLinkvalue
|
||||
* .12 10-10-92 jba replaced code with recGblGetLinkValue call
|
||||
*/
|
||||
|
||||
@@ -134,9 +134,9 @@ static long init_record(ppt,pass)
|
||||
recGblRecordError(S_dev_noDSET,(void *)ppt,"pt: init_record");
|
||||
return(S_dev_noDSET);
|
||||
}
|
||||
/* get the igv value if sgl is a constant*/
|
||||
/* get the hgv value if sgl is a constant*/
|
||||
if (ppt->sgl.type == CONSTANT ){
|
||||
ppt->igv = ppt->sgl.value.value;
|
||||
ppt->hgv = ppt->sgl.value.value;
|
||||
}
|
||||
|
||||
if (ppt->sgl.type == PV_LINK )
|
||||
@@ -174,7 +174,7 @@ static long process(ppt)
|
||||
return(S_dev_missingSup);
|
||||
}
|
||||
|
||||
/* get soft igv value when sgl is a DB_LINK and gtyp from Software */
|
||||
/* get soft hgv value when sgl is a DB_LINK and gtyp from Software */
|
||||
if (!ppt->pact && ppt->gtyp == SOFTWARE){
|
||||
options=0;
|
||||
nRequest=1;
|
||||
@@ -184,7 +184,7 @@ static long process(ppt)
|
||||
ppt->pact = FALSE;
|
||||
|
||||
if(status==0){
|
||||
if(ppt->sgv != ppt->osgv){ /* igv changed */
|
||||
if(ppt->sgv != ppt->osgv){ /* hgv changed */
|
||||
if(ppt->sgv==0){
|
||||
save=ppt->dcy;
|
||||
ppt->dcy=0.0;
|
||||
|
||||
Reference in New Issue
Block a user