For getting RSSI value from xbee
Dependents: XBeeGetRSSISampleProgram Xbee_s2_RX_versao2
XBeeGetRssi.h@0:d1ff6ea68ab2, 2013-08-06 (annotated)
- Committer:
- ATKINZ117
- Date:
- Tue Aug 06 14:29:39 2013 +0000
- Revision:
- 0:d1ff6ea68ab2
- Child:
- 2:befae843036e
this is the latest version at 0806
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ATKINZ117 | 0:d1ff6ea68ab2 | 1 | #ifndef XBEEGETRSSI20130718 |
ATKINZ117 | 0:d1ff6ea68ab2 | 2 | #define XBEEGETRSSI20130718 |
ATKINZ117 | 0:d1ff6ea68ab2 | 3 | |
ATKINZ117 | 0:d1ff6ea68ab2 | 4 | #include "mbed.h" |
ATKINZ117 | 0:d1ff6ea68ab2 | 5 | |
ATKINZ117 | 0:d1ff6ea68ab2 | 6 | class XBeeGetRssi{ |
ATKINZ117 | 0:d1ff6ea68ab2 | 7 | public: |
ATKINZ117 | 0:d1ff6ea68ab2 | 8 | XBeeGetRssi(PinName tx,PinName rx); //select the oneshot mode or repeat mode. |
ATKINZ117 | 0:d1ff6ea68ab2 | 9 | char* get(); //method for getting rssi. |
ATKINZ117 | 0:d1ff6ea68ab2 | 10 | |
ATKINZ117 | 0:d1ff6ea68ab2 | 11 | private: |
ATKINZ117 | 0:d1ff6ea68ab2 | 12 | PinName _tx; |
ATKINZ117 | 0:d1ff6ea68ab2 | 13 | PinName _rx; |
ATKINZ117 | 0:d1ff6ea68ab2 | 14 | char _rssi[]; //pointer for containing the rssi value. |
ATKINZ117 | 0:d1ff6ea68ab2 | 15 | char _xbee_message[]; //for the xbee message. |
ATKINZ117 | 0:d1ff6ea68ab2 | 16 | void _rssiGetter(); //for waiting messages from xbee |
ATKINZ117 | 0:d1ff6ea68ab2 | 17 | }; |
ATKINZ117 | 0:d1ff6ea68ab2 | 18 | |
ATKINZ117 | 0:d1ff6ea68ab2 | 19 | #endif |