You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
765 B
28 lines
765 B
11 years ago
|
#ifndef HIDKEYBOARD_H
|
||
|
|
||
|
#include "stdint.h"
|
||
|
#include "stdbool.h"
|
||
|
#include "USBHID.h"
|
||
11 years ago
|
#include "report.h"
|
||
11 years ago
|
|
||
|
|
||
|
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
|