Logo
Developing with ZBOSS for Zigbee
zb_zcl_prepayment_snapshot_payload_s Struct Reference

#include <zb_zcl_prepayment.h>

Data Fields

zb_uint8_t snapshot_payload_type
 
union {
   struct {
      zb_int32_t   accumulated_debt
 
      zb_uint32_t   type_1_debt_remaining
 
      zb_uint32_t   type_2_debt_remaining
 
      zb_uint32_t   type_3_debt_remaining
 
      zb_int32_t   emergency_credit_remaining
 
      zb_int32_t   credit_remaining
 
   }   debt_credit_status
 
u
 

Detailed Description

Debt/Credit Status Command Payload

See also
SE spec, Figure D-128

Field Documentation

§ accumulated_debt

zb_int32_t zb_zcl_prepayment_snapshot_payload_s::accumulated_debt

The AccumulatedDebt field represents the total amount of debt remaining on the Metering Device, measured in a base unit of Currency with the decimal point located as indicated by the Trailing Digits field, as defined in the Price cluster.

§ credit_remaining

zb_int32_t zb_zcl_prepayment_snapshot_payload_s::credit_remaining

The CreditRemaining field represents the amount of credit remaining on the Metering Device. If Monetary based, this field is measured in a base unit of Currency or in Units, with the decimal point.

§ debt_credit_status

struct { ... } zb_zcl_prepayment_snapshot_payload_s::debt_credit_status

§ emergency_credit_remaining

zb_int32_t zb_zcl_prepayment_snapshot_payload_s::emergency_credit_remaining

The EmergencyCreditRemaining field represents the amount of Emergency Credit still available on the Metering Device. If Monetary based, this field is measured in a base unit of Currency or in Units, with the decimal point

§ snapshot_payload_type

zb_uint8_t zb_zcl_prepayment_snapshot_payload_s::snapshot_payload_type

§ type_1_debt_remaining

zb_uint32_t zb_zcl_prepayment_snapshot_payload_s::type_1_debt_remaining

The Type1DebtRemaining field represents the amount of Type 1 debt remaining on the Metering Device, measured in base unit of Currency with the decimal point located as indicated by the Trailing Digits field, as defined in the Price cluster.

§ type_2_debt_remaining

zb_uint32_t zb_zcl_prepayment_snapshot_payload_s::type_2_debt_remaining

The Type2DebtRemaining field represents the amount of Type 2 debt remaining on the Metering Device, measured in base unit of Currency with the decimal point located as indicated by the TrailingDigits field, as defined in the Price cluster.

§ type_3_debt_remaining

zb_uint32_t zb_zcl_prepayment_snapshot_payload_s::type_3_debt_remaining

The Type3DebtRemaining field represents the amount of Type 3 debt remaining on the Metering Device, measured in base unit of Currency with the decimal point located as indicated by the TrailingDigits field, as defined in the Price cluster.

§ u

union { ... } zb_zcl_prepayment_snapshot_payload_s::u

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