ble nano hid over gatt

Dependencies:   BLE_API mbed-dev nRF51822

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HIDController_BLE.h Source File

HIDController_BLE.h

00001 
00002 #ifndef __HIDController_H__
00003 #define __HIDController_H__
00004 
00005 enum Status_t {
00006     DISCONNECTED,
00007     CONNECTING,
00008     CONNECTED,
00009     TIMEOUT,
00010     ADVERTISING,
00011 };
00012 
00013 class HIDController {
00014 public:
00015     static void init();
00016     static void waitForEvent();
00017     static bool connected();
00018     static Status_t status();
00019     static const char* statusString();
00020 
00021     static void appendReportData(const uint8_t key);
00022     static void deleteReportData(const uint8_t key);
00023     static void pressConsumerKey(const uint16_t key);
00024     static void releaseConsumerKey();
00025     static void queueCurrentReportData();
00026     static void updateBatteryLevel(const uint8_t percentage, const uint16_t voltage);
00027     static void initializeConnection(const bool ignoreWhiteList);
00028 };
00029 
00030 #endif