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

Committer:
yangcq88517
Date:
Thu Oct 22 12:28:26 2015 +0000
Revision:
0:837e6c48e90d
Child:
6:5f31ddc17239
initial upload

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yangcq88517 0:837e6c48e90d 1 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_ExplicitAddress
yangcq88517 0:837e6c48e90d 2 #define UK_AC_HERTS_SMARTLAB_XBEE_ExplicitAddress
yangcq88517 0:837e6c48e90d 3
yangcq88517 0:837e6c48e90d 4 #include "Address.h"
yangcq88517 0:837e6c48e90d 5
yangcq88517 0:837e6c48e90d 6 class ExplicitAddress : public Address
yangcq88517 0:837e6c48e90d 7 {
yangcq88517 0:837e6c48e90d 8 private:
yangcq88517 0:837e6c48e90d 9 // total 6 bytes
yangcq88517 0:837e6c48e90d 10 // 1 byte of SourceEndpoint + 1 byte of DestinationEndpoint + 2 bytes of ClusterID + 2 bytes of ProfileID
yangcq88517 0:837e6c48e90d 11 char explicitValue[6];
yangcq88517 0:837e6c48e90d 12
yangcq88517 0:837e6c48e90d 13 public:
yangcq88517 0:837e6c48e90d 14 ExplicitAddress() ;
yangcq88517 0:837e6c48e90d 15
yangcq88517 0:837e6c48e90d 16 ExplicitAddress (const char * AddressValue, const char * ExplicitValue );
yangcq88517 0:837e6c48e90d 17
yangcq88517 0:837e6c48e90d 18 ExplicitAddress(long SerialNumberHigh, long SerialNumberLow, int NetworkAddress, int SourceEndpoint, int DestinationEndpoint, int ClusterID, int ProfileID);
yangcq88517 0:837e6c48e90d 19
yangcq88517 0:837e6c48e90d 20 /// <summary>
yangcq88517 0:837e6c48e90d 21 /// total 6 bytes
yangcq88517 0:837e6c48e90d 22 /// 1 byte of SourceEndpoint + 1 byte of DestinationEndpoint + 2 bytes of ClusterID + 2 bytes of ProfileID
yangcq88517 0:837e6c48e90d 23 /// </summary>
yangcq88517 0:837e6c48e90d 24 /// <returns></returns>
yangcq88517 0:837e6c48e90d 25 char * getExplicitValue();
yangcq88517 0:837e6c48e90d 26
yangcq88517 0:837e6c48e90d 27 int getSourceEndpoint();
yangcq88517 0:837e6c48e90d 28
yangcq88517 0:837e6c48e90d 29 void setSourceEndpoint(int SourceEndpoint);
yangcq88517 0:837e6c48e90d 30
yangcq88517 0:837e6c48e90d 31 int getDestinationEndpoint();
yangcq88517 0:837e6c48e90d 32
yangcq88517 0:837e6c48e90d 33 void setDestinationEndpoint(int DestinationEndpoint);
yangcq88517 0:837e6c48e90d 34
yangcq88517 0:837e6c48e90d 35 int getClusterID();
yangcq88517 0:837e6c48e90d 36
yangcq88517 0:837e6c48e90d 37 void setClusterID(int ClusterID);
yangcq88517 0:837e6c48e90d 38
yangcq88517 0:837e6c48e90d 39 int getProfileID();
yangcq88517 0:837e6c48e90d 40
yangcq88517 0:837e6c48e90d 41 void setProfileID(int ProfileID);
yangcq88517 0:837e6c48e90d 42 };
yangcq88517 0:837e6c48e90d 43
yangcq88517 0:837e6c48e90d 44 #endif