22#include "platform/Stream.h"
23#include "rtos/Mutex.h"
119 USBKeyboard(
bool connect_blocking =
true, uint16_t vendor_id = 0x1235, uint16_t product_id = 0x0050, uint16_t product_release = 0x0001);
137 USBKeyboard(
USBPhy *phy, uint16_t vendor_id = 0x1235, uint16_t product_id = 0x0050, uint16_t product_release = 0x0001);
182 virtual const uint8_t *report_desc();
187 virtual void report_rx();
205 virtual const uint8_t *configuration_desc(uint8_t index);
212 uint8_t _configuration_descriptor[41];
213 uint8_t _lock_status;
virtual ~USBKeyboard()
Destroy this object.
USBKeyboard(USBPhy *phy, uint16_t vendor_id=0x1235, uint16_t product_id=0x0050, uint16_t product_release=0x0001)
Fully featured constructor.
USBKeyboard(bool connect_blocking=true, uint16_t vendor_id=0x1235, uint16_t product_id=0x0050, uint16_t product_release=0x0001)
Basic constructor.
bool key_code(uint8_t key, uint8_t modifier=0)
To send a character defined by a modifier(CTRL, SHIFT, ALT) and the key.
virtual int _putc(int c)
Send a character.
uint8_t lock_status()
Read status of lock keys.
bool media_control(MEDIA_KEY key)
Control media keys.
Abstract interface to physical USB hardware.
The Mutex class is used to synchronize the execution of threads.