2 * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 #ifndef __ZIGBEE_MANAGER_H__
17 #define __ZIGBEE_MANAGER_H__
25 #define MAX_ENDPOINT_CLUSTERS 32
26 #define ZB_802_15_4_CHANNELS_MASK 0x07FFF800UL
28 typedef unsigned char ieee_addr[8];
29 typedef unsigned short nwk_addr;
30 typedef unsigned char aes128_key[16];
33 ZB_ZDP_ALTERNATIVE_PAN_COORDINATOR = (1 << 0),
34 ZB_ZDP_DEVICE_TYPE = (1 << 1),
35 ZB_ZDP_POWER_SOURCE = (1 << 2),
36 ZB_ZDP_RECEIVER_ON_WHEN_IDLE = (1 << 3),
37 ZB_ZDP_SECURITY_CAPABILITY = (1 << 6),
38 ZB_ZDP_ALLOCATE_ADDRESS = (1 << 7),
39 } zb_zdo_mac_capability_field_e;
42 ZB_APS_NO_ACK_REQUEST = (0 << 6),
43 ZB_APS_ACK_REQUEST = (1 << 6),
44 } zb_aps_ack_request_e;
47 ZB_APS_DELIVERY_UNICAST = 0,
48 ZB_APS_DELIVERY_INDIRECT = 1,
49 ZB_APS_DELIVERY_BROADCAST = 2,
50 ZB_APS_DELIVERY_MULTICAST = 3,
51 } zb_aps_delivery_mode_e;
54 ZB_ZCL_FC_GLOBALLY_USED = (0 << 0),
55 ZB_APS_FC_CLUSTER_SPECIFIC = (1 << 0),
59 ZB_ZCL_CLIENT_TO_SERVER = (0 << 3),
60 ZB_ZCL_SERVER_TO_CLIENT = (1 << 3),
61 } zb_zcl_fc_direction_e;
64 ZB_ZCL_LEAVE_WELL_ALONE = (0 << 4),
65 ZB_ZCL_DISABLE_DEFAULT_RESPONSE = (1 << 4),
66 } zb_zcl_fc_disable_default_response_e;
69 ZB_ZCL_FC_NOT_MANUFACTURER = (0 << 2),
70 ZB_ZCL_FC_MANUFACTURER = (1 << 2),
71 } zb_zcl_fc_manufacturer_present_e;
73 class Zigbee:public GDbus {
79 int zbl_disable(void);
81 #endif /* __ZIGBEE_MANAGER_H__ */