USB Host Shield 2.0
|
#include <usbhid.h>
Public Member Functions | |
USBHID (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 = 5 |
static const uint8_t | maxEpPerInterface = 2 |
static const uint8_t | totalEndpoints = (maxHidInterfaces * maxEpPerInterface + 1) |
|
protected |
Definition at line 74 of file usbhid.cpp.
|
protected |
Definition at line 90 of file usbhid.cpp.
|
inlineprotectedvirtual |
Reimplemented in HIDComposite.
|
inlinevirtual |
Reimplemented in HIDComposite, and HIDBoot< BOOT_PROTOCOL >.
uint8_t USBHID::SetProtocol | ( | uint8_t | iface, |
uint8_t | protocol | ||
) |
Definition at line 66 of file usbhid.cpp.
uint8_t USBHID::GetProtocol | ( | uint8_t | iface, |
uint8_t * | dataptr | ||
) |
Definition at line 70 of file usbhid.cpp.
uint8_t USBHID::GetIdle | ( | uint8_t | iface, |
uint8_t | reportID, | ||
uint8_t * | dataptr | ||
) |
Definition at line 58 of file usbhid.cpp.
uint8_t USBHID::SetIdle | ( | uint8_t | iface, |
uint8_t | reportID, | ||
uint8_t | duration | ||
) |
Definition at line 62 of file usbhid.cpp.
uint8_t USBHID::GetReportDescr | ( | uint16_t | wIndex, |
USBReadParser * | parser = NULL |
||
) |
Definition at line 34 of file usbhid.cpp.
uint8_t USBHID::GetHidDescr | ( | uint8_t | ep, |
uint16_t | nbytes, | ||
uint8_t * | dataptr | ||
) |
uint8_t USBHID::GetReport | ( | uint8_t | ep, |
uint8_t | iface, | ||
uint8_t | report_type, | ||
uint8_t | report_id, | ||
uint16_t | nbytes, | ||
uint8_t * | dataptr | ||
) |
Definition at line 54 of file usbhid.cpp.
uint8_t USBHID::SetReport | ( | uint8_t | ep, |
uint8_t | iface, | ||
uint8_t | report_type, | ||
uint8_t | report_id, | ||
uint16_t | nbytes, | ||
uint8_t * | dataptr | ||
) |
Definition at line 50 of file usbhid.cpp.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |