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 TxBase.h Source File

TxBase.h

00001 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_TxBase
00002 #define UK_AC_HERTS_SMARTLAB_XBEE_TxBase
00003 
00004 #include "APIFrame.h"
00005 
00006 #include "Address.h"
00007 #include "OptionsBase.h"
00008 #include "TransmitOptions.h"
00009 #include "RemoteCommandOptions.h"
00010 
00011 class TxBase : public APIFrame
00012 {
00013 
00014 public:
00015 
00016     /// <summary>
00017     ///
00018     /// </summary>
00019     /// <param name="Length">the length of payload not include Frame Type, Frame ID and CheckSum</param>
00020     /// <param name="identifier">Frame Type</param>
00021     /// <param name="frameID">Frame ID</param>
00022     TxBase(int length, unsigned char identifier, unsigned char frameID);
00023 
00024     /// <summary>
00025     /// this does not affect the position, will always write to position 1
00026     /// </summary>
00027     /// <param name="identifier"></param>
00028     void setFrameID(unsigned char frameID);
00029 
00030     unsigned  char getFrameID();
00031 };
00032 
00033 #endif