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:
- 13:7dcb1642ef99
- Parent:
- 11:676ea42afd56
- Child:
- 16:66c7a09e71ee
--- a/PCConnector/SWUSBServer.h Wed Feb 08 18:00:33 2017 +0000 +++ b/PCConnector/SWUSBServer.h Wed Feb 08 23:47:02 2017 +0000 @@ -4,11 +4,11 @@ #define HID_REPORT_LENGTH 64 -#define HID_SER_STAT_STOPPED 0 -#define HID_SER_STAT_SEARCHING 1 -#define HID_SER_STAT_CONNECTING 2 -#define HID_SER_STAT_CONNECTED 3 -#define HID_SER_STAT_RUNNING 4 +#define SER_STAT_STOPPED 0 +#define SER_STAT_SEARCHING 1 +#define SER_STAT_CONNECTING 2 +#define SER_STAT_CONNECTED 3 +#define SER_STAT_RUNNING 4 #define HANDSHAKE_MSG_TER "SMARTWHEELS_HANDSHAKE_TERMINAL" #define HANDSHAKE_MSG_PC "SMARTWHEELS_HANDSHAKE_PC" @@ -36,6 +36,8 @@ void Terminate(); + uint8_t GetStatus() const; + private: bool m_shouldTerminate;