Data Structures | |
struct | zb_zcl_shade_set_value_param_s |
struct | zb_zcl_shade_get_value_param_s |
Shade Configuration cluster attributes | |
enum | zb_zcl_shade_config_info_attr_e { ZB_ZCL_ATTR_SHADE_CONFIG_PHYSICAL_CLOSED_LIMIT_ID = 0x0000, ZB_ZCL_ATTR_SHADE_CONFIG_MOTOR_STEP_SIZE_ID = 0x0001, ZB_ZCL_ATTR_SHADE_CONFIG_STATUS_ID = 0x0002 } |
Shade Configuration cluster information attribute set identifiers. More... | |
enum | zb_zcl_shade_config_status_type_e { ZB_ZCL_ATTR_SHADE_CONFIG_STATUS_SHADE_OPERATIONAL = 0x00, ZB_ZCL_ATTR_SHADE_CONFIG_STATUS_SHADE_ADJUSTING = 0x01, ZB_ZCL_ATTR_SHADE_CONFIG_STATUS_SHADE_DIRECTION = 0x02, ZB_ZCL_ATTR_SHADE_CONFIG_STATUS_FORWARD_DIRECTION_OF_MOTOR = 0x03, ZB_ZCL_ATTR_SHADE_CONFIG_STATUS_RESERVED = 0x04 } |
Bit values for Status attribute. More... | |
enum | zb_zcl_shade_config_settings_attr_e { ZB_ZCL_ATTR_SHADE_CONFIG_CLOSED_LIMIT_ID = 0x0010, ZB_ZCL_ATTR_SHADE_CONFIG_MODE_ID = 0x0011 } |
Shade cluster settings attribute set identifiers. More... | |
enum | zb_zcl_shade_config_mode_e { ZB_ZCL_ATTR_SHADE_CONFIG_MODE_NORMAL = 0x00, ZB_ZCL_ATTR_SHADE_CONFIG_MODE_CONFIGURE = 0x01, ZB_ZCL_ATTR_SHADE_CONFIG_MODE_RESERVED = 0x02 } |
Permissible values for Mode attribute. More... | |
typedef struct zb_zcl_shade_set_value_param_s | zb_zcl_shade_set_value_param_t |
typedef struct zb_zcl_shade_get_value_param_s | zb_zcl_shade_get_value_param_t |
#define | ZB_ZCL_SET_BIT(conf_var, type_value) |
#define | ZB_ZCL_GET_BIT(conf_var, type_value) ((conf_var) & (type_value)) |
#define | ZB_ZCL_CLR_BIT(conf_var, type_value) |
#define | ZB_ZCL_ATTR_SHADE_CONFIG_STATUS_SET(conf_var, type_value) ZB_ZCL_SET_BIT(conf_var, type_value) |
Sets bits of Status parameter. More... | |
#define | ZB_ZCL_ATTR_SHADE_CONFIG_GET_STATUS_BIT_VAL(conf_var, type_value) ZB_ZCL_GET_BIT(conf_var, type_value) |
Gets bit value of Status parameter. More... | |
#define | ZB_ZCL_ATTR_SHADE_CONFIG_STATUS_CLEAR(conf_var, type_value) ZB_ZCL_CLR_BIT(conf_var, type_value) |
Clear bit of Status parameter. More... | |
#define | ZB_ZCL_SHADE_CONFIG_STATUS_DEFAULT_VALUE 0x00 |
Shade Configuration Status attribute default value. | |
#define | ZB_ZCL_SHADE_CONFIG_CLOSED_LIMIT_DEFAULT_VALUE 0x0001 |
ClosedLimit attribute default value. | |
#define | ZB_ZCL_SHADE_CONFIG_ZERO_POINT_DEFAULT_VALUE 0x0000 |
Zero Point attribute default value. | |
#define | ZB_ZCL_SHADE_CONFIG_MODE_DEFAULT_VALUE ZB_ZCL_ATTR_SHADE_CONFIG_MODE_NORMAL |
Mode attribute default value. | |
Shade Configuration cluster internals | |
#define | ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_SHADE_CONFIG_STATUS_ID(data_ptr) |
#define | ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_SHADE_CONFIG_CLOSED_LIMIT_ID(data_ptr) |
#define | ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_SHADE_CONFIG_MODE_ID(data_ptr) |
#define | ZB_ZCL_DECLARE_SHADE_CONFIG_ATTRIB_LIST(attr_list, status, closed_limit, mode) |
#define | ZB_ZCL_SHADE_CONFIG_REPORT_ATTR_COUNT 0 |
#define | ZB_ZCL_SHADE_SET_MODE(ep, mode_val) |
Shade Configuration cluster command identifiers. More... | |
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_SHADE_CONFIG_CLOSED_LIMIT_ID | ( | data_ptr | ) |
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_SHADE_CONFIG_MODE_ID | ( | data_ptr | ) |
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_SHADE_CONFIG_STATUS_ID | ( | data_ptr | ) |
#define ZB_ZCL_ATTR_SHADE_CONFIG_GET_STATUS_BIT_VAL | ( | conf_var, | |
type_value | |||
) | ZB_ZCL_GET_BIT(conf_var, type_value) |
Gets bit value of Status parameter.
type_value | - bit value to check |
conf_var | - config variable |
#define ZB_ZCL_ATTR_SHADE_CONFIG_STATUS_CLEAR | ( | conf_var, | |
type_value | |||
) | ZB_ZCL_CLR_BIT(conf_var, type_value) |
Clear bit of Status parameter.
type_value | - bit to clear |
conf_var | - config variable |
#define ZB_ZCL_ATTR_SHADE_CONFIG_STATUS_SET | ( | conf_var, | |
type_value | |||
) | ZB_ZCL_SET_BIT(conf_var, type_value) |
Sets bits of Status parameter.
type_value | - bit to set |
conf_var | - config variable |
#define ZB_ZCL_CLR_BIT | ( | conf_var, | |
type_value | |||
) |
#define ZB_ZCL_DECLARE_SHADE_CONFIG_ATTRIB_LIST | ( | attr_list, | |
status, | |||
closed_limit, | |||
mode | |||
) |
Declare attribute list for Shade Configuration cluster
attr_list | - attribure list name |
status | - pointer to variable to store Status attribute value |
closed_limit | - pointer to variable to store ClosedLimit attribute value |
mode | - pointer to variable to store Mode attribute value |
#define ZB_ZCL_SET_BIT | ( | conf_var, | |
type_value | |||
) |
#define ZB_ZCL_SHADE_CONFIG_REPORT_ATTR_COUNT 0 |
Number of attributes mandatory for reporting in Shade Configuration cluster
#define ZB_ZCL_SHADE_SET_MODE | ( | ep, | |
mode_val | |||
) |
Shade Configuration cluster command identifiers.
Macro for setting Mode attribute
ep | - endpoint id |
mode_val | - mode value |
Shade Configuration cluster information attribute set identifiers.
Bit values for Status attribute.