18 #if !defined(__HIDCOMPOSITE_H__) 19 #define __HIDCOMPOSITE_H__ 80 virtual void ParseHIDData(
USBHID *hid __attribute__((unused)), uint8_t ep __attribute__((unused)),
bool is_rpt_id __attribute__((unused)), uint8_t len __attribute__((unused)), uint8_t *buf __attribute__((unused))) {
91 uint8_t
Init(uint8_t parent, uint8_t port,
bool lowspeed);
107 uint8_t
SndRpt(uint16_t nbytes, uint8_t *dataptr);
113 #endif // __HIDCOMPOSITE_H__
#define HID_MAX_HID_CLASS_DESCRIPTORS
HID_CLASS_DESCRIPTOR_LEN_AND_TYPE descrInfo[HID_MAX_HID_CLASS_DESCRIPTORS]
#define MAX_REPORT_PARSERS
virtual uint8_t OnInitSuccessful()
HIDInterface hidInterfaces[maxHidInterfaces]
virtual void ParseHIDData(USBHID *hid, uint8_t ep, bool is_rpt_id, uint8_t len, uint8_t *buf)
HIDInterface * FindInterface(uint8_t iface, uint8_t alt, uint8_t proto)
uint8_t Init(uint8_t parent, uint8_t port, bool lowspeed)
EpInfo epInfo[totalEndpoints]
static const uint16_t constBuffLen
virtual uint8_t GetAddress()
void ZeroMemory(uint8_t len, uint8_t *buf)
static const uint8_t maxEpPerInterface
virtual bool SelectInterface(uint8_t iface, uint8_t proto)=0
static const uint8_t maxHidInterfaces
static const uint8_t totalEndpoints
void EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep)
HIDReportParser * rptParser
uint8_t SndRpt(uint16_t nbytes, uint8_t *dataptr)
bool SetReportParser(uint8_t id, HIDReportParser *prs)
HIDReportParser * GetReportParser(uint8_t id)
struct HIDComposite::ReportParser rptParsers[MAX_REPORT_PARSERS]
uint16_t GetHidClassDescrLen(uint8_t type, uint8_t num)