Added API for multistate number-of-states
This commit is contained in:
@@ -193,7 +193,7 @@ static const char *state_name_by_index(const char *state_names, unsigned index)
|
||||
* @param object_instance - object-instance number of the object
|
||||
* @return number of states 1..N
|
||||
*/
|
||||
static uint32_t Multistate_Input_Max_States(uint32_t object_instance)
|
||||
uint32_t Multistate_Input_Max_States(uint32_t object_instance)
|
||||
{
|
||||
uint32_t count = 0;
|
||||
struct object_data *pObject;
|
||||
|
||||
@@ -132,6 +132,9 @@ extern "C" {
|
||||
uint32_t instance,
|
||||
uint32_t max_states_requested);
|
||||
BACNET_STACK_EXPORT
|
||||
uint32_t Multistate_Input_Max_States(
|
||||
uint32_t instance);
|
||||
BACNET_STACK_EXPORT
|
||||
char *Multistate_Input_State_Text(
|
||||
uint32_t object_instance,
|
||||
uint32_t state_index);
|
||||
|
||||
@@ -224,7 +224,7 @@ static const char *state_name_by_index(const char *state_names, unsigned index)
|
||||
* @param object_instance - object-instance number of the object
|
||||
* @return number of states
|
||||
*/
|
||||
static uint32_t Multistate_Output_Max_States(uint32_t object_instance)
|
||||
uint32_t Multistate_Output_Max_States(uint32_t object_instance)
|
||||
{
|
||||
uint32_t count = 0;
|
||||
struct object_data *pObject;
|
||||
|
||||
@@ -152,13 +152,12 @@ extern "C" {
|
||||
uint32_t instance,
|
||||
uint32_t max_states_requested);
|
||||
BACNET_STACK_EXPORT
|
||||
uint32_t Multistate_Output_Max_States(
|
||||
uint32_t instance);
|
||||
BACNET_STACK_EXPORT
|
||||
char *Multistate_Output_State_Text(
|
||||
uint32_t object_instance,
|
||||
uint32_t state_index);
|
||||
BACNET_STACK_EXPORT
|
||||
bool Multistate_Output_State_Text_List_Set(
|
||||
uint32_t object_instance,
|
||||
const char *state_text_list);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
BACNET_RELIABILITY Multistate_Output_Reliability(
|
||||
|
||||
@@ -195,7 +195,7 @@ static const char *state_name_by_index(const char *state_names, unsigned index)
|
||||
* @param object_instance - object-instance number of the object
|
||||
* @return number of states 1..N
|
||||
*/
|
||||
static uint32_t Multistate_Value_Max_States(uint32_t object_instance)
|
||||
uint32_t Multistate_Value_Max_States(uint32_t object_instance)
|
||||
{
|
||||
uint32_t count = 0;
|
||||
struct object_data *pObject;
|
||||
|
||||
@@ -123,6 +123,9 @@ extern "C" {
|
||||
uint32_t instance,
|
||||
uint32_t max_states_requested);
|
||||
BACNET_STACK_EXPORT
|
||||
uint32_t Multistate_Value_Max_States(
|
||||
uint32_t instance);
|
||||
BACNET_STACK_EXPORT
|
||||
char *Multistate_Value_State_Text(
|
||||
uint32_t object_instance,
|
||||
uint32_t state_index);
|
||||
|
||||
Reference in New Issue
Block a user