Bugfix/lighting-output-internal-process-api (#1086)

* Fixed Lighting_Command to ignore write priority and use its own. 

* Fixed BACnetLightingOperation reserved range.

* Refactor overridden into the lighting command module. Added Overridden status flags API.  Added Lighting Output API to implement a momentary override to the output that is cleared at the next lighting command.  Integrated lighting command overridden behavior into the lighting output object.

* Added Trim_Fade_Time, High_End_Trim, Low_End_Trim, Last_On_Value and Default_On_Value properties to lighting output.
Added TRIM_ACTIVE flag to lighting command. Added Last_On_Value and Default_On_Value to lighting command for restore and toggle.
This commit is contained in:
Steve Karg
2025-09-04 15:04:42 -05:00
committed by GitHub
parent 8a9c808b76
commit 71c03b29e8
10 changed files with 1854 additions and 514 deletions
File diff suppressed because it is too large Load Diff
+35 -1
View File
@@ -45,13 +45,47 @@ bool Lighting_Output_Present_Value_Set(
BACNET_STACK_EXPORT
bool Lighting_Output_Present_Value_Relinquish(
uint32_t object_instance, unsigned priority);
BACNET_STACK_EXPORT
bool Lighting_Output_Present_Value_Relinquish_All(uint32_t object_instance);
BACNET_STACK_EXPORT
float Lighting_Output_Relinquish_Default(uint32_t object_instance);
BACNET_STACK_EXPORT
bool Lighting_Output_Relinquish_Default_Set(
uint32_t object_instance, float value);
BACNET_STACK_EXPORT
float Lighting_Output_Last_On_Value(uint32_t object_instance);
BACNET_STACK_EXPORT
bool Lighting_Output_Last_On_Value_Set(uint32_t object_instance, float value);
BACNET_STACK_EXPORT
float Lighting_Output_Default_On_Value(uint32_t object_instance);
BACNET_STACK_EXPORT
bool Lighting_Output_Default_On_Value_Set(
uint32_t object_instance, float value);
BACNET_STACK_EXPORT
float Lighting_Output_High_End_Trim(uint32_t object_instance);
BACNET_STACK_EXPORT
bool Lighting_Output_High_End_Trim_Set(uint32_t object_instance, float value);
BACNET_STACK_EXPORT
float Lighting_Output_Low_End_Trim(uint32_t object_instance);
BACNET_STACK_EXPORT
bool Lighting_Output_Low_End_Trim_Set(uint32_t object_instance, float value);
BACNET_STACK_EXPORT
uint32_t Lighting_Output_Trim_Fade_Time(uint32_t object_instance);
BACNET_STACK_EXPORT
bool Lighting_Output_Trim_Fade_Time_Set(
uint32_t object_instance, uint32_t value);
BACNET_STACK_EXPORT
bool Lighting_Output_Overridden_Set(uint32_t object_instance, float value);
BACNET_STACK_EXPORT
bool Lighting_Output_Overridden_Clear(uint32_t object_instance);
BACNET_STACK_EXPORT
bool Lighting_Output_Overridden_Status(uint32_t object_instance);
BACNET_STACK_EXPORT
bool Lighting_Output_Overridden_Momentary(
uint32_t object_instance, float value);
BACNET_STACK_EXPORT
bool Lighting_Output_Change_Of_Value(uint32_t instance);
BACNET_STACK_EXPORT