18 #if !defined(__HIDUNIVERSAL_H__) 19 #define __HIDUNIVERSAL_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;
54 uint8_t prevBuf[constBuffLen];
57 HIDInterface* FindInterface(uint8_t iface, uint8_t alt, uint8_t proto);
59 void ZeroMemory(uint8_t len, uint8_t *buf);
60 bool BuffersIdentical(uint8_t len, uint8_t *buf1, uint8_t *buf2);
61 void SaveBuffer(uint8_t len, uint8_t *src, uint8_t *dest);
89 uint8_t
Init(uint8_t parent, uint8_t port,
bool lowspeed);
105 uint8_t
SndRpt(uint16_t nbytes, uint8_t *dataptr);
108 #endif // __HIDUNIVERSAL_H__
uint8_t Init(uint8_t parent, uint8_t port, bool lowspeed)
#define HID_MAX_HID_CLASS_DESCRIPTORS
#define MAX_REPORT_PARSERS
virtual void ParseHIDData(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
HIDInterface hidInterfaces[maxHidInterfaces]
virtual uint8_t OnInitSuccessful()
HIDReportParser * GetReportParser(uint8_t id)
void EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep)
static const uint8_t maxEpPerInterface
static const uint8_t maxHidInterfaces
static const uint8_t totalEndpoints
uint8_t SndRpt(uint16_t nbytes, uint8_t *dataptr)
virtual uint8_t GetAddress()
EpInfo epInfo[totalEndpoints]
bool SetReportParser(uint8_t id, HIDReportParser *prs)