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
HIDController_BLE.h@32:6c0f43fda460, 2016-08-25 (annotated)
- Committer:
- cho45
- Date:
- Thu Aug 25 00:07:21 2016 +0000
- Revision:
- 32:6c0f43fda460
- Parent:
- 29:ec548c473d50
- Child:
- 37:4ce71fa47fc3
wdt
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cho45 | 29:ec548c473d50 | 1 | |
cho45 | 29:ec548c473d50 | 2 | #ifndef __HIDController_H__ |
cho45 | 29:ec548c473d50 | 3 | #define __HIDController_H__ |
cho45 | 27:7370b8994603 | 4 | |
cho45 | 27:7370b8994603 | 5 | enum Status_t { |
cho45 | 27:7370b8994603 | 6 | DISCONNECTED, |
cho45 | 27:7370b8994603 | 7 | CONNECTING, |
cho45 | 27:7370b8994603 | 8 | CONNECTED, |
cho45 | 32:6c0f43fda460 | 9 | TIMEOUT, |
cho45 | 32:6c0f43fda460 | 10 | ADVERTISING, |
cho45 | 32:6c0f43fda460 | 11 | }; |
cho45 | 27:7370b8994603 | 12 | |
cho45 |
6:f1c3ea8bc850 | 13 | class HIDController { |
cho45 |
6:f1c3ea8bc850 | 14 | public: |
cho45 |
6:f1c3ea8bc850 | 15 | static void init(); |
cho45 |
10:1aed2481a743 | 16 | static void waitForEvent(); |
cho45 | 20:d8840ac38434 | 17 | static bool connected(); |
cho45 | 28:1f843a3daab0 | 18 | static Status_t status(); |
cho45 | 32:6c0f43fda460 | 19 | static const char* statusString(); |
cho45 |
6:f1c3ea8bc850 | 20 | static void appendReportData(uint8_t key); |
cho45 |
6:f1c3ea8bc850 | 21 | static void deleteReportData(uint8_t key); |
cho45 |
9:d1daefbf1fbd | 22 | static void queueCurrentReportData(); |
cho45 |
6:f1c3ea8bc850 | 23 | }; |
cho45 |
6:f1c3ea8bc850 | 24 | |
cho45 | 29:ec548c473d50 | 25 | #endif |