hook_<libraryPrefix>_hasDpeAnActiveAdress()
This function is used to check whether an elementary symbol in a faceplate has a peripheral address.
Synopsis
bool hook_ <libraryPrefix>_ hasDpeAnActiveAdress( string
DPE);
Parameters
Parameters
Parameter | Description |
---|---|
DPE | Data point element to which this elementary symbol references. |
Default
bool hook_stdlib_hasDpeAnActiveAdress(stringDPE)
{
int iAddress;
bool bRet = false;
dpGet(DPE + ":_address.._type", iAddress);
if (iAddress!=0)
{
dpGet(DPE + ":_address.._active", bRet);
}
return bRet;
}
In this function dpGet() is used to check whether an active address for the data point element is available. If so, bRet = TRUE is set and returned.
Return Value
FALSE = Data point does not exist
TRUE = Data point exists.