Added reverse lookup for Binary Present Value.
This commit is contained in:
@@ -94,6 +94,9 @@ extern "C" {
|
|||||||
unsigned index);
|
unsigned index);
|
||||||
const char *bactext_binary_present_value_name(
|
const char *bactext_binary_present_value_name(
|
||||||
unsigned index);
|
unsigned index);
|
||||||
|
bool bactext_binary_present_value_index(
|
||||||
|
const char *search_name,
|
||||||
|
unsigned *found_index);
|
||||||
const char *bactext_reliability_name(
|
const char *bactext_reliability_name(
|
||||||
unsigned index);
|
unsigned index);
|
||||||
const char *bactext_device_status_name(
|
const char *bactext_device_status_name(
|
||||||
|
|||||||
@@ -1819,6 +1819,16 @@ const char *bactext_binary_present_value_name(
|
|||||||
ASHRAE_Reserved_String);
|
ASHRAE_Reserved_String);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool bactext_binary_present_value_index(
|
||||||
|
const char *search_name,
|
||||||
|
unsigned *found_index)
|
||||||
|
{
|
||||||
|
return indtext_by_istring(
|
||||||
|
bacnet_binary_present_value_names,
|
||||||
|
search_name,
|
||||||
|
found_index);
|
||||||
|
}
|
||||||
|
|
||||||
INDTEXT_DATA bacnet_reliability_names[] = {
|
INDTEXT_DATA bacnet_reliability_names[] = {
|
||||||
{RELIABILITY_NO_FAULT_DETECTED, "no-fault-detected"}
|
{RELIABILITY_NO_FAULT_DETECTED, "no-fault-detected"}
|
||||||
,
|
,
|
||||||
|
|||||||
Reference in New Issue
Block a user