diff options
| author | tmk <nobody@nowhere> | 2014-06-18 02:22:59 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2014-07-30 14:07:43 +0900 |
| commit | 80c3ff5fa03429f1e4ea15032f665ceb88c9b8c3 (patch) | |
| tree | 803fe5b419419607146b6ba1db69d24486b1494e /protocol/mbed/HIDKeyboard.h | |
| parent | e81c70149ecf73256f8bb7d77cefc07f2b91d2be (diff) | |
| download | qmk_firmware-80c3ff5fa03429f1e4ea15032f665ceb88c9b8c3.tar.gz qmk_firmware-80c3ff5fa03429f1e4ea15032f665ceb88c9b8c3.zip | |
Fix build files for mbed
Diffstat (limited to 'protocol/mbed/HIDKeyboard.h')
| -rw-r--r-- | protocol/mbed/HIDKeyboard.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/protocol/mbed/HIDKeyboard.h b/protocol/mbed/HIDKeyboard.h new file mode 100644 index 000000000..4ebe610a6 --- /dev/null +++ b/protocol/mbed/HIDKeyboard.h | |||
| @@ -0,0 +1,27 @@ | |||
| 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 | protected: | ||
| 15 | uint16_t reportLength; | ||
| 16 | virtual bool USBCallback_setConfiguration(uint8_t configuration); | ||
| 17 | virtual uint8_t * stringImanufacturerDesc(); | ||
| 18 | virtual uint8_t * stringIproductDesc(); | ||
| 19 | virtual uint8_t * stringIserialDesc(); | ||
| 20 | virtual uint16_t reportDescLength(); | ||
| 21 | virtual uint8_t * reportDesc(); | ||
| 22 | virtual uint8_t * configurationDesc(); | ||
| 23 | //virtual uint8_t * deviceDesc(); | ||
| 24 | virtual bool USBCallback_request(); | ||
| 25 | }; | ||
| 26 | |||
| 27 | #endif | ||
