Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
adapt/xbee.h@15:e3e03a9df89e, 2014-04-10 (annotated)
- Committer:
- dylanembed123
- Date:
- Thu Apr 10 05:38:45 2014 +0000
- Revision:
- 15:e3e03a9df89e
- Parent:
- 14:6be57da62283
- Child:
- 18:e72ee7aed088
Demo prep - The GPS, camera and XBEE stream with packet work.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dylanembed123 | 12:e42985e3ea64 | 1 | #ifndef _XBEE_H_ |
dylanembed123 | 12:e42985e3ea64 | 2 | #define _XBEE_H_ |
dylanembed123 | 12:e42985e3ea64 | 3 | #include "mbed.h" |
dylanembed123 | 12:e42985e3ea64 | 4 | |
dylanembed123 | 12:e42985e3ea64 | 5 | |
dylanembed123 | 12:e42985e3ea64 | 6 | /// Define Pinout |
dylanembed123 | 12:e42985e3ea64 | 7 | #define XBEEPINTX p9 |
dylanembed123 | 12:e42985e3ea64 | 8 | #define XBEEPINRX p10 |
dylanembed123 | 12:e42985e3ea64 | 9 | |
dylanembed123 | 12:e42985e3ea64 | 10 | /// Define Baud |
dylanembed123 | 15:e3e03a9df89e | 11 | #define XBEEBAUD 57600 |
dylanembed123 | 15:e3e03a9df89e | 12 | //115200 |
dylanembed123 | 12:e42985e3ea64 | 13 | |
dylanembed123 | 12:e42985e3ea64 | 14 | class XBEE{ |
dylanembed123 | 12:e42985e3ea64 | 15 | private: |
dylanembed123 | 12:e42985e3ea64 | 16 | static Serial* xbee; |
dylanembed123 | 12:e42985e3ea64 | 17 | public: |
dylanembed123 | 12:e42985e3ea64 | 18 | /// \brief Call this function to get a hold of the serial for USB. |
dylanembed123 | 12:e42985e3ea64 | 19 | static Serial& getSerial(); |
dylanembed123 | 12:e42985e3ea64 | 20 | }; |
dylanembed123 | 12:e42985e3ea64 | 21 | #endif |