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 |
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 |