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@44:916b70fd1c40, 2016-08-27 (annotated)
- Committer:
- cho45
- Date:
- Sat Aug 27 17:58:45 2016 +0900
- Revision:
- 44:916b70fd1c40
- Parent:
- 40:364deaa190fe
- Child:
- 48:d6938de02f62
fix whitespace
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 |
44:916b70fd1c40 | 20 | |
cho45 |
6:f1c3ea8bc850 | 21 | static void appendReportData(uint8_t key); |
cho45 |
6:f1c3ea8bc850 | 22 | static void deleteReportData(uint8_t key); |
cho45 |
9:d1daefbf1fbd | 23 | static void queueCurrentReportData(); |
cho45 | 37:4ce71fa47fc3 | 24 | static void updateBatteryLevel(uint8_t percentage); |
cho45 | 40:364deaa190fe | 25 | static void initializeConnection(bool ignoreWhiteList); |
cho45 |
6:f1c3ea8bc850 | 26 | }; |
cho45 |
6:f1c3ea8bc850 | 27 | |
cho45 |
44:916b70fd1c40 | 28 | #endif |