#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 isReady () const
 
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

Member Function Documentation

◆ DeviceInterface()

USB::DeviceInterface::DeviceInterface
inline

Constructor.

Parameters
instanceTinyUSB instance or index (class-specific)
nameDeclared name for this interface instance

◆ get_report()

uint16_t USB::HID::Device::get_report ( uint8_t  report_id,
hid_report_type_t  report_type,
uint8_t *  buffer,
uint16_t  reqlen 
)
protected

◆ isReady()

bool USB::HID::Device::isReady ( ) const
inline

◆ report_complete()

void USB::HID::Device::report_complete ( )
protected

◆ sendReport()

bool USB::HID::Device::sendReport ( uint8_t  report_id,
void const *  report,
uint16_t  len,
ReportComplete  callback 
)

◆ set_report()

void USB::HID::Device::set_report ( uint8_t  report_id,
hid_report_type_t  report_type,
uint8_t const *  buffer,
uint16_t  bufsize 
)
protected

The documentation for this class was generated from the following file: