XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.

Dependencies:   BufferedArray

Dependents:   MBEDminiproject

Device/ExplicitAddress.h

Committer:
yangcq88517
Date:
2015-10-22
Revision:
0:837e6c48e90d
Child:
6:5f31ddc17239

File content as of revision 0:837e6c48e90d:

#ifndef UK_AC_HERTS_SMARTLAB_XBEE_ExplicitAddress
#define UK_AC_HERTS_SMARTLAB_XBEE_ExplicitAddress

#include "Address.h"

class ExplicitAddress : public Address
{
private:
    // total 6 bytes
    // 1 byte of SourceEndpoint + 1 byte of DestinationEndpoint + 2 bytes of ClusterID + 2 bytes of ProfileID
    char explicitValue[6];

public:
    ExplicitAddress() ;

    ExplicitAddress (const char * AddressValue, const char * ExplicitValue );

    ExplicitAddress(long SerialNumberHigh, long SerialNumberLow, int NetworkAddress, int SourceEndpoint, int DestinationEndpoint, int ClusterID, int ProfileID);

    /// <summary>
    /// total 6 bytes
    /// 1 byte of SourceEndpoint + 1 byte of DestinationEndpoint + 2 bytes of ClusterID + 2 bytes of ProfileID
    /// </summary>
    /// <returns></returns>
    char * getExplicitValue();

    int getSourceEndpoint();

    void setSourceEndpoint(int SourceEndpoint);

    int getDestinationEndpoint();

    void setDestinationEndpoint(int DestinationEndpoint);

    int getClusterID();

    void setClusterID(int ClusterID);

    int getProfileID();

    void setProfileID(int ProfileID);
};

#endif