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 ModemStatusIndicator.cpp Source File

ModemStatusIndicator.cpp

00001 #include "ModemStatusIndicator.h"
00002 
00003 ModemStatusIndicator::ModemStatusIndicator(APIFrame * frame)
00004     : RxBase(frame)
00005 { }
00006 
00007 int  ModemStatusIndicator::getModemStatus()
00008 {
00009     return data[1];
00010 }
00011 
00012 bool  ModemStatusIndicator::convert(APIFrame * frame)
00013 {
00014     if (frame == NULL)
00015         return false;
00016 
00017     if (frame->getFrameType() != APIFrame::Modem_Status)
00018         return false;
00019 
00020     return APIFrame::convert(frame);
00021 }