ble nano hid over gatt
Dependencies: BLE_API mbed-dev nRF51822
HIDController_BLE.h
- Committer:
- cho45
- Date:
- 2016-09-15
- Revision:
- 86:e0fab77e669d
- Parent:
- 58:64df960619ce
File content as of revision 86:e0fab77e669d:
#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(const uint8_t key); static void deleteReportData(const uint8_t key); static void pressConsumerKey(const uint16_t key); static void releaseConsumerKey(); static void queueCurrentReportData(); static void updateBatteryLevel(const uint8_t percentage, const uint16_t voltage); static void initializeConnection(const bool ignoreWhiteList); }; #endif