ZPS_tsAplZdpNodePowerDescriptor

The ZDP Node Power descriptor structure ZPS_tsAplZdpNodePowerDescriptoris shown below.

typedef struct {
    union
    {
            ZPS_tsAplZdpPowerDescBitFields sBitFields;
            uint16 u16Value;
    }uBitUnion;
} ZPS_tsAplZdpNodePowerDescriptor;

where:

  • sBitFieldsis a structure of type ZPS_tsAplZdpPowerDescBitFields(described below) containing various items of information about the node’s power.

  • u16valueis used for the union and should be set to 0x0000.

ZPS_tsAplZdpPowerDescBitFields

The ZPS_tsAplZdpPowerDescBitFieldsstructure is used by the sBitFields

element in the Node Power descriptor structure (see above), and is shown below:

typedef struct {
    unsigned eCurrentPowerSourceLevel : 4;
    unsigned eCurrentPowerSource : 4;
    unsigned eAvailablePowerSource : 4;
    unsigned eCurrentPowerMode : 4;
}ZPS_tsAplZdpPowerDescBitFields;

where:

  • eCurrentPowerSourceLevelis a 4-bit value roughly indicating the level of charge of the node’s power source (mainly useful for batteries), as follows:

    • 0000: Critically low

    • 0100: Approximately 33%

    • 1000: Approximately 66%

    • 1100: Approximately 100% (near fully charged)

  • eCurrentPowerSourceis a 4-bit value indicating the current power source for the node, as detailed below (the bit corresponding to the current power source is set to 1, all other bits are set to 0):

    • Bit 0: Permanent mains supply

    • Bit 1: Rechargeable battery

    • Bit 2: Disposable battery

    • Bit 4: Reserved

  • eAvailablePowerSourceis a 4-bit value indicating the available power sources for the node, as detailed above (a bit is set to 1 if the corresponding power source is available).

  • eCurrentPowerModeis a 4-bit value indicating the power mode currently used by the node, as follows:

    • 0000: Receiver synchronized with the “receiver on when idle” subfield of the Node descriptor

    • 0001: Receiver switched on periodically, as defined by the Node Power descriptor

    • 0010: Receiver switched on when stimulated, for example, by pressing a button

    • All other values are reserved.

Parent topic:ZPS_tsAplZdpNodePowerDescriptor

Parent topic:Descriptor structures