XBee API operation library for mbed
Embed:
(wiki syntax)
Show/hide line numbers
ISampleResponse.h
00001 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_ISampleResponse 00002 #define UK_AC_HERTS_SMARTLAB_XBEE_ISampleResponse 00003 00004 #include "Address.h" 00005 #include "IOSamples.h" 00006 #include "IOSampleDecoder.h" 00007 00008 class ISampleResponse 00009 { 00010 protected: 00011 //IOSamples * samples; 00012 00013 public: 00014 virtual IOSamples * getIOSamples() = 0; 00015 00016 virtual int getSamplesCount() = 0; 00017 00018 /** 00019 * bit mask 00020 * SUCCESS = 0x00, 00021 * PACKET_ACKNOWLEDGED = 0x01, 00022 * PACKET_WAS_A_BROADCAST = 0x02, 00023 * PACKET_RECEIVED_ON_BOARDCAST_PAN = 0x04, 00024 * PACKET_ENCRYPTED_WITH_APS_ENCRYPTION = 0x20, 00025 * PACKET_WAS_SENT_FROM_AN_END_DEVICE = 0x40, 00026 */ 00027 virtual int getReceiveStatus() = 0; 00028 00029 virtual Address getRemoteDevice() = 0; 00030 00031 /// <summary> 00032 /// not apply to ZigBee 00033 /// </summary> 00034 /// <returns></returns> 00035 virtual int getRSSI() = 0; 00036 00037 00038 }; 00039 00040 #endif
Generated on Tue Jul 12 2022 11:17:04 by 1.7.2