USB Libraries Help > USB Device Libraries > USB HID Device Library > Library Interface > b) Data Types and Constants > USB_DEVICE_HID_INIT Structure
MPLAB Harmony USB Stack
USB_DEVICE_HID_INIT Structure

USB Device HID Function Driver Initialization Data Structure 

This data structure must be defined for every instance of the HID function driver. It is passed to the HID function driver, by the Device Layer, at the time of initialization. The funcDriverInit member of the Device Layer Function Driver registration table entry must point to this data structure for an instance of the HID function driver.

C
typedef struct {
  size_t hidReportDescriptorSize;
  void * hidReportDescriptor;
  size_t queueSizeReportSend;
  size_t queueSizeReportReceive;
} USB_DEVICE_HID_INIT;
Members
Members 
Description 
size_t hidReportDescriptorSize; 
Size of the HID report descriptor 
void * hidReportDescriptor; 
Pointer to HID report descriptor 
size_t queueSizeReportSend; 
Report send queue size 
size_t queueSizeReportReceive; 
Report receive queue size 
Remarks

None.