Compile-time options
This section describes the compile-time options that may be enabled in the zcl_options.h file of an application that uses the Price cluster.
The Price cluster is enabled by defining CLD_PRICE.
Client and server versions of the cluster are defined by PRICE_CLIENT and PRICE_SERVER, respectively.
Price List Size
The maximum number of prices that can be stored in the price list on a server and client defaults to five and two respectively. These default values can be over-ridden by assigning values to the corresponding macro below:
SE_PRICE_NUMBER_OF_SERVER_PRICE_RECORD_ENTRIES
SE_PRICE_NUMBER_OF_CLIENT_PRICE_RECORD_ENTRIES
Price Tier Label Attribute Set
The maximum number of supported Price Tier Label Attribute Sets can be defined by assigning a value between 1 and 15 (inclusive) to CLD_P_ATTR_TIER_PRICE_LABEL_MAX_COUNT.
Block Threshold Attribute Set
The maximum number of supported Block Threshold Attribute Sets can be defined by assigning a value between 1 to 15 (inclusive) to CLD_P_ATTR_BLOCK_THRESHOLD_MAX_COUNT.
Block Price Information Attribute Set
The maximum number of supported Block Price Information Attribute Sets can be defined by assigning a value (the maximum of which is shown below in brackets) to each of the following:
CLD_P_ATTR_NO_TIER_BLOCK_PRICES_MAX_COUNT (16)
CLD_P_ATTR_NUM_OF_TIERS_PRICE (15)
CLD_P_ATTR_NUM_OF_BLOCKS_IN_EACH_TIER_PRICE (16)
Conversion Factor (Gas Only)
Conversion factor in the Price cluster is enabled by defining the macro PRICE_CONVERSION_FACTOR.
The attributes for conversion factor are enabled by defining the following macros:
CLD_P_ATTR_CONVERSION_FACTOR
CLD_P_ATTR_CONVERSION_FACTOR_TRAILING_DIGIT
The default value of the maximum number of entries that can be stored in the conversion factor list which is maintained on the Price cluster server and client is 2. This value can be over-ridden by assigning another value to the macro:
SE_PRICE_NUMBER_OF_CONVERSION_FACTOR_ENTRIES
Calorific Value (Gas Only)
Calorific value in the Price cluster is enabled by defining the macro PRICE_CALORIFIC_VALUE.
The attributes for calorific value are enabled by defining the following macros:
CLD_P_ATTR_CALORIFIC_VALUE
CLD_P_ATTR_CALORIFIC_VALUE_UNIT
CLD_P_ATTR_CALORIFIC_VALUE_TRAILING_DIGIT
The default value of the maximum number of entries that can be stored in the calorific value list which is maintained on the server and client is 2. This value can be over-ridden by assigning another value to the macro:
SE_PRICE_NUMBER_OF_CALORIFIC_VALUE_ENTRIES
Parent topic:Price Cluster