Hiroh Satoh / keyboard Featured

Dependencies:   BLE_API mbed-dev nRF51822

HIDController_BLE.h

Committer:
cho45
Date:
2016-08-29
Revision:
48:d6938de02f62
Parent:
44:916b70fd1c40
Child:
58:64df960619ce

File content as of revision 48:d6938de02f62:


#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 queueCurrentReportData();
	static void updateBatteryLevel(const uint8_t percentage);
	static void initializeConnection(const bool ignoreWhiteList);
};

#endif