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:
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?

UserRevisionLine numberNew contents of line
yangcq88517 0:837e6c48e90d 1 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_ZigBeeExplicitTxRequest
yangcq88517 0:837e6c48e90d 2 #define UK_AC_HERTS_SMARTLAB_XBEE_ZigBeeExplicitTxRequest
yangcq88517 0:837e6c48e90d 3
yangcq88517 0:837e6c48e90d 4 #include "TxBase.h"
yangcq88517 0:837e6c48e90d 5 #include "IPayloadRequest.h"
yangcq88517 0:837e6c48e90d 6 #include "ExplicitAddress.h"
yangcq88517 0:837e6c48e90d 7
yangcq88517 0:837e6c48e90d 8 class ZigBeeExplicitTxRequest : public TxBase, public IPayloadRequest
yangcq88517 0:837e6c48e90d 9 {
yangcq88517 0:837e6c48e90d 10
yangcq88517 0:837e6c48e90d 11 public:
yangcq88517 0:837e6c48e90d 12 //0x11
yangcq88517 0:837e6c48e90d 13 //FrameID;
yangcq88517 0:837e6c48e90d 14 //ExplicitRemoteDevice
yangcq88517 0:837e6c48e90d 15 //Source Endpoint
yangcq88517 0:837e6c48e90d 16 //Destination Endpoint
yangcq88517 0:837e6c48e90d 17 //Cluster ID
yangcq88517 0:837e6c48e90d 18 //Profile ID
yangcq88517 0:837e6c48e90d 19 //Broadcast_Radius;
yangcq88517 0:837e6c48e90d 20 //TransmitOptions;
yangcq88517 0:837e6c48e90d 21 //RF_Data;
yangcq88517 6:5f31ddc17239 22 ZigBeeExplicitTxRequest(unsigned char frameID, ExplicitAddress * remoteAddress, OptionsBase * transmitOptions, const unsigned char * payload, int offset, int length);
yangcq88517 0:837e6c48e90d 23
yangcq88517 6:5f31ddc17239 24 virtual void setPayload(const unsigned char * data, int offset, int length);
yangcq88517 0:837e6c48e90d 25
yangcq88517 0:837e6c48e90d 26 virtual void setTransmitOptions(OptionsBase * transmitOptions);
yangcq88517 0:837e6c48e90d 27
yangcq88517 0:837e6c48e90d 28 virtual void setRemoteAddress(Address * remoteAddress);
yangcq88517 0:837e6c48e90d 29
yangcq88517 0:837e6c48e90d 30 void setRemoteAddress(ExplicitAddress * remoteAddress);
yangcq88517 0:837e6c48e90d 31
yangcq88517 6:5f31ddc17239 32 void setBroadcastRadius(unsigned char broadcastRadius);
yangcq88517 0:837e6c48e90d 33
yangcq88517 0:837e6c48e90d 34 };
yangcq88517 0:837e6c48e90d 35
yangcq88517 0:837e6c48e90d 36 #endif