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.
Indicator/RemoteCommandIndicator.h@6:5f31ddc17239, 2015-11-14 (annotated)
- Committer:
- yangcq88517
- Date:
- Sat Nov 14 16:42:36 2015 +0000
- Revision:
- 6:5f31ddc17239
- Parent:
- 0:837e6c48e90d
change to unsigned char array
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yangcq88517 | 0:837e6c48e90d | 1 | #ifndef UK_AC_HERTS_SMARTLAB_XBEE_RemoteCommandIndicator |
yangcq88517 | 0:837e6c48e90d | 2 | #define UK_AC_HERTS_SMARTLAB_XBEE_RemoteCommandIndicator |
yangcq88517 | 0:837e6c48e90d | 3 | |
yangcq88517 | 0:837e6c48e90d | 4 | #include "Address.h" |
yangcq88517 | 0:837e6c48e90d | 5 | #include "RxBase.h" |
yangcq88517 | 0:837e6c48e90d | 6 | #include "ICommandResponse.h" |
yangcq88517 | 0:837e6c48e90d | 7 | |
yangcq88517 | 0:837e6c48e90d | 8 | class RemoteCommandIndicator : public ICommandResponse, public RxBase |
yangcq88517 | 0:837e6c48e90d | 9 | { |
yangcq88517 | 0:837e6c48e90d | 10 | public: |
yangcq88517 | 0:837e6c48e90d | 11 | |
yangcq88517 | 0:837e6c48e90d | 12 | RemoteCommandIndicator(APIFrame * frame); |
yangcq88517 | 0:837e6c48e90d | 13 | |
yangcq88517 | 0:837e6c48e90d | 14 | virtual int getFrameID(); |
yangcq88517 | 0:837e6c48e90d | 15 | |
yangcq88517 | 6:5f31ddc17239 | 16 | virtual unsigned char * getRequestCommand(); |
yangcq88517 | 0:837e6c48e90d | 17 | |
yangcq88517 | 0:837e6c48e90d | 18 | /** |
yangcq88517 | 0:837e6c48e90d | 19 | * |
yangcq88517 | 0:837e6c48e90d | 20 | * @returns |
yangcq88517 | 0:837e6c48e90d | 21 | * OK = 0x00, |
yangcq88517 | 0:837e6c48e90d | 22 | * ERROR = 0x01, |
yangcq88517 | 0:837e6c48e90d | 23 | * INVALID_COMMAND = 0x02, |
yangcq88517 | 0:837e6c48e90d | 24 | * INVALID_Parameter = 0x03, |
yangcq88517 | 0:837e6c48e90d | 25 | * TRANSMISSION_FAILED = 0x04, |
yangcq88517 | 0:837e6c48e90d | 26 | */ |
yangcq88517 | 0:837e6c48e90d | 27 | virtual int getCommandStatus(); |
yangcq88517 | 0:837e6c48e90d | 28 | |
yangcq88517 | 0:837e6c48e90d | 29 | Address getRemoteDevice(); |
yangcq88517 | 0:837e6c48e90d | 30 | |
yangcq88517 | 6:5f31ddc17239 | 31 | virtual unsigned char * getParameter(); |
yangcq88517 | 0:837e6c48e90d | 32 | |
yangcq88517 | 6:5f31ddc17239 | 33 | virtual unsigned char getParameter(int index); |
yangcq88517 | 0:837e6c48e90d | 34 | |
yangcq88517 | 0:837e6c48e90d | 35 | virtual int getParameterLength(); |
yangcq88517 | 0:837e6c48e90d | 36 | |
yangcq88517 | 0:837e6c48e90d | 37 | virtual int getParameterOffset(); |
yangcq88517 | 0:837e6c48e90d | 38 | |
yangcq88517 | 0:837e6c48e90d | 39 | bool convert(APIFrame * frame); |
yangcq88517 | 0:837e6c48e90d | 40 | }; |
yangcq88517 | 0:837e6c48e90d | 41 | |
yangcq88517 | 0:837e6c48e90d | 42 | #endif |