Developing with ZBOSS for Zigbee
zb_zcl_price_block_threshold_sub_payload_s Struct Reference

#include <zb_zcl_price.h>

Data Fields

zb_uint8_t tier_number_of_block_thresholds
zb_uint48_t block_threshold [15]

Detailed Description

BlockThreshold Sub-Payload Format

See also
SE spec, subclause D.

Field Documentation

◆ block_threshold

zb_uint48_t zb_zcl_price_block_threshold_sub_payload_s::block_threshold[15]

The Block Thresholds represent the threshold values applicable to an individual block period and, where applicable, to a particular tier.

◆ tier_number_of_block_thresholds

zb_uint8_t zb_zcl_price_block_threshold_sub_payload_s::tier_number_of_block_thresholds

The Tier/NumberOfBlockThresholds field is an 8 bitmap. The format of the bitmap is decided by bit0 of the sub-payload control field.
If Bit0 of the Sub-Payload Control field is 0, then the least significant nibble represents a value specifying the number of thresholds to follow in the command. The most significant nibble represents the Tier that the subsequent block threshold values apply to.
If Bit0 of the Sub-Payload Control field is 1, then the most significant nibble is unused and should be set to 0.
Valid values for the NumberOfBlockThresholds sub-field are 0 to 15 reflecting no block in use (0) to block 15(15). Valid values for the Tiers sub-field are from 0 to 15 reflecting no tier to tier fifteen.

The documentation for this struct was generated from the following file: