Simple xbee library based on the Serial class with added reset signaling
xbee.h@0:a4621ef93d99, 2015-11-06 (annotated)
- Committer:
- sillevl
- Date:
- Fri Nov 06 18:49:29 2015 +0000
- Revision:
- 0:a4621ef93d99
simple xbee class with reset;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sillevl | 0:a4621ef93d99 | 1 | #include "mbed.h" |
sillevl | 0:a4621ef93d99 | 2 | |
sillevl | 0:a4621ef93d99 | 3 | class Xbee : public Serial{ |
sillevl | 0:a4621ef93d99 | 4 | |
sillevl | 0:a4621ef93d99 | 5 | public: |
sillevl | 0:a4621ef93d99 | 6 | Xbee(PinName tx, PinName rx, PinName reset, const char* name = NULL); |
sillevl | 0:a4621ef93d99 | 7 | |
sillevl | 0:a4621ef93d99 | 8 | void enable(); |
sillevl | 0:a4621ef93d99 | 9 | void disable(); |
sillevl | 0:a4621ef93d99 | 10 | void reset(); |
sillevl | 0:a4621ef93d99 | 11 | |
sillevl | 0:a4621ef93d99 | 12 | protected: |
sillevl | 0:a4621ef93d99 | 13 | DigitalOut rst; |
sillevl | 0:a4621ef93d99 | 14 | |
sillevl | 0:a4621ef93d99 | 15 | }; |