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
- Committer:
- cho45
- Date:
- 2016-08-26
- Revision:
- 37:4ce71fa47fc3
- Parent:
- 32:6c0f43fda460
- Child:
- 38:115875b8cb6c
File content as of revision 37:4ce71fa47fc3:
#ifndef __HIDController_H__ #define __HIDController_H__ enum Status_t { DISCONNECTED, CONNECTING, CONNECTED, TIMEOUT, ADVERTISING, }; class HIDController { public: static void init(); static void waitForEvent(); static bool connected(); static Status_t status(); static const char* statusString(); static void appendReportData(uint8_t key); static void deleteReportData(uint8_t key); static void queueCurrentReportData(); static void updateBatteryLevel(uint8_t percentage); }; #endif