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

XBeeRx64IOSampleIndicator.h

00001 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_XBeeRx64IOSampleIndicator
00002 #define UK_AC_HERTS_SMARTLAB_XBEE_XBeeRx64IOSampleIndicator
00003 
00004 #include "RxBase.h"
00005 #include "Address.h"
00006 #include "IOSamples.h"
00007 #include "ISampleResponse.h"
00008 
00009 class XBeeRx64IOSampleIndicator: public ISampleResponse, public RxBase
00010 {
00011 public:
00012     XBeeRx64IOSampleIndicator(APIFrame *frame);
00013 
00014     virtual int getRSSI();
00015 
00016     virtual IOSamples * getIOSamples();
00017     
00018     virtual int getSamplesCount();
00019 
00020     /**
00021     * bit mask
00022     * SUCCESS = 0x00,
00023     * PACKET_ACKNOWLEDGED = 0x01,
00024     * PACKET_WAS_A_BROADCAST = 0x02,
00025     * PACKET_RECEIVED_ON_BOARDCAST_PAN = 0x04,
00026     * PACKET_ENCRYPTED_WITH_APS_ENCRYPTION = 0x20,
00027     * PACKET_WAS_SENT_FROM_AN_END_DEVICE = 0x40,
00028     */
00029     virtual int getReceiveStatus();
00030 
00031     virtual Address getRemoteDevice();
00032     
00033     bool convert(APIFrame * frame);
00034 };
00035 
00036 #endif