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) |
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 0000000000..4ebe610a63 --- /dev/null +++ b/protocol/mbed/HIDKeyboard.h @@ -0,0 +1,27 @@ +#ifndef HIDKEYBOARD_H + +#include "stdint.h" +#include "stdbool.h" +#include "USBHID.h" +#include "report.h" + + +class HIDKeyboard : public USBDevice { +public: + HIDKeyboard(uint16_t vendor_id = 0xFEED, uint16_t product_id = 0xabed, uint16_t product_release = 0x0001); + + bool sendReport(report_keyboard_t report); +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 bool USBCallback_request(); +}; + +#endif |