diff options
| author | tmk <hasu@tmk-kbd.com> | 2015-04-10 01:32:04 +0900 |
|---|---|---|
| committer | tmk <hasu@tmk-kbd.com> | 2015-04-10 01:32:04 +0900 |
| commit | 1a02ebcc612e9a9c0d87e02295c7258de3a70ccc (patch) | |
| tree | e517f3c70bb2d542797e57d13e9023c84af230fb /tmk_core/protocol/mbed/HIDKeyboard.h | |
| parent | 6746e37088ce8ba03529c1226bd216705edb2b1f (diff) | |
| parent | a074364c3731d66b56d988c8a6c960a83ea0e0a1 (diff) | |
| download | qmk_firmware-1a02ebcc612e9a9c0d87e02295c7258de3a70ccc.tar.gz qmk_firmware-1a02ebcc612e9a9c0d87e02295c7258de3a70ccc.zip | |
Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core'
Diffstat (limited to 'tmk_core/protocol/mbed/HIDKeyboard.h')
| -rw-r--r-- | tmk_core/protocol/mbed/HIDKeyboard.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tmk_core/protocol/mbed/HIDKeyboard.h b/tmk_core/protocol/mbed/HIDKeyboard.h new file mode 100644 index 000000000..c537e5ece --- /dev/null +++ b/tmk_core/protocol/mbed/HIDKeyboard.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #ifndef HIDKEYBOARD_H | ||
| 2 | |||
| 3 | #include "stdint.h" | ||
| 4 | #include "stdbool.h" | ||
| 5 | #include "USBHID.h" | ||
| 6 | #include "report.h" | ||
| 7 | |||
| 8 | |||
| 9 | class HIDKeyboard : public USBDevice { | ||
| 10 | public: | ||
| 11 | HIDKeyboard(uint16_t vendor_id = 0xFEED, uint16_t product_id = 0xabed, uint16_t product_release = 0x0001); | ||
| 12 | |||
| 13 | bool sendReport(report_keyboard_t report); | ||
| 14 | uint8_t leds(void); | ||
| 15 | protected: | ||
| 16 | uint16_t reportLength; | ||
| 17 | virtual bool USBCallback_setConfiguration(uint8_t configuration); | ||
| 18 | virtual uint8_t * stringImanufacturerDesc(); | ||
| 19 | virtual uint8_t * stringIproductDesc(); | ||
| 20 | virtual uint8_t * stringIserialDesc(); | ||
| 21 | virtual uint16_t reportDescLength(); | ||
| 22 | virtual uint8_t * reportDesc(); | ||
| 23 | virtual uint8_t * configurationDesc(); | ||
| 24 | //virtual uint8_t * deviceDesc(); | ||
| 25 | virtual bool USBCallback_request(); | ||
| 26 | virtual void USBCallback_requestCompleted(uint8_t * buf, uint32_t length); | ||
| 27 | private: | ||
| 28 | uint8_t led_state; | ||
| 29 | }; | ||
| 30 | |||
| 31 | #endif | ||
