Skip to main content

bacnet_rs/object/
object_type.rs

1use crate::generate_custom_enum;
2
3generate_custom_enum!(
4    /// BACnet object types, see BACnetObjectType in clause 21.6 of the BACnet specification.
5    /// Custom values are allowed, but must be in the range 128-1023.
6    ObjectType {
7        AnalogInput = 0,
8        AnalogOutput = 1,
9        AnalogValue = 2,
10        BinaryInput = 3,
11        BinaryOutput = 4,
12        BinaryValue = 5,
13        Calendar = 6,
14        Command = 7,
15        Device = 8,
16        EventEnrollment = 9,
17        File = 10,
18        Group = 11,
19        Loop = 12,
20        MultiStateInput = 13,
21        MultiStateOutput = 14,
22        NotificationClass = 15,
23        Program = 16,
24        Schedule = 17,
25        Averaging = 18,
26        MultiStateValue = 19,
27        TrendLog = 20,
28        LifeSafetyPoint = 21,
29        LifeSafetyZone = 22,
30        Accumulator = 23,
31        PulseConverter = 24,
32        EventLog = 25,
33        GlobalGroup = 26,
34        TrendLogMultiple = 27,
35        LoadControl = 28,
36        StructuredView = 29,
37        AccessDoor = 30,
38        Timer = 31,
39        AccessCredential = 32,
40        AccessPoint = 33,
41        AccessRights = 34,
42        AccessUser = 35,
43        AccessZone = 36,
44        CredentialDataInput = 37,
45        BitstringValue = 39,
46        CharacterstringValue = 40,
47        DatepatternValue = 41,
48        DateValue = 42,
49        DatetimepatternValue = 43,
50        DatetimeValue = 44,
51        IntegerValue = 45,
52        LargeAnalogValue = 46,
53        OctetstringValue = 47,
54        PositiveIntegerValue = 48,
55        TimepatternValue = 49,
56        TimeValue = 50,
57        NotificationForwarder = 51,
58        AlertEnrollment = 52,
59        Channel = 53,
60        LightingOutput = 54,
61        BinaryLightingOutput = 55,
62        NetworkPort = 56,
63        ElevatorGroup = 57,
64        Escalator = 58,
65        Lift = 59,
66        Staging = 60,
67        AuditLog = 61,
68        AuditReporter = 62,
69        Color = 63,
70        ColorTemperature = 64,
71    },
72    u32,
73    128..=1023
74);