Functions | |
| void | zb_zcl_power_config_write_attr_hook (zb_uint8_t endpoint, zb_uint16_t attr_id, zb_uint8_t *new_value) |
| Hook on Write attribute. More... | |
Detailed Description
Macro Definition Documentation
◆ ZB_ZCL_DECLARE_POWER_CONFIG_ATTRIB_LIST
| #define ZB_ZCL_DECLARE_POWER_CONFIG_ATTRIB_LIST | ( | attr_list, | |
| voltage, | |||
| size, | |||
| quantity, | |||
| rated_voltage, | |||
| alarm_mask, | |||
| voltage_min_threshold | |||
| ) |
Value:
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_POWER_CONFIG) \ ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_POWER_CONFIG_BATTERY_VOLTAGE_ID(voltage, ), \ ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_POWER_CONFIG_BATTERY_SIZE_ID(size, ), \ ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_POWER_CONFIG_BATTERY_QUANTITY_ID(quantity, ), \ ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_POWER_CONFIG_BATTERY_RATED_VOLTAGE_ID(rated_voltage, ), \ ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_POWER_CONFIG_BATTERY_ALARM_MASK_ID(alarm_mask, ), \ ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_POWER_CONFIG_BATTERY_VOLTAGE_MIN_THRESHOLD_ID(voltage_min_threshold, ), \ ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST
Declare attribute list for Power Configuration cluster - server side.
- Parameters
-
attr_list - attribute list name voltage - pointer to variable to store BatteryVoltage attribute size - pointer to variable to store BatterySize attribute quantity - pointer to variable to store BatteryQuantity attribute rated_voltage - pointer to variable to store BatteryRatedVoltage attribute alarm_mask - pointer to variable to store BatteryAlarmMask attribute voltage_min_threshold - pointer to variable to store BatteryVoltageMinThreshold attribute
◆ ZB_ZCL_DECLARE_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT
| #define ZB_ZCL_DECLARE_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT | ( | attr_list, | |
| voltage, | |||
| size, | |||
| quantity, | |||
| rated_voltage, | |||
| alarm_mask, | |||
| voltage_min_threshold, | |||
| remaining, | |||
| threshold1, | |||
| threshold2, | |||
| threshold3, | |||
| min_threshold, | |||
| percent_threshold1, | |||
| percent_threshold2, | |||
| percent_threshold3, | |||
| alarm_state | |||
| ) |
Value:
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_POWER_CONFIG) \ ZB_ZCL_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT(bat_num, \ voltage, size, quantity, rated_voltage, alarm_mask, voltage_min_threshold, \ remaining, threshold1, threshold2, threshold3, min_threshold, percent_threshold1, \ percent_threshold2, percent_threshold3, alarm_state) \ ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST
Declare attribute list for Power Configuration cluster - server side (Battery attribute list extended)
- Parameters
-
attr_list - attribute list name voltage - pointer to variable to store BatteryVoltage attribute size - pointer to variable to store BatterySize attribute quantity - pointer to variable to store BatteryQuantity attribute rated_voltage - pointer to variable to store BatteryRatedVoltage attribute alarm_mask - pointer to variable to store BatteryAlarmMask attribute voltage_min_threshold - pointer to variable to store BatteryVoltageMinThreshold attribute remaining - pointer to variable to store BatteryPercentageRemaining attribute threshold1 - pointer to variable to store BatteryVoltageThreshold1 attribute threshold2 - pointer to variable to store BatteryVoltageThreshold2 attribute threshold3 - pointer to variable to store BatteryVoltageThreshold3 attribute min_threshold - pointer to variable to store BatteryPercentageMinThreshold attribute percent_threshold1 - pointer to variable to store BatteryPercentageThreshold1 attribute percent_threshold2 - pointer to variable to store BatteryPercentageThreshold2 attribute percent_threshold3 - pointer to variable to store BatteryPercentageThreshold3 attribute alarm_state - pointer to variable to store BatteryAlarmState attribute
◆ ZB_ZCL_DECLARE_POWER_CONFIG_MAINS_ATTRIB_LIST
| #define ZB_ZCL_DECLARE_POWER_CONFIG_MAINS_ATTRIB_LIST | ( | attr_list, | |
| voltage, | |||
| frequency, | |||
| alarm_mask, | |||
| voltage_min_threshold, | |||
| voltage_max_threshold, | |||
| dwell_trip_point | |||
| ) |
Value:
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_POWER_CONFIG) \ ZB_ZCL_POWER_CONFIG_MAINS_ATTRIB_LIST(voltage, frequency, alarm_mask, \ voltage_min_threshold, voltage_max_threshold, \ dwell_trip_point) \ ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST
Declare attribute list for Power Configuration cluster - server side (Mains attribute set)
- Parameters
-
attr_list - attribute list name voltage - pointer to variable to store MainsVoltage attribute frequency - pointer to variable to store MainsFrequency attribute alarm_mask - pointer to variable to store BatteryAlarmMask attribute voltage_min_threshold - pointer to variable to store MainsVoltageMinThreshold attribute voltage_max_threshold - pointer to variable to store MainsVoltageMaxThreshold attribute dwell_trip_point - pointer to variable to store MainsVoltageDwellTripPoint attribute
Enumeration Type Documentation
◆ zb_zcl_power_config_attr_e
Power Configuration cluster attribute identifiers.
- See also
- ZCL spec, Power Configuration Cluster 3.3.2.2
◆ zb_zcl_power_config_battery_alarm_code_e
Power Configuration Alarm Code for Alarm.
- See also
- ZCL spec 3.3.2.2.4.7, Table 3-25
◆ zb_zcl_power_config_battery_alarm_mask_e
Power Configuration BatteryAlarmMask value see ZCL spec 3.3.2.2.4.7.
◆ zb_zcl_power_config_battery_alarm_state_e
Power Configuration BatteryAlarmState.
- See also
- ZCL spec 3.3.2.2.4.11, Table 3-26
◆ zb_zcl_power_config_battery_size_e
Power Configuration BatterySize value see ZCL spec 3.3.2.2.4.2.
◆ zb_zcl_power_config_mains_alarm_mask_e
Power Configuration MainsAlarmMask value see ZCL spec 3.3.2.2.4.7.
Function Documentation
◆ zb_zcl_power_config_write_attr_hook()
| void zb_zcl_power_config_write_attr_hook | ( | zb_uint8_t | endpoint, |
| zb_uint16_t | attr_id, | ||
| zb_uint8_t * | new_value | ||
| ) |
Hook on Write attribute.
- Parameters
-
endpoint - endpoint number attr_id - ID of attribute being written new_value - pointer to new value of attribute