Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
tr_scenes_common.h
Go to the documentation of this file.
1
10#ifndef TR_SCENES_COMMON_H
11#define TR_SCENES_COMMON_H
12
13#include "tr_af.h"
14
15// maximum size of scene name
16#define TR_SCENES_COMMON_SCENE_NAME_MAX_LEN 16
17
18// *******************************************************************
19// scene extensions lengths
20// support on/off, level control, and door lock currently
21// *******************************************************************
22#define TR_SCENES_COMMON_EXT_LEVEL_CONTROL_LEN 4
23#define TR_SCENES_COMMON_EXT_ON_OFF_LEN 4
24#define TR_SCENES_COMMON_EXT_DOOR_LOCK_LEN 4
25// max if we have ALL extensions which is needed for parsing the packet
26#define TR_SCENES_COMMON_EXT_MAX_LEN \
27 (TR_SCENES_COMMON_EXT_LEVEL_CONTROL_LEN \
28 + TR_SCENES_COMMON_EXT_ON_OFF_LEN \
29 + TR_SCENES_COMMON_EXT_DOOR_LOCK_LEN)
30
31// *******************************************************************
32// below are structs used to send and receive scene cluster commands
33// *******************************************************************
34
35// add scene response command
36typedef ZB_PACKED_PRE struct
37{
38 zb_uint8_t status;
39 zb_uint16_t group_id;
40 zb_uint8_t scene_id;
42
43// view scene response command
44typedef ZB_PACKED_PRE struct
45{
46 zb_uint8_t status;
47 zb_uint16_t group_id;
48 zb_uint8_t scene_id;
49 zb_uint16_t transition_time;
53
54// remove scene response command
55typedef ZB_PACKED_PRE struct
56{
57 zb_uint8_t status;
58 zb_uint16_t group_id;
59 zb_uint8_t scene_id;
61
62// remove all scenes response command
63typedef ZB_PACKED_PRE struct
64{
65 zb_uint8_t status;
66 zb_uint16_t group_id;
68
69// store scene response command
70typedef ZB_PACKED_PRE struct
71{
72 zb_uint8_t status;
73 zb_uint16_t group_id;
74 zb_uint8_t scene_id;
76
77// no recall scene response
78
79// get scene membership response command
80typedef ZB_PACKED_PRE struct
81{
82 zb_uint8_t status;
83 zb_uint8_t capacity;
84 zb_uint16_t group_id;
85 zb_uint8_t scene_count;
86 zb_uint8_t scene_list[ZB_ZCL_MAX_SCENE_TABLE_RECORDS];
88
89
90#endif // ifndef TR_SCENES_COMMON_H
Trident application framework include.
tr_door_lock_user_status_t status
Definition tr_door_lock_server.h:26
zb_uint16_t group_id
Definition tr_groups_server.h:25
zb_uint8_t capacity
Definition tr_groups_server.h:31
zb_uint8_t scene_name[TR_SCENES_COMMON_SCENE_NAME_MAX_LEN]
Definition tr_scenes_common.h:50
#define TR_SCENES_COMMON_SCENE_NAME_MAX_LEN
Definition tr_scenes_common.h:16
ZB_PACKED_PRE struct @002126164056364037006230247253271112224264357253 tr_scenes_server_view_scene_resp_cmd_t
zb_uint8_t scene_count
Definition tr_scenes_common.h:85
ZB_PACKED_PRE struct @037065050037057171147132063160177322041276363056 tr_scenes_server_get_scene_mship_resp_cmd_t
#define TR_SCENES_COMMON_EXT_MAX_LEN
Definition tr_scenes_common.h:26
zb_uint8_t scene_id
Definition tr_scenes_common.h:40
zb_uint16_t transition_time
Definition tr_scenes_common.h:49
zb_uint8_t extensions[TR_SCENES_COMMON_EXT_MAX_LEN]
Definition tr_scenes_common.h:51
ZB_PACKED_PRE struct @344272356216267216246244130157145035340360271010 tr_scenes_server_remove_all_scenes_resp_cmd_t
ZB_PACKED_PRE struct @275024302057350155136157344152356270220034240116 tr_scenes_server_add_scene_resp_cmd_t
zb_uint8_t scene_list[ZB_ZCL_MAX_SCENE_TABLE_RECORDS]
Definition tr_scenes_common.h:86
ZB_PACKED_PRE struct @370064227100335305062165030017114150261041062216 tr_scenes_server_remove_scene_resp_cmd_t
ZB_PACKED_PRE struct @373303345137207250050174361353103211250252076145 tr_scenes_server_store_scene_resp_cmd_t