nRF5 SDK for Thread and Zigbee v1.0.0
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
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

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.

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.

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

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.

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.

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.


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