
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... | |
| #define ZB_ZCL_DECLARE_POWER_CONFIG_ATTRIB_LIST | ( | attr_list, | |
| voltage, | |||
| size, | |||
| quantity, | |||
| rated_voltage, | |||
| alarm_mask, | |||
| voltage_min_threshold | |||
| ) |
Declare attribute list for Power Configuration cluster - server side.
| 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 |
| #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 | |||
| ) |
Declare attribute list for Power Configuration cluster - server side (Battery attribute list extended)
| 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 |
| #define ZB_ZCL_DECLARE_POWER_CONFIG_MAINS_ATTRIB_LIST | ( | attr_list, | |
| voltage, | |||
| frequency, | |||
| alarm_mask, | |||
| voltage_min_threshold, | |||
| voltage_max_threshold, | |||
| dwell_trip_point | |||
| ) |
Declare attribute list for Power Configuration cluster - server side (Mains attribute set)
| 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 |
| #define ZB_ZCL_POWER_CONFIG_BATTERY_ALARM_MASK_DEFAULT_VALUE 0x00 |
BatteryAlarmMask attribute default value.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_ALARM_STATE_DEFAULT_VALUE ((zb_uint32_t)0x00000000) |
Default value for BatteryAlarmState attribute.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_ATTRIBUTE_SET 0 |
Battery attribute set the least significant nibble.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_MANUFACTURER_DEFAULT_VALUE {0} |
Default value for BatteryManufacturer attribute.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_PERCENTAGE_MIN_THRESHOLD_DEFAULT_VALUE ((zb_uint8_t)0x00) |
Default value for BatteryPercentageMinThreshold attribute.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_PERCENTAGE_THRESHOLD1_DEFAULT_VALUE ((zb_uint8_t)0x00) |
Default value for BatteryPercentageThreshold1 attribute.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_PERCENTAGE_THRESHOLD2_DEFAULT_VALUE ((zb_uint8_t)0x00) |
Default value for BatteryPercentageThreshold2 attribute.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_PERCENTAGE_THRESHOLD3_DEFAULT_VALUE ((zb_uint8_t)0x00) |
Default value for BatteryPercentageThreshold3 attribute.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_REMAINING_HA_DEFAULT_VALUE ((zb_uint8_t)0) |
Default value for BatteryRemainingHA attribute.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_REMAINING_UNKNOWN 0xff |
Power Configuration BatteryPercentageRemaining attribute unknown value.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_SIZE_DEFAULT_VALUE 0xff |
BatterySize attribute default value.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_SOURCE_2_ATTRIBUTE_SET 0x20 |
Battery Source 2 attribute set the least significant nibble.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_SOURCE_3_ATTRIBUTE_SET 0x40 |
Battery Source 3 attribute set the least significant nibble.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_VOLTAGE_INVALID 0xff |
BatteryVoltage attribute invalid value.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_VOLTAGE_MIN_THRESHOLD_DEFAULT_VALUE ((zb_uint8_t)0x0000) |
Default value for BatteryVoltageMinThreshold attribute.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_VOLTAGE_THRESHOLD1_DEFAULT_VALUE ((zb_uint8_t)0x00) |
Default value for BatteryVoltageThreshold1 attribute.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_VOLTAGE_THRESHOLD2_DEFAULT_VALUE ((zb_uint8_t)0x00) |
Default value for BatteryVoltageThreshold2 attribute.
| #define ZB_ZCL_POWER_CONFIG_BATTERY_VOLTAGE_THRESHOLD3_DEFAULT_VALUE ((zb_uint8_t)0x00) |
Default value for BatteryVoltageThreshold3 attribute.
| #define ZB_ZCL_POWER_CONFIG_CLUSTER_REVISION_DEFAULT ((zb_uint16_t)0x0002u) |
Default value for Power Configuration cluster revision global attribute.
| #define ZB_ZCL_POWER_CONFIG_MAINS_ALARM_MASK_DEFAULT_VALUE ((zb_uint8_t)0x00) |
Default value for MainsAlarmMask attribute.
| #define ZB_ZCL_POWER_CONFIG_MAINS_ATTRIBUTE_SET 0 |
Mains attribute set the least significant nibble.
| #define ZB_ZCL_POWER_CONFIG_MAINS_DWELL_TRIP_POINT_DEFAULT_VALUE ((zb_uint16_t)0x0000) |
Default value for MainsDwellTripPoint attribute.
| #define ZB_ZCL_POWER_CONFIG_MAINS_VOLTAGE_MAX_THRESHOLD_DEFAULT_VALUE ((zb_uint16_t)0xFFFF) |
Default value for MainsVoltageMaxThreshold attribute.
| #define ZB_ZCL_POWER_CONFIG_MAINS_VOLTAGE_MIN_THRESHOLD_DEFAULT_VALUE ((zb_uint16_t)0x0000) |
Default value for MainsVoltageMinThreshold attribute.
| #define ZB_ZCL_POWER_CONFIG_THRESHOLD_ALARM_OMISSION_VALUE ((zb_uint16_t)0xFFFF) |
MainsVoltageMinThreshold and MainsVoltageMaxThreshold values when alarm should not be generated.
Power Configuration cluster attribute identifiers.
Power Configuration Alarm Code for Alarm.
Power Configuration BatteryAlarmMask value see ZCL spec 3.3.2.2.4.7.
Power Configuration BatteryAlarmState.
Power Configuration BatterySize value see ZCL spec 3.3.2.2.4.2.
Power Configuration MainsAlarmMask value see ZCL spec 3.3.2.2.4.7.
| 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.
| endpoint | - endpoint number |
| attr_id | - ID of attribute being written |
| new_value | - pointer to new value of attribute |