Added API for multistate number-of-states

This commit is contained in:
Steve Karg
2024-04-04 17:09:51 -05:00
parent 5abdaf0916
commit e19cc0be1e
6 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -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;
+3
View File
@@ -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);
+1 -1
View File
@@ -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;
+3 -4
View File
@@ -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(
+1 -1
View File
@@ -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;
+3
View File
@@ -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);