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@6:5f31ddc17239, 2015-11-14 (annotated)
- Committer:
- yangcq88517
- Date:
- Sat Nov 14 16:42:36 2015 +0000
- Revision:
- 6:5f31ddc17239
- Parent:
- 0:837e6c48e90d
change to unsigned char array
Who changed what in which revision?
User | Revision | Line number | New 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 | 6:5f31ddc17239 | 11 | unsigned char explicitValue[6]; |
yangcq88517 | 0:837e6c48e90d | 12 | |
yangcq88517 | 0:837e6c48e90d | 13 | public: |
yangcq88517 | 0:837e6c48e90d | 14 | ExplicitAddress() ; |
yangcq88517 | 0:837e6c48e90d | 15 | |
yangcq88517 | 6:5f31ddc17239 | 16 | ExplicitAddress (const unsigned char * AddressValue, const unsigned 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 | 6:5f31ddc17239 | 25 | unsigned char * getExplicitValue(); |
yangcq88517 | 0:837e6c48e90d | 26 | |
yangcq88517 | 6:5f31ddc17239 | 27 | unsigned char getSourceEndpoint(); |
yangcq88517 | 0:837e6c48e90d | 28 | |
yangcq88517 | 6:5f31ddc17239 | 29 | void setSourceEndpoint(unsigned char SourceEndpoint); |
yangcq88517 | 0:837e6c48e90d | 30 | |
yangcq88517 | 6:5f31ddc17239 | 31 | unsigned char getDestinationEndpoint(); |
yangcq88517 | 0:837e6c48e90d | 32 | |
yangcq88517 | 6:5f31ddc17239 | 33 | void setDestinationEndpoint(unsigned char DestinationEndpoint); |
yangcq88517 | 0:837e6c48e90d | 34 | |
yangcq88517 | 6:5f31ddc17239 | 35 | unsigned int getClusterID(); |
yangcq88517 | 0:837e6c48e90d | 36 | |
yangcq88517 | 6:5f31ddc17239 | 37 | void setClusterID(unsigned int ClusterID); |
yangcq88517 | 0:837e6c48e90d | 38 | |
yangcq88517 | 6:5f31ddc17239 | 39 | unsigned int getProfileID(); |
yangcq88517 | 0:837e6c48e90d | 40 | |
yangcq88517 | 6:5f31ddc17239 | 41 | void setProfileID(unsigned int ProfileID); |
yangcq88517 | 0:837e6c48e90d | 42 | }; |
yangcq88517 | 0:837e6c48e90d | 43 | |
yangcq88517 | 0:837e6c48e90d | 44 | #endif |