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.
XBeeRx64Indicator.cpp
00001 #include "XBeeRx64Indicator.h" 00002 00003 XBeeRx64Indicator::XBeeRx64Indicator(APIFrame * frame) 00004 : RxBase(frame) 00005 { } 00006 00007 unsigned char * XBeeRx64Indicator::getReceivedData() 00008 { 00009 if (getReceivedDataLength() <= 0) 00010 return NULL; 00011 00012 return data + 11; 00013 } 00014 00015 int XBeeRx64Indicator::getReceivedDataOffset() 00016 { 00017 return 11; 00018 } 00019 00020 char XBeeRx64Indicator::getReceivedData(int index) 00021 { 00022 return data[11 + index]; 00023 } 00024 00025 int XBeeRx64Indicator::getReceivedDataLength() 00026 { 00027 return getPosition() - 11; 00028 } 00029 00030 int XBeeRx64Indicator::getRSSI() 00031 { 00032 return data[9] * -1; 00033 } 00034 00035 int XBeeRx64Indicator::getReceiveStatus() 00036 { 00037 return data[10]; 00038 } 00039 00040 Address XBeeRx64Indicator::getRemoteDevice() 00041 { 00042 return Address(data + 1, NULL); 00043 } 00044 00045 bool XBeeRx64Indicator::convert(APIFrame * frame) 00046 { 00047 if (frame == NULL) 00048 return false; 00049 00050 if (frame->getFrameType() != APIFrame::Rx64_Receive_Packet) 00051 return false; 00052 00053 return APIFrame::convert(frame); 00054 } 00055
Generated on Tue Jul 12 2022 18:56:10 by 1.7.2