XBee API operation library for mbed
Embed:
(wiki syntax)
Show/hide line numbers
ZigBeeTxStatusIndicator.cpp
00001 #include "ZigBeeTxStatusIndicator.h" 00002 00003 ZigBeeTxStatusIndicator::ZigBeeTxStatusIndicator(APIFrame * frame) 00004 : RxBase(frame) 00005 { } 00006 00007 int ZigBeeTxStatusIndicator::getFrameID() 00008 { 00009 return data[1]; 00010 } 00011 00012 int ZigBeeTxStatusIndicator::getDeliveryStatus() 00013 { 00014 return data[5]; 00015 } 00016 00017 int ZigBeeTxStatusIndicator::getDestinationAddress16() 00018 { 00019 return (data[2] << 8) | data[3]; 00020 } 00021 00022 int ZigBeeTxStatusIndicator::getTransmitRetryCount() 00023 { 00024 return data[4]; 00025 } 00026 00027 int ZigBeeTxStatusIndicator::getDiscoveryStatus() 00028 { 00029 return data[6]; 00030 } 00031 00032 bool ZigBeeTxStatusIndicator::convert(APIFrame * frame) 00033 { 00034 if (frame == NULL) 00035 return false; 00036 00037 if (frame->getFrameType() != APIFrame::ZigBee_Transmit_Status) 00038 return false; 00039 00040 return APIFrame::convert(frame); 00041 }
Generated on Tue Jul 12 2022 11:17:05 by 1.7.2