#include <zigbee_types.h>
+/* -----------------------------------------------------------------------------
+ * For Requests
+ * ---------------------------------------------------------------------------*/
+
/**
* @brief Definition for ZCL scene add scene structure.
* @since_tizen 3.0
*/
typedef struct {
- short node_id; /**< Node ID */
- char dest_ep; /**< Destination endpoint */
- short group_id; /**< Group ID */
- char scene_id; /**< Scene ID */
- short transition_time; /**< Transition time */
+ unsigned short node_id; /**< Node ID */
+ unsigned char dest_ep; /**< Destination endpoint */
+ unsigned short group_id; /**< Group ID */
+ unsigned char scene_id; /**< Scene ID */
+ unsigned short transition_time; /**< Transition time */
char scene_name[ZIGBEE_ZCL_SCENE_NAME_MAX_LEN + 1]; /**< Scene name (NULL terminated */
- short ext_field_set_len; /**< Extended field set length */
- short *ext_field_set; /**< Extended field set */
+ unsigned short ext_field_set_len; /**< Extended field set length */
+ unsigned char *ext_field_set; /**< Extended field set */
} ZigbeeZclSceneAddScene_t;
/**
* @since_tizen 3.0
*/
typedef struct {
- short node_id; /**< Node ID */
- char dest_ep; /**< Destination endpoint */
- short group_id; /**< Group ID */
- char scene_id; /**< Scene ID */
+ unsigned short node_id; /**< Node ID */
+ unsigned char dest_ep; /**< Destination endpoint */
+ unsigned short group_id; /**< Group ID */
+ unsigned char scene_id; /**< Scene ID */
} ZigbeeZclSceneViewScene_t;
/**
* @since_tizen 3.0
*/
typedef struct {
- short node_id; /**< Node ID */
- char dest_ep; /**< Destination endpoint */
- short group_id; /**< Group ID */
- char scene_id; /**< Scene ID */
+ unsigned short node_id; /**< Node ID */
+ unsigned char dest_ep; /**< Destination endpoint */
+ unsigned short group_id; /**< Group ID */
+ unsigned char scene_id; /**< Scene ID */
} ZigbeeZclSceneRemoveScene_t;
/**
* @since_tizen 3.0
*/
typedef struct {
- short node_id; /**< Node ID */
- char dest_ep; /**< Destination endpoint */
- short group_id; /**< Group ID */
- char scene_id; /**< Scene ID */
+ unsigned short node_id; /**< Node ID */
+ unsigned char dest_ep; /**< Destination endpoint */
+ unsigned short group_id; /**< Group ID */
+ unsigned char scene_id; /**< Scene ID */
} ZigbeeZclSceneStoreScene_t;
/**
* @since_tizen 3.0
*/
typedef struct {
- short node_id; /**< Node ID */
- char dest_ep; /**< Destination endpoint */
- short group_id; /**< Group ID */
- char scene_id; /**< Scene ID */
+ unsigned short node_id; /**< Node ID */
+ unsigned char dest_ep; /**< Destination endpoint */
+ unsigned short group_id; /**< Group ID */
+ unsigned char scene_id; /**< Scene ID */
} ZigbeeZclSceneRecallScene_t;
/**
* @since_tizen 3.0
*/
typedef struct {
- short node_id; /**< Node ID */
- char dest_ep; /**< Destination endpoint */
- short group_id; /**< Group ID */
+ unsigned short node_id; /**< Node ID */
+ unsigned char dest_ep; /**< Destination endpoint */
+ unsigned short group_id; /**< Group ID */
} ZigbeeZclSceneRemoveAllScene_t;
/**
* @since_tizen 3.0
*/
typedef struct {
- short node_id; /**< Node ID */
- char dest_ep; /**< Destination endpoint */
- short group_id; /**< Group ID */
+ unsigned short node_id; /**< Node ID */
+ unsigned char dest_ep; /**< Destination endpoint */
+ unsigned short group_id; /**< Group ID */
} ZigbeeZclSceneGetSceneMembership_t;
+/* -----------------------------------------------------------------------------
+ * For Notification
+ * ---------------------------------------------------------------------------*/
+
+/**
+ * @brief Definition for ZCL scene add scene response structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+ unsigned short node_id; /**< Node ID */
+ unsigned char src_ep; /**< Destination endpoint */
+ unsigned char status; /**< Status */
+ unsigned short group_id; /**< Group ID */
+ unsigned char scene_id; /**< Scene ID */
+} ZigbeeZclSceneAddSceneResp_t;
+
+/**
+ * @brief Definition for ZCL scene view scene response structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+ unsigned short node_id; /**< Node ID */
+ unsigned char src_ep; /**< Source endpoint */
+ unsigned short group_id; /**< Group ID */
+ unsigned char status; /**< Status */
+ unsigned char scene_id; /**< Scene ID */
+ unsigned short transition_time; /**< Transition time */
+ char *scene_name; /**< Scene name (NULL terminated */
+ unsigned short ext_field_set_len; /**< Extended field set length */
+ unsigned char *ext_field_set; /**< Extended field set */
+} ZigbeeZclSceneViewSceneResp_t;
+
+/**
+ * @brief Definition for ZCL scene remove scene response structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+ unsigned short node_id; /**< Node ID */
+ unsigned char src_ep; /**< Source endpoint */
+ unsigned char status; /**< Status */
+ unsigned short group_id; /**< Group ID */
+ unsigned char scene_id; /**< Scene ID */
+} ZigbeeZclSceneRemoveSceneResp_t;
+
+/**
+ * @brief Definition for ZCL scene remove all scene response structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+ unsigned short node_id; /**< Node ID */
+ unsigned char src_ep; /**< Source endpoint */
+ unsigned char status; /**< Status */
+ unsigned short group_id; /**< Group ID */
+} ZigbeeZclSceneRemoveAllSceneResp_t;
+
+/**
+ * @brief Definition for ZCL scene store scene response structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+ unsigned short node_id; /**< Node ID */
+ unsigned char src_ep; /**< Source endpoint */
+ unsigned char status; /**< Status */
+ unsigned short group_id; /**< Group ID */
+ unsigned char scene_id; /**< Scene ID */
+} ZigbeeZclSceneStoreSceneResp_t;
+
+/**
+ * @brief Definition for ZCL scene get scene membership response structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+ unsigned short node_id; /**< Node ID */
+ unsigned char src_ep; /**< Source endpoint */
+ unsigned char status; /**< Status */
+ unsigned char capacity; /**< Capacity */
+ unsigned short group_id; /**< Group ID */
+ unsigned char scene_count; /**< Scene count */
+ unsigned char *scene_list; /**< Scene list */
+} ZigbeeZclSceneGetSceneMembershipResp_t;
+
+
#endif /* __ZIGBEE_ZCL_SCENE_TYPE_H__ */