XBee API operation library for mbed
Embed:
(wiki syntax)
Show/hide line numbers
ATCommandIndicator.h
00001 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_ATCommandIndicator 00002 #define UK_AC_HERTS_SMARTLAB_XBEE_ATCommandIndicator 00003 00004 #include "RxBase.h" 00005 #include "ICommandResponse.h" 00006 00007 class ATCommandIndicator : public ICommandResponse, public RxBase 00008 { 00009 public : 00010 ATCommandIndicator(APIFrame * frame); 00011 00012 virtual int getFrameID(); 00013 00014 virtual unsigned char * getRequestCommand(); 00015 00016 /** 00017 * 00018 * @returns 00019 * OK = 0x00, 00020 * ERROR = 0x01, 00021 * INVALID_COMMAND = 0x02, 00022 * INVALID_Parameter = 0x03, 00023 * TRANSMISSION_FAILED = 0x04, 00024 */ 00025 virtual int getCommandStatus(); 00026 00027 /// <summary> 00028 /// if parameter not presented, null will be returned. 00029 /// </summary> 00030 /// <returns></returns> 00031 virtual unsigned char * getParameter(); 00032 00033 virtual unsigned char getParameter(int index); 00034 00035 virtual int getParameterLength(); 00036 00037 virtual int getParameterOffset(); 00038 00039 bool convert(APIFrame * frame); 00040 }; 00041 00042 #endif
Generated on Tue Jul 12 2022 11:17:04 by 1.7.2