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: BLE_API mbed-dev nRF51822
Diff: HIDController_BLE.h
- Revision:
- 27:7370b8994603
- Parent:
- 20:d8840ac38434
- Child:
- 28:1f843a3daab0
--- a/HIDController_BLE.h Mon Aug 22 22:50:25 2016 +0000
+++ b/HIDController_BLE.h Mon Aug 22 23:14:42 2016 +0000
@@ -1,8 +1,17 @@
+
+enum Status_t {
+ DISCONNECTED,
+ CONNECTING,
+ CONNECTED,
+} ;
+
+
class HIDController {
public:
static void init();
static void waitForEvent();
static bool connected();
+ static Status_t HIDController::status();
static void appendReportData(uint8_t key);
static void deleteReportData(uint8_t key);
static void queueCurrentReportData();