summaryrefslogtreecommitdiff
path: root/tmk_core/protocol/mbed/HIDKeyboard.h
diff options
context:
space:
mode:
authorskullY <skullydazed@gmail.com>2019-08-30 11:19:03 -0700
committerFlorian Didron <fdidron@users.noreply.github.com>2019-09-17 11:39:43 +0900
commitf8fe33acfac01064112fd2b5da680abfb5190b97 (patch)
treefcf75ef930800a948e5a3ba015d6759889f2284d /tmk_core/protocol/mbed/HIDKeyboard.h
parentc339d670684674165b422a0168bfd2016ff2e6ef (diff)
clang-format changes
Diffstat (limited to 'tmk_core/protocol/mbed/HIDKeyboard.h')
-rw-r--r--tmk_core/protocol/mbed/HIDKeyboard.h37
1 files changed, 19 insertions, 18 deletions
diff --git a/tmk_core/protocol/mbed/HIDKeyboard.h b/tmk_core/protocol/mbed/HIDKeyboard.h
index c537e5ecee..e8ff108699 100644
--- a/tmk_core/protocol/mbed/HIDKeyboard.h
+++ b/tmk_core/protocol/mbed/HIDKeyboard.h
@@ -1,30 +1,31 @@
#ifndef HIDKEYBOARD_H
-#include "stdint.h"
-#include "stdbool.h"
-#include "USBHID.h"
-#include "report.h"
-
+# include "stdint.h"
+# include "stdbool.h"
+# include "USBHID.h"
+# include "report.h"
class HIDKeyboard : public USBDevice {
-public:
+ public:
HIDKeyboard(uint16_t vendor_id = 0xFEED, uint16_t product_id = 0xabed, uint16_t product_release = 0x0001);
- bool sendReport(report_keyboard_t report);
+ bool sendReport(report_keyboard_t report);
uint8_t leds(void);
-protected:
- uint16_t reportLength;
- virtual bool USBCallback_setConfiguration(uint8_t configuration);
- virtual uint8_t * stringImanufacturerDesc();
- virtual uint8_t * stringIproductDesc();
- virtual uint8_t * stringIserialDesc();
+
+ protected:
+ uint16_t reportLength;
+ virtual bool USBCallback_setConfiguration(uint8_t configuration);
+ virtual uint8_t* stringImanufacturerDesc();
+ virtual uint8_t* stringIproductDesc();
+ virtual uint8_t* stringIserialDesc();
virtual uint16_t reportDescLength();
- virtual uint8_t * reportDesc();
- virtual uint8_t * configurationDesc();
- //virtual uint8_t * deviceDesc();
+ virtual uint8_t* reportDesc();
+ virtual uint8_t* configurationDesc();
+ // virtual uint8_t * deviceDesc();
virtual bool USBCallback_request();
- virtual void USBCallback_requestCompleted(uint8_t * buf, uint32_t length);
-private:
+ virtual void USBCallback_requestCompleted(uint8_t* buf, uint32_t length);
+
+ private:
uint8_t led_state;
};