[go: up one dir, main page]

Menu

[r969]: / trunk / VTS3 / DUDAPI / Stdobj.h  Maximize  Restore  History

Download this file

783 lines (723 with data), 31.3 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
//STDOBJ.H
/*
C structures to hold data in the EPICS point database.
The structs are manipuated (almost) entirely via the propdescriptor tables.
*/
//BACnet Standard Object Structures
#ifndef __STDOBJ_H_INCLUDED
#define __STDOBJ_H_INCLUDED
// NOTE: various places below use (or formerly used) enums such as BACnetBinaryPV,
// BACnetNotifyType, etc. But the propdescriptor-driven code in Vtsapi32.cpp
// and DUDTOOL.CPP assumes that enumerations are 16-bit (word).
// This code was written assuming 16-bit ints, so that enums WERE 16 bits.
// But it isn't 1995 anymore.
// So most if not all of these should be "word" not "enum XXX".
//
// The good news is that if we change to word, and some code DID access the item
// by name (rather than by address via the propdescriptor), a compile error
// is likely due to the change in datatype.
//
// TODO: SOME of the objects have been changed. More work here, unless we
// go the other way change enums to 32 bit, but that seems more complicated.
//equates for priority arrays
#define fpaNULL FLT_MIN //too bad we can't use NAN
#define bpaNULL 2 //binary present values are 0 and 1
#define dvaNULL 4 // DoorValue Enum NULL value
#define upaNULL 0xFFFF //can't use more than 65534 enumerations, too bad
#define ipaNULL 0x80000000 //most negative 32-bit signed int, as a dword (sorry, wasn't MY idea)
//equates for standard properties
//these are always in this order for every object type:
#define idProp 0 //object_id property
#define nameProp 1 //object_name property
#define typeProp 2 //object_type property
#define NUM_PROP_FLAGS 100 // maximum number of properties in a propdescriptor[] table (check DVprops)
//equates for propflags bits
#define PropIsPresent 1 //0=not present, 1=present in this instance
#define PropIsWritable 2 //0=R, 1=W
#define ValueUnknown 4 //0=have a value, 1=value is ?
// Any (well, MOST) primitive value
struct AnyPrimitive
{
int choice; // Primitive tag type (PRIM_xxx as defined in VTS.h)
int helper; // choice-dependent data: enumtable index, string length etc.
union
{
bool booleanValue;
UINT unsignedValue;
int signedValue;
float realValue;
unsigned char *pOctetStringValue;
char *pCharStringValue;
unsigned char *pBitStringValue;
word enumValue;
BACnetDate dateValue;
BACnetTime timeValue;
dword objectIdValue;
};
// Delete any allocated data, set choice to NULL
void Flush();
};
#define PRIM_DOUBLE 5
#define PRIM_OCTET_STRING 6
#define PRIM_CHARACTER_STRING 7
#define PRIM_BIT_STRING 8
#define PRIM_ENUMERATED 9
#define PRIM_DATE 10
#define PRIM_TIME 11
#define PRIM_OBJECT_IDENTIFIER 12
typedef struct
{
// BACnetAnyValue minValue;
// BACnetAnyValue maxValue;
// BACnetAnyValue resolution;
int maxLengthStr;
int maxLengthList;
int maxLengthArray;
int allowedValues;
} ObjPropValueLimit; //Default property value restriction
#define MAX_TEXT_STRING 132 // our commonly used value
//Generic Object type structure common to all Std Objects
//-------------------------------------------------------
typedef struct {
void *next;
dword object_id;
char object_name[64];
word object_type;
char description[132];
octet propflags[NUM_PROP_FLAGS]; //flags, indexed by position in property table
char profile_name[132];
BACnetEnumList *property_list; // List of BACnetPropertyIdentifier
// These properties don't exist in ALL object, but the occur in enough that
// it saves significant code to include them here.
octet status_flags;
word event_state; // WAS enum BACnetEventState. See NOTE above
word reliability; // WAS enum BACnetReliability. See NOTE above
bool out_of_service;
word time_delay;
word notification_class;
octet limit_enable;
octet event_enable;
octet acked_transitions;
word notify_type; // WAS enum BACnetNotifyType. See NOTE above
BACnetTimeStamp *event_time_stamps[3];
char *event_message_texts[3];
char *event_message_texts_config[3];
bool event_detection_enable;
bool event_algorithm_inhibit;
bool reliability_evaluation_inhibit;
BACnetObjectPropertyReference event_algorithm_inhibit_ref;
dword time_delay_normal;
} generic_object;
//Analog Input Object
//-------------------------------------------------------
typedef struct {
generic_object go;
float pv;
char device_type[64];
word update_interval;
word units; // WAS enum BACnetEngineeringUnits. See NOTE above
float min_pres_value;
float max_pres_value;
float resolution;
float cov_increment;
float high_limit;
float low_limit;
float deadband;
} ai_obj_type;
//Analog Output Object
//-------------------------------------------------------
typedef struct {
generic_object go;
float pv;
char device_type[64];
word units; // WAS enum BACnetEngineeringUnits. See NOTE above
float min_pres_value;
float max_pres_value;
float resolution;
float priority_array[16];
float relinquish_default;
float cov_increment;
float high_limit;
float low_limit;
float deadband;
} ao_obj_type;
//Analog Value Object
//-------------------------------------------------------
typedef struct {
generic_object go;
float pv;
word units; // WAS enum BACnetEngineeringUnits. See NOTE above
float min_pres_value;
float max_pres_value;
float resolution;
float priority_array[16];
float relinquish_default;
float cov_increment;
float high_limit;
float low_limit;
float deadband;
} av_obj_type;
//Binary Input Object
//-------------------------------------------------------
typedef struct {
generic_object go;
word pv; // WAS enum BACnetBinaryPV. See NOTE above
char device_type[64];
word polarity; // WAS enum BACnetBinaryPV. See NOTE above
char inactive_text[64];
char active_text[64];
BACnetDateTime cos_time;
word cos_count;
BACnetDateTime time_of_state_count_reset;
dword elapsed_active_time;
BACnetDateTime time_of_active_time_reset;
word alarm_value; // WAS enum BACnetBinaryPV. See NOTE above
} bi_obj_type;
//Binary Output Object
//-------------------------------------------------------
typedef struct {
generic_object go;
word pv; // WAS enum BACnetBinaryPV. See NOTE above
char device_type[64];
word polarity; // WAS enum BACnetBinaryPV. See NOTE above
char inactive_text[64];
char active_text[64];
BACnetDateTime cos_time;
word cos_count;
BACnetDateTime time_of_state_count_reset;
dword elapsed_active_time;
BACnetDateTime time_of_active_time_reset;
dword min_off_time;
dword min_on_time;
word priority_array[16]; // WAS enum BACnetBinaryPV. See NOTE above
word relinquish_default; // WAS enum BACnetBinaryPV. See NOTE above
word feedback_value; // WAS enum BACnetBinaryPV. See NOTE above
} bo_obj_type;
//Binary Value Object
//-------------------------------------------------------
typedef struct {
generic_object go;
word pv; // WAS enum BACnetBinaryPV. See NOTE above
char inactive_text[64];
char active_text[64];
BACnetDateTime cos_time;
word cos_count;
BACnetDateTime time_of_state_count_reset;
dword elapsed_active_time;
BACnetDateTime time_of_active_time_reset;
dword min_off_time;
dword min_on_time;
word priority_array[16]; // WAS enum BACnetBinaryPV. See NOTE above
word relinquish_default; // WAS enum BACnetBinaryPV. See NOTE above
word alarm_value; // WAS enum BACnetBinaryPV. See NOTE above
} bv_obj_type;
//Calendar Object
//-------------------------------------------------------
typedef struct {
generic_object go;
bool pv;
BACnetCalendarEntry *date_list;
} calendar_obj_type;
//Notification Class Object
//-------------------------------------------------------
typedef struct {
generic_object go;
word priority[3];
octet ack_required;
BACnetDestination *recipient_list;
} nc_obj_type;
#define MAX_ACTION_TEXTS 32
//Command Object
//-------------------------------------------------------
typedef struct {
generic_object go;
word pv;
bool in_process;
bool all_writes_successful;
word num_actions;
BACnetActionCommand *action[MAX_ACTION_TEXTS];
char *action_text[MAX_ACTION_TEXTS];
} command_obj_type;
//Device Object
//-------------------------------------------------------
// Define maximum possible lengths
// for protocol_services_supported and object_types_supported.
// Still some work to do to prevent breakage if these bitstrings
// are longer than expected.
#define MAX_BITSTRING 80
typedef struct {
generic_object go;
word system_status; // WAS enum BACnetDeviceStatus. See NOTE above
char vendor_name[64];
word vendor_id;
char model_name[32];
char firmware_rev[100];
char application_software_ver[32];
char location[64];
word protocol_ver;
word protocol_rev;
word protocol_conf_class;
octet protocol_services_supported[MAX_BITSTRING/8]; //bit string, one bit per service
octet object_types_supported[MAX_BITSTRING/8]; //bit string, one bit per object type
word num_objects;
BACnetObjectIdentifier *object_list; //points to our object list
word max_apdu_length_accepted;
word segmentation_supported; // WAS enum BACnetSegmentation. See NOTE above
dword max_segments_accepted;
BACnetVTClassList *vt_classes_supported;
BACnetVTSession *active_vt_sessions;
BACnetDate local_date;
BACnetTime local_time; //time and date are read from system clock
int utc_offset;
bool day_savings_status;
dword apdu_segment_timeout;
dword apdu_timeout;
word number_apdu_retries;
BACnetSessionKey *list_session_keys;
BACnetRecipient *time_synch_recipients;
word max_master;
word max_info_frames;
BACnetAddressBinding *device_add_binding;
dword database_revision;
BACnetObjectIdentifier *configuration_files; // points to configuration files
BACnetTimeStamp last_restore_time;
word backup_failure_timeout;
BACnetCOVSubscription *active_cov_subscriptions;
BACnetAddressBinding *manual_slave_add_bind;
BACnetAddressBinding *slave_add_bind;
BooleanList *auto_slave_disc; // SEQ of boolean
BooleanList *slave_proxy_enable; // SEQ of boolean
BACnetObjectIdentifier *structured_object_list; //object list of Structured Views
word backup_preparation_time;
word restore_preparation_time;
word restore_completion_time;
word backup_and_restore_state;
word last_restart_reason;
BACnetTimeStamp time_of_device_restart;
BACnetRecipient *restart_notification_recipients;
BACnetRecipient *utc_time_synchronization_recipients;
word time_synchronization_interval;
bool align_intervals;
word interval_offset;
char serial_number[MAX_TEXT_STRING];
} device_obj_type;
//Event Enrollment Object
//-------------------------------------------------------
typedef struct {
generic_object go;
//Note that event_type is part of parameter_list structure in this implementation!
BACnetEventParameter parameter_list;
BACnetDeviceObjectPropertyReference obj_prop_ref;
BACnetRecipient recipient; // removed for revision 4
word process_id; // removed for revision 4
word priority; // removed for revision 4
bool issue_conf_notifications; // removed for revision 4
} ee_obj_type;
//File Object
//-------------------------------------------------------
typedef struct {
generic_object go;
char file_type[32];
dword file_size;
BACnetDateTime mod_date;
bool archive;
bool read_only;
dword record_count;
enum BACnetFileAccessMethod access_method;
} file_obj_type;
//Group Object
//-------------------------------------------------------
typedef struct {
generic_object go;
BACnetReadAccessSpecification*list_of_group_members;
//get present value by reading the relevant objects
} group_obj_type;
//Loop Object
//-------------------------------------------------------
typedef struct {
generic_object go;
float pv;
word update_interval;
word output_units; // WAS enum BACnetEngineeringUnits. See NOTE above
int output_value;
BACnetObjectPropertyReference man_var_ref;
BACnetObjectPropertyReference cont_var_ref;
float cont_var_value;
word cont_var_units; // WAS enum BACnetEngineeringUnits. See NOTE above
BACnetObjectPropertyReference*setpoint_ref;
float setpoint;
word action; // WAS enum BACnetEngineeringUnits. See NOTE above
float proportional_const;
word proportional_const_units; // WAS enum BACnetEngineeringUnits. See NOTE above
float integral_const;
word integral_const_units; // WAS enum BACnetEngineeringUnits. See NOTE above
float derivative_const;
word derivative_const_units; // WAS enum BACnetEngineeringUnits. See NOTE above
float bias;
float max_output;
float min_output;
word priority_for_writing;
float cov_increment;
float error_limit;
float deadband;
} loop_obj_type;
#define MAX_STATE_TEXTS 128
//Multi-state Input Object
//-------------------------------------------------------
typedef struct {
generic_object go;
octet pv;
char device_type[64];
octet num_of_states;
char *state_text[MAX_STATE_TEXTS];
UnsignedList *alarm_values;
UnsignedList *fault_values;
} mi_obj_type;
//Multi-state Output Object
//-------------------------------------------------------
typedef struct {
generic_object go;
word pv;
char device_type[64];
word num_of_states;
char *state_text[MAX_STATE_TEXTS];
word priority_array[16];
word relinquish_default;
octet feedback_value;
} mo_obj_type;
//Program Object
//-------------------------------------------------------
typedef struct {
generic_object go;
word prog_state; // WAS enum BACnetProgramState. See NOTE above
word prog_change; // WAS enum BACnetProgramRequest. See NOTE above
word reason_for_halt; // WAS enum BACnetProgramError. See NOTE above
char description_of_halt[64];
char prog_location[64];
char instance_of[64];
} program_obj_type;
//Schedule Object
//-------------------------------------------------------
typedef struct {
generic_object go;
dword value_type;
// TODO: what about the NULL, Boolean, enum, and perhaps other choices?
// Also, why not make this a typedef, shared with schedule_default.
// And also WeeklySchedule, ExceptionSchedule, and Command's ActionList
// and anywhere else we need a primitive ANY.
//
// TODO: WeeklySchedule and ExceptionSchedule use ActionValueType to specify type,
// but code in Vtsapi32 and DUDTOOL use ParseType to value_type, tangled up
// with the "none" hack in Vtsapi32 to tweak value_type based on the referenced property.
// This is pretty much guaranteed to be broken.
union {
enum BACnetBinaryPV bproperty_value; //binary value
word uproperty_value; //unsigned word
float fproperty_value; //float
} pv;
BACnetDateRange effective_period;
BACnetTimeValue *weekly_schedule[7];
BACnetExceptionSchedule exception_schedule;
BACnetDeviceObjectPropertyReference*list_obj_prop_ref;
word priority_for_writing;
union {
enum BACnetBinaryPV bproperty_value; //binary value
word uproperty_value; //unsigned word
float fproperty_value; //float
} schedule_default;
} schedule_obj_type;
//Averaging Object
//-------------------------------------------------------
typedef struct
{
generic_object go;
float minimum_value;
BACnetDateTime minimum_value_timestamp;
float average_value;
float variance_value;
float maximum_value;
BACnetDateTime maximum_value_timestamp;
word attempted_samples;
word valid_samples;
BACnetDeviceObjectPropertyReference obj_prop_ref;
word window_interval;
word window_samples;
} avg_obj_type;
// --------------------------------------------------------
//Multi-state Value Object
//-------------------------------------------------------
typedef struct {
generic_object go;
word present_value;
word number_of_states;
char *state_text[MAX_STATE_TEXTS];
word priority_array[16];
word relinquish_default;
UnsignedList *alarm_values;
UnsignedList *fault_values;
} msv_obj_type;
// --------------------------------------------------------
// TrendLog Object
// --------------------------------------------------------
typedef struct
{
generic_object go;
bool log_enable;
BACnetDateTime start_time;
BACnetDateTime stop_time;
BACnetDeviceObjectPropertyReference log_device_object_property;
dword log_interval;
word cov_resubscription_interval;
float client_cov_increment;
bool stop_when_full;
bool align_intervals;
bool trigger;
word logging_type;
dword interval_offset;
dword buffer_size;
BACnetLogRecord log_buffer;
dword record_count;
dword total_record_count;
dword notification_threshold;
dword records_since_notification;
word alarm_value;
word fault_values;
dword last_notify_record;
} trend_obj_type;
// --------------------------------------------------------
// Proprietary Object
// --------------------------------------------------------
typedef struct
{
generic_object go;
} proprietary_obj_type;
typedef struct
{
generic_object go;
enum BACnetLifeSafetyState present_value;
enum BACnetLifeSafetyState tracking_value;
char device_type[64];
enum BACnetLifeSafetyMode mode;
BACnetEnumList *accepted_modes; // List of BACnetLifeSafetyMode
BACnetEnumList *life_safety_alarm_values; // List of LifeSafetyState
BACnetEnumList *alarm_values; // List of LifeSafetyState
BACnetEnumList *fault_values; // List of LifeSafetyState
enum BACnetSilencedState silenced;
enum BACnetLifeSafetyOperation operation_expected;
enum BACnetMaintenance maintenance_required;
word setting;
float direct_reading;
word units; // WAS enum BACnetEngineeringUnits. See NOTE above
BACnetDeviceObjectReference *member_of;
} lifesafetypoint_obj_type;
typedef struct
{
generic_object go;
enum BACnetLifeSafetyState present_value;
enum BACnetLifeSafetyState tracking_value;
char device_type[64];
enum BACnetLifeSafetyMode mode;
BACnetEnumList *accepted_modes; // List of BACnetLifeSafetyMode
BACnetEnumList *life_safety_alarm_values; // List of LifeSafetyState
BACnetEnumList *alarm_values; // List of LifeSafetyState
BACnetEnumList *fault_values; // List of LifeSafetyState
enum BACnetSilencedState silenced;
enum BACnetLifeSafetyOperation operation_expected;
bool maintenance_required;
BACnetDeviceObjectReference *zone_members;
BACnetDeviceObjectReference *member_of;
} lifesafetyzone_obj_type;
typedef struct
{
generic_object go;
word present_value;
char device_type[64];
BACnetScale scale;
word units; // WAS enum BACnetEngineeringUnits. See NOTE above
BACnetPrescale prescale;
word max_pres_value;
BACnetDateTime value_change_time;
word value_before_change;
word value_set;
BACnetAccumulatorRecord logging_record;
BACnetObjectIdentifier logging_device;
word pulse_rate;
word high_limit;
word low_limit;
word limit_monitoring_interval;
} accumulator_obj_type;
typedef struct
{
generic_object go;
float present_value;
BACnetObjectPropertyReference input_reference;
word units; // WAS enum BACnetEngineeringUnits. See NOTE above
float scale_factor;
float adjust_value;
word count;
BACnetDateTime update_time;
BACnetDateTime count_change_time;
word count_before_change;
float cov_increment;
word cov_period;
float high_limit;
float low_limit;
float deadband;
} pulseconverter_obj_type;
#define MAX_SHED_LEVELS 255
typedef struct
{
generic_object go;
BACnetShedLevel requested_shed_level;
DWORD shed_duration;
DWORD duty_window;
BACnetShedLevel expected_shed_level;
BACnetShedLevel actual_shed_level;
UnsignedList *shed_levels;
char *shed_level_descriptions[MAX_SHED_LEVELS];
bool log_enable;
BACnetDateTime start_time;
enum BACnetShedState present_value;
char state_description[132];
float full_duty_baseline;
} lc_obj_type;
typedef struct
{
generic_object go;
BACnetEnumList *alarm_values;
BACnetEnumList *fault_values;
enum BACnetDoorValue present_value;
enum BACnetDoorValue relinquish_default;
enum BACnetDoorValue priority_array[16];
enum BACnetDoorStatus door_status;
enum BACnetLockStatus lock_status;
enum BACnetDoorSecuredStatus secured_status;
BACnetDeviceObjectReference*door_members;
word door_pulse_time;
word door_extended_pulse_time;
word door_unlock_delay_time;
word door_open_too_long_time;
enum BACnetDoorAlarmState door_alarm_state;
BACnetEnumList *masked_alarm_values; //enum BACnetDoorAlarmState
enum BACnetMaintenance maintenance_required;
} ad_obj_type;
#define MAX_SV_ANNOTATIONS 255
// Structured-View
typedef struct
{
generic_object go;
enum BACnetNodeType node_type;
char node_subtype[132];
BACnetDeviceObjectReference*subordinate_list;
char *subordinate_annotations[MAX_SV_ANNOTATIONS];
} sv_obj_type;
typedef struct
{
generic_object go;
bool log_enable;
bool stop_when_full;
BACnetDateTime start_time;
BACnetDateTime stop_time;
dword buffer_size;
BACnetLogRecord log_buffer;
dword record_count;
dword total_record_count;
dword notification_threshold;
dword records_since_notification;
dword last_notify_record;
} el_obj_type;
typedef struct
{
generic_object go;
dword update_interval;
dword requested_update_interval;
dword cov_resubscription_interval;
dword covu_period;
BACnetRecipient *covu_recipients;
} global_group_obj_type;
typedef struct
{
generic_object go;
bool log_enable;
BACnetDateTime start_time;
BACnetDateTime stop_time;
BACnetDeviceObjectPropertyReference log_device_object_property;
enum BACnetLoggingType logging_type;
bool align_intervals;
word interval_offset;
bool trigger;
bool stop_when_full;
dword log_interval;
dword buffer_size;
BACnetLogRecord log_buffer;
dword record_count;
dword total_record_count;
dword notification_threshold;
dword records_since_notification;
dword last_notify_record;
} tlm_obj_type;
// --------------------------------------------------------
// A placeholder until *someone* fleshs out the real
// properties of a new Object Type.
//-------------------------------------------------------
typedef struct {
generic_object go;
} placeholder_obj_type;
#define MAX_FAULT_STRINGS 8
// --------------------------------------------------------
//Characterstring Value Object
//-------------------------------------------------------
typedef struct {
generic_object go;
char present_value[MAX_TEXT_STRING];
// TODO: this needs to be an array of STRING/NULL choice
word priority_array[16];
char relinquish_default[MAX_TEXT_STRING];
char *alarm_values[MAX_FAULT_STRINGS];
char *fault_values[MAX_FAULT_STRINGS];
} charstring_obj_type;
//-------------------------------------------------------
//Integer Value Object INTEGER_VALUE
//-------------------------------------------------------
typedef struct {
generic_object go;
int present_value;
word units; // WAS enum BACnetEngineeringUnits. See NOTE above
int priority_array[16];
int relinquish_default;
int cov_increment;
int high_limit;
int low_limit;
unsigned int deadband;
int min_pres_value;
int max_pres_value;
int resolution;
} integer_obj_type;
//-------------------------------------------------------
//Positive Integer Value Object POSITIVE_INTEGER_VALUE
//-------------------------------------------------------
typedef struct {
generic_object go;
unsigned int present_value;
word units; // WAS enum BACnetEngineeringUnits. See NOTE above
unsigned int priority_array[16];
unsigned int relinquish_default;
int cov_increment;
unsigned int high_limit;
unsigned int low_limit;
unsigned int deadband;
unsigned int min_pres_value;
unsigned int max_pres_value;
unsigned int resolution;
} positive_integer_obj_type;
//-------------------------------------------------------
//DateTime Value Object
//-------------------------------------------------------
typedef struct {
generic_object go;
BACnetDateTime present_value;
BACnetDateTime priority_array[16];
BACnetDateTime relinquish_default;
bool is_utc;
} datetimevalue_obj_type;
#endif //__STDOBJ_H_INCLUDED