Feature/basic-schedule-object-write-properties (#1000)

* Added schedule object WriteProperty handling for effective-period, list-of-object-property-references and exception-schedule properties.
This commit is contained in:
Steve Karg
2025-05-20 15:04:14 -05:00
committed by GitHub
parent b5b2fd5b7b
commit 524fd162f9
9 changed files with 656 additions and 11 deletions
+34
View File
@@ -60,6 +60,8 @@ typedef struct schedule {
bool Out_Of_Service;
} SCHEDULE_DESCR;
BACNET_STACK_EXPORT
struct schedule *Schedule_Object(uint32_t object_instance);
BACNET_STACK_EXPORT
void Schedule_Property_Lists(
const int **pRequired, const int **pOptional, const int **pProprietary);
@@ -89,6 +91,38 @@ bool Schedule_Weekly_Schedule_Set(
unsigned array_index,
const BACNET_DAILY_SCHEDULE *value);
BACNET_STACK_EXPORT
BACNET_SPECIAL_EVENT *
Schedule_Exception_Schedule(uint32_t object_instance, unsigned array_index);
BACNET_STACK_EXPORT
bool Schedule_Exception_Schedule_Set(
uint32_t object_instance,
unsigned array_index,
const BACNET_SPECIAL_EVENT *value);
BACNET_STACK_EXPORT
bool Schedule_List_Of_Object_Property_References_Set(
uint32_t object_instance,
unsigned index,
const BACNET_DEVICE_OBJECT_PROPERTY_REFERENCE *pMember);
BACNET_STACK_EXPORT
bool Schedule_List_Of_Object_Property_References(
uint32_t object_instance,
unsigned index,
BACNET_DEVICE_OBJECT_PROPERTY_REFERENCE *pMember);
BACNET_STACK_EXPORT
size_t
Schedule_List_Of_Object_Property_References_Capacity(uint32_t object_instance);
BACNET_STACK_EXPORT
bool Schedule_Effective_Period_Set(
uint32_t object_instance,
const BACNET_DATE *start_date,
const BACNET_DATE *end_date);
BACNET_STACK_EXPORT
bool Schedule_Effective_Period(
uint32_t object_instance, BACNET_DATE *start_date, BACNET_DATE *end_date);
BACNET_STACK_EXPORT
bool Schedule_Object_Name(
uint32_t object_instance, BACNET_CHARACTER_STRING *object_name);