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

Revision:
0:837e6c48e90d
Child:
6:5f31ddc17239
diff -r 000000000000 -r 837e6c48e90d Device/ExplicitAddress.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Device/ExplicitAddress.h	Thu Oct 22 12:28:26 2015 +0000
@@ -0,0 +1,44 @@
+#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
\ No newline at end of file