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.
XBeeRx16IOSampleIndicator.cpp
00001 #include "XBeeRx16IOSampleIndicator.h" 00002 00003 XBeeRx16IOSampleIndicator::XBeeRx16IOSampleIndicator(APIFrame *frame) 00004 : RxBase(frame) 00005 {} 00006 00007 int XBeeRx16IOSampleIndicator::getRSSI() 00008 { 00009 return data[3] * -1; 00010 } 00011 00012 IOSamples * XBeeRx16IOSampleIndicator::getIOSamples() 00013 { 00014 return IOSampleDecoder::XBeeSamplesParse(data + 5); 00015 //return samples; 00016 } 00017 00018 int XBeeRx16IOSampleIndicator::getSamplesCount() 00019 { 00020 return data[5]; 00021 } 00022 00023 int XBeeRx16IOSampleIndicator::getReceiveStatus() 00024 { 00025 return data[4]; 00026 } 00027 00028 Address XBeeRx16IOSampleIndicator::getRemoteDevice() 00029 { 00030 return Address(NULL, data + 1); 00031 } 00032 00033 bool XBeeRx16IOSampleIndicator::convert(APIFrame * frame) 00034 { 00035 if (frame == NULL) 00036 return false; 00037 00038 if (frame->getFrameType() != APIFrame::Rx16_IO_Data_Sample_Rx_Indicator) 00039 return false; 00040 00041 return APIFrame::convert(frame); 00042 }
Generated on Tue Jul 12 2022 18:56:10 by 1.7.2