Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NerfUS-Coord NerfUSTarget
Fork of APP3_xbee by
include/RealXbeeReceiver.hpp@25:64ea9e695a1f, 2017-04-05 (annotated)
- Committer:
- GaiSensei
- Date:
- Wed Apr 05 22:19:07 2017 +0000
- Revision:
- 25:64ea9e695a1f
- Parent:
- 24:00c42ba87ef7
Receiver work
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| GaiSensei | 15:ab3e0d32e578 | 1 | #ifndef REAL_XBEE_RECEIVER_HPP |
| GaiSensei | 15:ab3e0d32e578 | 2 | #define REAL_XBEE_RECEIVER_HPP |
| GaiSensei | 15:ab3e0d32e578 | 3 | |
| GaiSensei | 16:f4df01448b59 | 4 | #include "xbee.h" |
| GaiSensei | 16:f4df01448b59 | 5 | #include "XbeeReceiverInterface.hpp" |
| GaiSensei | 15:ab3e0d32e578 | 6 | |
| GaiSensei | 15:ab3e0d32e578 | 7 | class RealXbeeReceiver : public XbeeReceiverInterface |
| GaiSensei | 15:ab3e0d32e578 | 8 | { |
| GaiSensei | 15:ab3e0d32e578 | 9 | public: |
| GaiSensei | 15:ab3e0d32e578 | 10 | RealXbeeReceiver(); |
| GaiSensei | 23:2b67589150d9 | 11 | virtual void start(void (*callback)(vector<uint8_t>, int*)); |
| GaiSensei | 25:64ea9e695a1f | 12 | |
| GaiSensei | 25:64ea9e695a1f | 13 | private: |
| GaiSensei | 25:64ea9e695a1f | 14 | Thread message_handler_thread; |
| GaiSensei | 25:64ea9e695a1f | 15 | Thread message_reader_thread; |
| GaiSensei | 15:ab3e0d32e578 | 16 | }; |
| GaiSensei | 15:ab3e0d32e578 | 17 | |
| GaiSensei | 15:ab3e0d32e578 | 18 | #endif |
