USB Library
USB_HID_RPT_DESC_ERROR Enumeration
Syntax
typedef enum {
  HID_ERR = 0,
  HID_ERR_NotEnoughMemory,
  HID_ERR_NullPointer,
  HID_ERR_UnexpectedEndCollection,
  HID_ERR_UnexpectedPop,
  HID_ERR_MissingEndCollection,
  HID_ERR_MissingTopLevelCollection,
  HID_ERR_NoReports,
  HID_ERR_UnmatchedUsageRange,
  HID_ERR_UnmatchedStringRange,
  HID_ERR_UnmatchedDesignatorRange,
  HID_ERR_UnexpectedEndOfDescriptor,
  HID_ERR_BadLogicalMin,
  HID_ERR_BadLogicalMax,
  HID_ERR_BadLogical,
  HID_ERR_ZeroReportSize,
  HID_ERR_ZeroReportID,
  HID_ERR_ZeroReportCount,
  HID_ERR_BadUsageRangePage,
  HID_ERR_BadUsageRange
} USB_HID_RPT_DESC_ERROR;
Description

HID parser error codes 

This enumerates the error encountered during the parsing of report descriptor. In case of any error parsing is sttopped and the error is flagged. Device is not attched successfully.

Members
Members 
Description 
HID_ERR = 0 
No error 
HID_ERR_NotEnoughMemory 
If not enough Heap can be allocated, make sure sufficient dynamic memory is aloocated for the parser 
HID_ERR_NullPointer 
Pointer to report descriptor is NULL 
HID_ERR_UnexpectedEndCollection 
End of collection not expected 
HID_ERR_UnexpectedPop 
POP not expected 
HID_ERR_MissingEndCollection 
No end of collection found 
HID_ERR_MissingTopLevelCollection 
Atleast one collection must be present 
HID_ERR_NoReports 
atlest one report must be present 
HID_ERR_UnmatchedUsageRange 
Either Minimum or Maximum for usage range missing 
HID_ERR_UnmatchedStringRange 
Either Minimum or Maximum for string range missing 
HID_ERR_UnmatchedDesignatorRange 
Either Minimum or Maximum for designator range missing 
HID_ERR_UnexpectedEndOfDescriptor 
Report descriptor not formatted properly 
HID_ERR_BadLogicalMin 
Logical Min greater than report size 
HID_ERR_BadLogicalMax 
Logical Max greater than report size 
HID_ERR_BadLogical 
If logical Min is greater than Max 
HID_ERR_ZeroReportSize 
Report size is zero 
HID_ERR_ZeroReportID 
report ID is zero 
HID_ERR_ZeroReportCount 
Number of reports is zero 
HID_ERR_BadUsageRangePage 
Bad Usage page range 
HID_ERR_BadUsageRange 
Bad Usage range 
MLA - USB Library Help Version : 2.16
http://www.microchip.com/mla