diff options
| author | tmk <nobody@nowhere> | 2014-06-20 14:39:49 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2014-07-30 14:07:43 +0900 |
| commit | b4a91ecf4e46ee533563fd759e26dd249bf6b4de (patch) | |
| tree | cc52fa874d471a3f15d5cdda64fc3e6232d88303 /protocol/mbed/HIDKeyboard.h | |
| parent | 4c8e0fd0bd1712421f957ec5e0ca16fc6bbb3856 (diff) | |
| download | qmk_firmware-b4a91ecf4e46ee533563fd759e26dd249bf6b4de.tar.gz qmk_firmware-b4a91ecf4e46ee533563fd759e26dd249bf6b4de.zip | |
Add LED indicator support in mbed
Diffstat (limited to 'protocol/mbed/HIDKeyboard.h')
| -rw-r--r-- | protocol/mbed/HIDKeyboard.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocol/mbed/HIDKeyboard.h b/protocol/mbed/HIDKeyboard.h index 4ebe610a6..c537e5ece 100644 --- a/protocol/mbed/HIDKeyboard.h +++ b/protocol/mbed/HIDKeyboard.h | |||
| @@ -11,6 +11,7 @@ public: | |||
| 11 | HIDKeyboard(uint16_t vendor_id = 0xFEED, uint16_t product_id = 0xabed, uint16_t product_release = 0x0001); | 11 | HIDKeyboard(uint16_t vendor_id = 0xFEED, uint16_t product_id = 0xabed, uint16_t product_release = 0x0001); |
| 12 | 12 | ||
| 13 | bool sendReport(report_keyboard_t report); | 13 | bool sendReport(report_keyboard_t report); |
| 14 | uint8_t leds(void); | ||
| 14 | protected: | 15 | protected: |
| 15 | uint16_t reportLength; | 16 | uint16_t reportLength; |
| 16 | virtual bool USBCallback_setConfiguration(uint8_t configuration); | 17 | virtual bool USBCallback_setConfiguration(uint8_t configuration); |
| @@ -22,6 +23,9 @@ protected: | |||
| 22 | virtual uint8_t * configurationDesc(); | 23 | virtual uint8_t * configurationDesc(); |
| 23 | //virtual uint8_t * deviceDesc(); | 24 | //virtual uint8_t * deviceDesc(); |
| 24 | virtual bool USBCallback_request(); | 25 | virtual bool USBCallback_request(); |
| 26 | virtual void USBCallback_requestCompleted(uint8_t * buf, uint32_t length); | ||
| 27 | private: | ||
| 28 | uint8_t led_state; | ||
| 25 | }; | 29 | }; |
| 26 | 30 | ||
| 27 | #endif | 31 | #endif |
