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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ExplicitAddress.h Source File

ExplicitAddress.h

00001 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_ExplicitAddress
00002 #define UK_AC_HERTS_SMARTLAB_XBEE_ExplicitAddress
00003 
00004 #include "Address.h"
00005 
00006 class ExplicitAddress : public Address
00007 {
00008 private:
00009     // total 6 bytes
00010     // 1 byte of SourceEndpoint + 1 byte of DestinationEndpoint + 2 bytes of ClusterID + 2 bytes of ProfileID
00011     unsigned char explicitValue[6];
00012 
00013 public:
00014     ExplicitAddress() ;
00015 
00016     ExplicitAddress (const unsigned  char * AddressValue, const unsigned  char * ExplicitValue );
00017 
00018     ExplicitAddress(long SerialNumberHigh, long SerialNumberLow, int NetworkAddress, int SourceEndpoint, int DestinationEndpoint, int ClusterID, int ProfileID);
00019 
00020     /// <summary>
00021     /// total 6 bytes
00022     /// 1 byte of SourceEndpoint + 1 byte of DestinationEndpoint + 2 bytes of ClusterID + 2 bytes of ProfileID
00023     /// </summary>
00024     /// <returns></returns>
00025     unsigned  char * getExplicitValue();
00026 
00027     unsigned char getSourceEndpoint();
00028 
00029     void setSourceEndpoint(unsigned char SourceEndpoint);
00030 
00031     unsigned char getDestinationEndpoint();
00032 
00033     void setDestinationEndpoint(unsigned char DestinationEndpoint);
00034 
00035     unsigned int getClusterID();
00036 
00037     void setClusterID(unsigned int ClusterID);
00038 
00039     unsigned int getProfileID();
00040 
00041     void setProfileID(unsigned int ProfileID);
00042 };
00043 
00044 #endif