Go to the documentation of this file.
17 #if !defined(__HIDDESCRIPTORPARSER_H__)
18 #define __HIDDESCRIPTORPARSER_H__
41 static void PrintValue(uint8_t *p, uint8_t len);
115 virtual uint8_t
ParseItem(uint8_t **pp, uint16_t *pcntdn);
136 void Parse(
const uint16_t len,
const uint8_t *pbuf,
const uint16_t &offset);
154 void OnInputItem(uint8_t itm);
161 virtual uint8_t
ParseItem(uint8_t **pp, uint16_t *pcntdn);
173 virtual void Parse(
USBHID *hid,
bool is_rpt_id, uint8_t len, uint8_t *buf);
176 #endif // __HIDDESCRIPTORPARSER_H__
static const char *const genDesktopTitles3[]
static void PrintGenericDeviceControlsPageUsage(uint16_t usage)
static const char *const consTitlesB[]
static const char *const usagePageTitles0[]
static void PrintOrdinalPageUsage(uint16_t usage)
static void PrintTelephonyPageUsage(uint16_t usage)
static const char *const genDesktopTitles1[]
static const char *const ledTitles[]
static const char *const aplphanumTitles1[]
static const char *const consTitlesC[]
MultiValueBuffer theBuffer
static const char *const telTitles1[]
static const char *const medInstrTitles0[]
static void PrintGameControlsPageUsage(uint16_t usage)
static const char *const telTitles3[]
static const char *const medInstrTitles3[]
static void PrintVRControlsPageUsage(uint16_t usage)
static const char *const telTitles4[]
static const char *const aplphanumTitles2[]
static const char *const gameTitles0[]
void Parse(const uint16_t len, const uint8_t *pbuf, const uint16_t &offset)
static const char *const consTitles8[]
static const char *const simuTitles1[]
static const char *const digitTitles1[]
static const char *const consTitles5[]
void Initialize(MultiValueBuffer *pbuf)
static void PrintByteValue(uint8_t data)
static const char *const gameTitles1[]
static const char *const sportsCtrlTitles2[]
static const char *const consTitlesE[]
static const char *const consTitlesA[]
static const char *const consTitles3[]
static const char *const vrTitles0[]
static const char *const genDesktopTitles2[]
static const char *const genDesktopTitles0[]
static void PrintGenericDesktopPageUsage(uint16_t usage)
static const char *const genDesktopTitles4[]
static void PrintAlphanumDisplayPageUsage(uint16_t usage)
MultiByteValueParser valParser
static const char *const simuTitles0[]
static void PrintLEDPageUsage(uint16_t usage)
static UsagePageFunc usagePageFunctions[]
static const char *const aplphanumTitles0[]
static const char *const consTitles0[]
static const char *const medInstrTitles4[]
void(* UsagePageFunc)(uint16_t usage)
void Initialize(MultiValueBuffer *const pbuf)
static void PrintSimulationControlsPageUsage(uint16_t usage)
static void PrintButtonPageUsage(uint16_t usage)
static void PrintUsagePage(uint16_t page)
static void PrintValue(uint8_t *p, uint8_t len)
static const char *const consTitles4[]
static const char *const telTitles0[]
static void PrintConsumerPageUsage(uint16_t usage)
virtual void Parse(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
static void PrintSportsControlsPageUsage(uint16_t usage)
static const char *const medInstrTitles2[]
static const char *const digitTitles0[]
static const char *const telTitles2[]
static const char *const consTitles9[]
static const char *const digitTitles2[]
ReportDescParser2(uint16_t len, uint8_t *pbuf)
uint8_t varBuffer[sizeof(USB_CONFIGURATION_DESCRIPTOR)]
virtual uint8_t ParseItem(uint8_t **pp, uint16_t *pcntdn)
static const char *const simuTitles2[]
static const char *const sportsCtrlTitles1[]
static const char *const consTitles7[]
static const char *const telTitles5[]
static const char *const sportsCtrlTitles0[]
void SetUsagePage(uint16_t page)
static const char *const consTitles2[]
static const char *const consTitles6[]
static const char *const vrTitles1[]
static const char *const usagePageTitles1[]
static void PrintMedicalInstrumentPageUsage(uint16_t usage)
static const char *const consTitlesD[]
static const char *const genDevCtrlTitles[]
virtual uint8_t ParseItem(uint8_t **pp, uint16_t *pcntdn)
static void PrintItemTitle(uint8_t prefix)
static void PrintDigitizerPageUsage(uint16_t usage)
static const char *const medInstrTitles1[]
static const char *const consTitles1[]