uint8_t DataINPipeNumber; /**< Pipe number of the HID interface's IN data pipe */\r
uint8_t DataOUTPipeNumber; /**< Pipe number of the HID interface's OUT data pipe */\r
\r
- bool MatchInterfaceProtocol;\r
- uint8_t HIDInterfaceProtocol;\r
+ bool MatchInterfaceProtocol; /**< Indicates whether the driver should match the device's\r
+ * HID interface protocol's value to the \ref HIDInterfaceProtocol\r
+ * suppled (otherwise just accept all HID class devices)\r
+ */\r
+ uint8_t HIDInterfaceProtocol; /**< HID interface protocol value to match against if the\r
+ * \ref MatchInterfaceProtocol is set to true (ignored otherwise)\r
+ */\r
} Config; /**< Config data for the USB class interface within the device. All elements in this section\r
* <b>must</b> be set or the interface will fail to enumerate and operate correctly.\r
*/\r
enum\r
{\r
HID_ENUMERROR_NoError = 0, /**< Configuration Descriptor was processed successfully */\r
- HID_ENUMERROR_ControlError = 1, /**< A control request to the device failed to complete successfully */\r
- HID_ENUMERROR_DescriptorTooLarge = 2, /**< The device's Configuration Descriptor is too large to process */\r
- HID_ENUMERROR_InvalidConfigDataReturned = 3, /**< The device returned an invalid Configuration Descriptor */\r
- HID_ENUMERROR_NoHIDInterfaceFound = 4, /**< A compatible HID interface was not found in the device's Configuration Descriptor */\r
- HID_ENUMERROR_EndpointsNotFound = 5, /**< Compatible HID endpoints were not found in the device's CDC interface */\r
+ HID_ENUMERROR_InvalidConfigDescriptor = 1, /**< The device returned an invalid Configuration Descriptor */\r
+ HID_ENUMERROR_NoHIDInterfaceFound = 2, /**< A compatible HID interface was not found in the device's Configuration Descriptor */\r
+ HID_ENUMERROR_EndpointsNotFound = 3, /**< Compatible HID endpoints were not found in the device's CDC interface */\r
} CDCHost_EnumerationFailure_ErrorCodes_t;\r
\r
/* Function Prototypes: */\r
void HID_Host_USBTask(USB_ClassInfo_HID_Host_t* HIDInterfaceInfo);\r
- uint8_t HID_Host_ConfigurePipes(USB_ClassInfo_HID_Host_t* HIDInterfaceInfo, uint16_t MaxConfigBufferSize);\r
+ uint8_t HID_Host_ConfigurePipes(USB_ClassInfo_HID_Host_t* HIDInterfaceInfo, uint16_t ConfigDescriptorLength,\r
+ uint8_t* DeviceConfigDescriptor);\r
\r
/* Private Interface - For use in library only: */\r
#if !defined(__DOXYGEN__)\r