QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Committer:
krobertson
Date:
Sun Apr 20 08:04:37 2014 +0000
Revision:
18:e72ee7aed088
Parent:
15:e3e03a9df89e
Child:
51:d6b64ac3c30d
new communication module. Need to add open and close connection to sync packet and end packet but otherwise looks like it will work.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dylanembed123 12:e42985e3ea64 1 #ifndef _XBEE_H_
dylanembed123 12:e42985e3ea64 2 #define _XBEE_H_
dylanembed123 12:e42985e3ea64 3 #include "mbed.h"
krobertson 18:e72ee7aed088 4 #include <InterruptIn.h>
dylanembed123 12:e42985e3ea64 5
dylanembed123 12:e42985e3ea64 6
dylanembed123 12:e42985e3ea64 7 /// Define Pinout
dylanembed123 12:e42985e3ea64 8 #define XBEEPINTX p9
dylanembed123 12:e42985e3ea64 9 #define XBEEPINRX p10
dylanembed123 12:e42985e3ea64 10
dylanembed123 12:e42985e3ea64 11 /// Define Baud
krobertson 18:e72ee7aed088 12 #define XBEEBAUD 115200
dylanembed123 15:e3e03a9df89e 13 //115200
dylanembed123 12:e42985e3ea64 14
dylanembed123 12:e42985e3ea64 15 class XBEE{
dylanembed123 12:e42985e3ea64 16 private:
dylanembed123 12:e42985e3ea64 17 static Serial* xbee;
krobertson 18:e72ee7aed088 18 static DigitalOut* setTCPConStatus;
krobertson 18:e72ee7aed088 19 static DigitalIn* getTCPConStatus;
krobertson 18:e72ee7aed088 20 static InterruptIn* TCPconnLost;
krobertson 18:e72ee7aed088 21
dylanembed123 12:e42985e3ea64 22 public:
dylanembed123 12:e42985e3ea64 23 /// \brief Call this function to get a hold of the serial for USB.
dylanembed123 12:e42985e3ea64 24 static Serial& getSerial();
krobertson 18:e72ee7aed088 25 static DigitalOut& getTCPConOut();
krobertson 18:e72ee7aed088 26 static DigitalIn& getTCPConIn();
krobertson 18:e72ee7aed088 27 static InterruptIn& getTCPInterrupt();
dylanembed123 12:e42985e3ea64 28 };
dylanembed123 12:e42985e3ea64 29 #endif