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.
Dependencies: TSI USBDevice mbed-dev
Fork of SmartWheels by
Diff: PCConnector/SWUSBServer.h
- Revision:
- 19:c93f7fab165d
- Parent:
- 18:bf6c5f8281eb
- Child:
- 25:6f63053cee81
diff -r bf6c5f8281eb -r c93f7fab165d PCConnector/SWUSBServer.h
--- a/PCConnector/SWUSBServer.h Sat Feb 11 05:05:44 2017 +0000
+++ b/PCConnector/SWUSBServer.h Sun Feb 12 22:29:45 2017 +0000
@@ -12,7 +12,7 @@
#define HANDSHAKE_MSG_TER "SMARTWHEELS_HANDSHAKE_TERMINAL"
#define HANDSHAKE_MSG_PC "SMARTWHEELS_HANDSHAKE_PC"
-#define TICKING_MSG "TICK"
+#define TICK_MSG_PC "PCTICK"
#include <mbed.h>
#include <rtos.h>
@@ -46,15 +46,17 @@
Thread * m_usbThread;
- //Serial * m_usb;
-
- //Serial * m_usbIn;
-
std::list<std::string> m_msgQueue;
Mutex m_qlocker;
- float m_tickMsgTimer;
+ char * m_recvBuf;
+
+ unsigned char m_bufPos;
+
+ bool m_hasMsgIn;
+
+ bool m_isReading;
void RunningThread();
