OSCBS-23 Scalable BACnet object arrays, part #2
Add processing object table as section iterable for zephyr
- zephyr/subset/object/device.c
- zephyr/subset/object/objects.ld
Add object descriptor array as dynamic list
- zephyr/subset/object/object.h
- zephyr/subset/object/*.c
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Legrand North America, LLC.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
/* Analog Input Objects - Zephyr specific part */
|
||||
|
||||
#include "object.h"
|
||||
#include "bacnet/basic/object/ai.h"
|
||||
|
||||
OBJECT_FUNCTIONS_WITHOUT_INIT(Analog_Input, ANALOG_INPUT_DESCR);
|
||||
|
||||
void Analog_Input_Init(void)
|
||||
{
|
||||
if (!Object_List) {
|
||||
Object_List = Keylist_Create();
|
||||
|
||||
#if defined(INTRINSIC_REPORTING)
|
||||
/* Set handler for GetEventInformation function */
|
||||
handler_get_event_information_set(
|
||||
OBJECT_ANALOG_INPUT, Analog_Input_Event_Information);
|
||||
/* Set handler for AcknowledgeAlarm function */
|
||||
handler_alarm_ack_set(OBJECT_ANALOG_INPUT, Analog_Input_Alarm_Ack);
|
||||
/* Set handler for GetAlarmSummary Service */
|
||||
handler_get_alarm_summary_set(
|
||||
OBJECT_ANALOG_INPUT, Analog_Input_Alarm_Summary);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user