18 #if !defined(__HIDCOMPOSITE_H__) 19 #define __HIDCOMPOSITE_H__ 35 uint16_t GetHidClassDescrLen(uint8_t type, uint8_t num);
39 uint8_t bmInterface : 3;
41 uint8_t bmProtocol : 2;
49 uint32_t qNextPollTime;
53 static const uint16_t constBuffLen = 64;
56 HIDInterface* FindInterface(uint8_t iface, uint8_t alt, uint8_t proto);
58 void ZeroMemory(uint8_t len, uint8_t *buf);
75 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))) {
86 uint8_t
Init(uint8_t parent, uint8_t port,
bool lowspeed);
102 uint8_t
SndRpt(uint16_t nbytes, uint8_t *dataptr);
108 #endif // __HIDCOMPOSITE_H__
#define 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)
uint8_t Init(uint8_t parent, uint8_t port, bool lowspeed)
EpInfo epInfo[totalEndpoints]
virtual uint8_t GetAddress()
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)
uint8_t SndRpt(uint16_t nbytes, uint8_t *dataptr)
bool SetReportParser(uint8_t id, HIDReportParser *prs)
HIDReportParser * GetReportParser(uint8_t id)