USB::HID::Device Class Reference
#include <Device.h>
Inheritance diagram for USB::HID::Device:
Collaboration diagram for USB::HID::Device:
Public Types | |
| using | ReportComplete = Delegate< void()> |
Public Member Functions | |
| bool | sendReport (uint8_t report_id, void const *report, uint16_t len, ReportComplete callback) |
| DeviceInterface (uint8_t instance, const char *name) | |
| Constructor. More... | |
Public Member Functions inherited from USB::DeviceInterface | |
| DeviceInterface (uint8_t instance, const char *name) | |
| Constructor. More... | |
| const char * | getName () const |
Protected Member Functions | |
| uint16_t | get_report (uint8_t report_id, hid_report_type_t report_type, uint8_t *buffer, uint16_t reqlen) |
| void | set_report (uint8_t report_id, hid_report_type_t report_type, uint8_t const *buffer, uint16_t bufsize) |
| void | report_complete () |
Additional Inherited Members | |
Protected Attributes inherited from USB::DeviceInterface | |
| uint8_t | inst |
| const char * | name |
Member Typedef Documentation
◆ ReportComplete
| using USB::HID::Device::ReportComplete = Delegate<void()> |
Member Function Documentation
◆ DeviceInterface()
|
inline |
Constructor.
- Parameters
-
instance TinyUSB instance or index (class-specific) name Declared name for this interface instance
◆ get_report()
|
protected |
◆ report_complete()
|
protected |
◆ sendReport()
| bool USB::HID::Device::sendReport | ( | uint8_t | report_id, |
| void const * | report, | ||
| uint16_t | len, | ||
| ReportComplete | callback | ||
| ) |
◆ set_report()
|
protected |
The documentation for this class was generated from the following file:
Public Member Functions inherited from
1.8.17