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
//! Log_DeviceObjectProperty on both trend objects (#1234): a Trend Log holds
//! one `BACnetDeviceObjectPropertyReference` (Clause 12.25.8), a Trend Log
//! Multiple a BACnetARRAY of them (Clause 12.30.11). Both serve the shared
//! Clause 21 encoding and take network writes through the checks here.
use BACnetDeviceObjectPropertyReference;
use ;
use Error;
use cratecommon;
use crate;
/// The most references a Trend Log Multiple holds. Each poll reads every
/// one and each record carries a value per reference, so the array is
/// bounded locally; a longer one is RESOURCES / NO_SPACE_TO_WRITE_PROPERTY.
pub const MAX_LOG_DEVICE_OBJECT_PROPERTIES: usize = 64;
/// RESOURCES / NO_SPACE_TO_WRITE_PROPERTY, for a Trend Log Multiple array
/// past [`MAX_LOG_DEVICE_OBJECT_PROPERTIES`].
pub
/// The element a write of index 0 appends when it lengthens a Trend Log
/// Multiple's array: the shared unset form, Analog Input 4194303's
/// Present_Value, an empty element under Clause 12.30.11, so the poller logs
/// NO_PROPERTY_SPECIFIED for it. A Trend Log without a reference reads as the
/// same reference (#1417).
pub
/// Check a reference a client writes with the shared
/// [`check_local_member`]: a Device member that isn't a Device identifier is
/// PROPERTY / VALUE_OUT_OF_RANGE, and any other Device member PROPERTY /
/// OPTIONAL_FUNCTIONALITY_NOT_SUPPORTED, since the poller reads only its own
/// database, which both clauses let a writable reference be held to. The
/// bundled server has already put one naming its own Device in local form.
/// An unset reference, its object or Device instance 4194303, names nothing
/// (Clause 12.30.11 for a Trend Log Multiple element), so a Device member
/// there is kept as written.
pub