USB Host Shield 2.0
|
#include <hidcomposite.h>
Public Member Functions | |
HIDComposite (USB *p) | |
bool | SetReportParser (uint8_t id, HIDReportParser *prs) |
uint8_t | Init (uint8_t parent, uint8_t port, bool lowspeed) |
uint8_t | Release () |
uint8_t | Poll () |
virtual uint8_t | GetAddress () |
virtual bool | isReady () |
void | EndpointXtract (uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep) |
uint8_t | SndRpt (uint16_t nbytes, uint8_t *dataptr) |
virtual bool | SelectInterface (uint8_t iface, uint8_t proto)=0 |
Public Member Functions inherited from USBHID | |
USBHID (USB *pusb) | |
const USB * | GetUsb () |
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 | ConfigureDevice (uint8_t parent, uint8_t port, bool lowspeed) |
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) |
Protected Member Functions | |
HIDReportParser * | GetReportParser (uint8_t id) |
virtual uint8_t | OnInitSuccessful () |
virtual void | ParseHIDData (USBHID *hid, uint8_t ep, bool is_rpt_id, uint8_t len, uint8_t *buf) |
Protected Member Functions inherited from USBHID | |
void | PrintEndpointDescriptor (const USB_ENDPOINT_DESCRIPTOR *ep_ptr) |
void | PrintHidDescriptor (const USB_HID_DESCRIPTOR *pDesc) |
Protected Attributes | |
EpInfo | epInfo [totalEndpoints] |
HIDInterface | hidInterfaces [maxHidInterfaces] |
bool | bHasReportId |
uint16_t | PID |
uint16_t | VID |
Protected Attributes inherited from USBHID | |
USB * | pUsb |
uint8_t | bAddress |
Additional Inherited Members | |
Static Protected Attributes inherited from USBHID | |
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) |
Definition at line 24 of file hidcomposite.h.
HIDComposite::HIDComposite | ( | USB * | p | ) |
Definition at line 20 of file hidcomposite.cpp.
|
protectedvirtual |
Reimplemented from USBHID.
Definition at line 83 of file hidcomposite.cpp.
|
inlineprotectedvirtual |
Definition at line 71 of file hidcomposite.h.
|
inlineprotectedvirtual |
Definition at line 75 of file hidcomposite.h.
|
virtual |
Reimplemented from USBHID.
Definition at line 72 of file hidcomposite.cpp.
|
virtual |
Reimplemented from USBDeviceConfig.
Definition at line 94 of file hidcomposite.cpp.
|
virtual |
Reimplemented from USBDeviceConfig.
Definition at line 340 of file hidcomposite.cpp.
|
virtual |
Reimplemented from USBDeviceConfig.
Definition at line 355 of file hidcomposite.cpp.
|
inlinevirtual |
Reimplemented from USBDeviceConfig.
Definition at line 90 of file hidcomposite.h.
|
inlinevirtual |
Definition at line 94 of file hidcomposite.h.
|
virtual |
Reimplemented from UsbConfigXtracter.
Definition at line 297 of file hidcomposite.cpp.
uint8_t HIDComposite::SndRpt | ( | uint16_t | nbytes, |
uint8_t * | dataptr | ||
) |
Definition at line 413 of file hidcomposite.cpp.
|
pure virtual |
|
protected |
Definition at line 61 of file hidcomposite.h.
|
protected |
Definition at line 62 of file hidcomposite.h.
|
protected |
Definition at line 64 of file hidcomposite.h.
|
protected |
Definition at line 66 of file hidcomposite.h.
|
protected |
Definition at line 66 of file hidcomposite.h.