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