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.
Device/ExplicitAddress.h
- Committer:
- yangcq88517
- Date:
- 2015-11-14
- Revision:
- 6:5f31ddc17239
- Parent:
- 0:837e6c48e90d
File content as of revision 6:5f31ddc17239:
#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 unsigned char explicitValue[6]; public: ExplicitAddress() ; ExplicitAddress (const unsigned char * AddressValue, const unsigned 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> unsigned char * getExplicitValue(); unsigned char getSourceEndpoint(); void setSourceEndpoint(unsigned char SourceEndpoint); unsigned char getDestinationEndpoint(); void setDestinationEndpoint(unsigned char DestinationEndpoint); unsigned int getClusterID(); void setClusterID(unsigned int ClusterID); unsigned int getProfileID(); void setProfileID(unsigned int ProfileID); }; #endif