USB Host Shield 2.0
|
#include <hid.h>
Public Member Functions | |
HID (USB *pusb) | |
const USB * | GetUsb () |
virtual bool | SetReportParser (uint8_t id, HIDReportParser *prs) |
uint8_t | SetProtocol (uint8_t iface, uint8_t protocol) |
uint8_t | GetProtocol (uint8_t iface, uint8_t *dataptr) |
uint8_t | GetIdle (uint8_t iface, uint8_t reportID, uint8_t *dataptr) |
uint8_t | SetIdle (uint8_t iface, uint8_t reportID, uint8_t duration) |
uint8_t | GetReportDescr (uint16_t wIndex, USBReadParser *parser=NULL) |
uint8_t | GetHidDescr (uint8_t ep, uint16_t nbytes, uint8_t *dataptr) |
uint8_t | GetReport (uint8_t ep, uint8_t iface, uint8_t report_type, uint8_t report_id, uint16_t nbytes, uint8_t *dataptr) |
uint8_t | SetReport (uint8_t ep, uint8_t iface, uint8_t report_type, uint8_t report_id, uint16_t nbytes, uint8_t *dataptr) |
Public Member Functions inherited from USBDeviceConfig | |
virtual uint8_t | Init (uint8_t parent, uint8_t port, bool lowspeed) |
virtual uint8_t | ConfigureDevice (uint8_t parent, uint8_t port, bool lowspeed) |
virtual uint8_t | Release () |
virtual uint8_t | Poll () |
virtual uint8_t | GetAddress () |
virtual void | ResetHubPort (uint8_t port) |
virtual bool | VIDPIDOK (uint16_t vid, uint16_t pid) |
virtual bool | DEVCLASSOK (uint8_t klass) |
virtual bool | DEVSUBCLASSOK (uint8_t subklass) |
Public Member Functions inherited from UsbConfigXtracter | |
virtual void | EndpointXtract (uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep) |
Protected Member Functions | |
void | PrintEndpointDescriptor (const USB_ENDPOINT_DESCRIPTOR *ep_ptr) |
void | PrintHidDescriptor (const USB_HID_DESCRIPTOR *pDesc) |
virtual HIDReportParser * | GetReportParser (uint8_t id) |
Protected Attributes | |
USB * | pUsb |
uint8_t | bAddress |
Static Protected Attributes | |
static const uint8_t | epInterruptInIndex = 1 |
static const uint8_t | epInterruptOutIndex = 2 |
static const uint8_t | maxHidInterfaces = 3 |
static const uint8_t | maxEpPerInterface = 2 |
static const uint8_t | totalEndpoints = (maxHidInterfaces * maxEpPerInterface + 1) |
|
protected |
|
protected |
|
inlineprotectedvirtual |
Reimplemented in HIDUniversal.
|
inlinevirtual |
Reimplemented in HIDBoot< BOOT_PROTOCOL >, and HIDUniversal.
uint8_t HID::GetProtocol | ( | uint8_t | iface, |
uint8_t * | dataptr | ||
) |
uint8_t HID::GetIdle | ( | uint8_t | iface, |
uint8_t | reportID, | ||
uint8_t * | dataptr | ||
) |
uint8_t HID::SetIdle | ( | uint8_t | iface, |
uint8_t | reportID, | ||
uint8_t | duration | ||
) |
uint8_t HID::GetReportDescr | ( | uint16_t | wIndex, |
USBReadParser * | parser = NULL |
||
) |
uint8_t HID::GetHidDescr | ( | uint8_t | ep, |
uint16_t | nbytes, | ||
uint8_t * | dataptr | ||
) |
uint8_t HID::GetReport | ( | uint8_t | ep, |
uint8_t | iface, | ||
uint8_t | report_type, | ||
uint8_t | report_id, | ||
uint16_t | nbytes, | ||
uint8_t * | dataptr | ||
) |
uint8_t HID::SetReport | ( | uint8_t | ep, |
uint8_t | iface, | ||
uint8_t | report_type, | ||
uint8_t | report_id, | ||
uint16_t | nbytes, | ||
uint8_t * | dataptr | ||
) |
|
staticprotected |