deCONZ C++ API v2.6.1
Loading...
Searching...
No Matches
zdp_profile.h
1#ifndef ZDP_PROFILE_H_
2#define ZDP_PROFILE_H_
3
4/*
5 * Copyright (c) 2012-2023 dresden elektronik ingenieurtechnik gmbh.
6 * All rights reserved.
7 *
8 * The software in this package is published under the terms of the BSD
9 * style license a copy of which has been included with this distribution in
10 * the LICENSE.txt file.
11 *
12 */
13
14#define ZDP_PROFILE_ID 0x0000
15#define ZDO_ENDPOINT 0x00
16
17// ZDP_CLUSTER_BEGIN
18enum
19{
20// Device and Service Discovery commands
21 ZDP_NWK_ADDR_CLID = 0x0000,
22 ZDP_IEEE_ADDR_CLID = 0x0001,
23 ZDP_NODE_DESCRIPTOR_CLID = 0x0002,
24 ZDP_POWER_DESCRIPTOR_CLID = 0x0003,
25 ZDP_SIMPLE_DESCRIPTOR_CLID = 0x0004,
26 ZDP_ACTIVE_ENDPOINTS_CLID = 0x0005,
27 ZDP_MATCH_DESCRIPTOR_CLID = 0x0006,
28 ZDP_COMPLEX_DESCRIPTOR_CLID = 0x0010,
29 ZDP_USER_DESCRIPTOR_CLID = 0x0011,
30 ZDP_DEVICE_ANNCE_CLID = 0x0013,
31 ZDP_USER_DESCRIPTOR_SET_CLID = 0x0014,
32 ZDP_PARENT_ANNOUNCE_CLID = 0x001F,
33 ZDP_END_DEVICE_BIND_REQ_CLID = 0x0020,
34 ZDP_BIND_REQ_CLID = 0x0021,
35 ZDP_UNBIND_REQ_CLID = 0x0022,
36 ZDP_MGMT_LQI_REQ_CLID = 0x0031,
37 ZDP_MGMT_RTG_REQ_CLID = 0x0032,
38 ZDP_MGMT_BIND_REQ_CLID = 0x0033,
39 ZDP_MGMT_LEAVE_REQ_CLID = 0x0034,
40 ZDP_MGMT_PERMIT_JOINING_REQ_CLID = 0x0036,
41 ZDP_MGMT_NWK_UPDATE_REQ_CLID = 0x0038,
42 ZDP_NWK_ADDR_RSP_CLID = 0x8000,
43 ZDP_IEEE_ADDR_RSP_CLID = 0x8001,
44 ZDP_NODE_DESCRIPTOR_RSP_CLID = 0x8002,
45 ZDP_POWER_DESCRIPTOR_RSP_CLID = 0x8003,
46 ZDP_SIMPLE_DESCRIPTOR_RSP_CLID = 0x8004,
47 ZDP_ACTIVE_ENDPOINTS_RSP_CLID = 0x8005,
48 ZDP_MATCH_DESCRIPTOR_RSP_CLID = 0x8006,
49 ZDP_USER_DESCRIPTOR_RSP_CLID = 0x8011,
50 ZDP_USER_DESCRIPTOR_CONF_CLID = 0x8014,
51 ZDP_END_DEVICE_BIND_RSP_CLID = 0x8020,
52 ZDP_BIND_RSP_CLID = 0x8021,
53 ZDP_UNBIND_RSP_CLID = 0x8022,
54 ZDP_MGMT_LQI_RSP_CLID = 0x8031,
55 ZDP_MGMT_BIND_RSP_CLID = 0x8033,
56 ZDP_MGMT_RTG_RSP_CLID = 0x8032,
57 ZDP_MGMT_LEAVE_RSP_CLID = 0x8034,
58 ZDP_MGMT_PERMIT_JOINING_RSP_CLID = 0x8036,
59 ZDP_MGMT_NWK_UPDATE_RSP_CLID = 0x8038
60};
61// ZDP_CLUSTER_END
62
63enum
64{
65 ZDP_SUCCESS = 0x00,
66 ZDP_INV_REQUESTTYPE = 0x80,
67 ZDP_DEVICE_NOT_FOUND = 0x81,
68 ZDP_INVALID_EP = 0x82,
69 ZDP_NOT_ACTIVE = 0x83,
70 ZDP_NOT_SUPPORTED = 0x84,
71 ZDP_TIMEOUT = 0x85,
72 ZDP_NO_MATCH = 0x86,
73 ZDP_NO_ENTRY = 0x88,
74 ZDP_NO_DESCRIPTOR = 0x89,
75 ZDP_INSUFFICIENT_SPACE = 0x8a,
76 ZDP_NOT_PERMITTED = 0x8b,
77 ZDP_TABLE_FULL = 0x8c,
78 ZDP_NOT_AUTHORIZED = 0x8d,
79};
80
84enum ZM_POWER_MODE
85{
86 ZM_POWER_MODE_ON_WHEN_IDLE = 0,
87 ZM_POWER_MODE_PERIODIC = (1 << 0),
88 ZM_POWER_MODE_STIMULATED = (1 << 1)
89};
90
94enum ZM_POWER_SOURCE
95{
96 ZM_POWER_SOURCE_MAINS = (1 << 0),
97 ZM_POWER_SOURCE_RECHARGE = (1 << 1),
98 ZM_POWER_SOURCE_DISPOSE = (1 << 2)
99};
100
104enum ZM_POWER_LEVEL
105{
106 ZM_POWER_LEVEL_CRITICAL = 0,
107 ZM_POWER_LEVEL_33 = 4,
108 ZM_POWER_LEVEL_66 = 8,
109 ZM_POWER_LEVEL_100 = 12
110};
111
112#endif /* ZDP_PROFILE_H_ */