| USBD ROM Stack 1.0 ROM based USB device stack

Data Fields
USB_HID_REPORT_T Struct Reference
HID Class Function Driver

HID report descriptor data structure. More...

`#include <mw_usbd/mw_usbd_hiduser.h>`

## Data Fields
uint16_t | len
uint8_t | idle_time
uint8_t | __pad
uint8_t * | desc

## Detailed Description

HID report descriptor data structure.

This structure is used as part of HID function driver initialization parameter structure USBD_HID_INIT_PARAM. This structure contains details of a report type supported by the application. An application can support multiple report types as a single HID device. The application should define this report type data structure per report it supports and the array of report types to USBD_HID_API::init() through USBD_HID_INIT_PARAM structure.

Note
  All descriptor pointers assigned in this structure should be on 4 byte aligned address boundary.

## Field Documentation

## ◆ len

uint16_t USB_HID_REPORT_T::len

Size of the report descriptor in bytes.

## ◆ idle_time

uint8_t USB_HID_REPORT_T::idle_time

This value is used by stack to respond to Set_Idle & GET_Idle requests for the specified report ID. The value of this field specified the rate at which duplicate reports are generated for the specified Report ID. For example, a device with two input reports could specify an idle rate of 20 milliseconds for report ID 1 and 500 milliseconds for report ID 2.

## ◆ __pad

uint8_t USB_HID_REPORT_T::__pad

Padding space.

## ◆ desc

uint8_t* USB_HID_REPORT_T::desc

Report descriptor.

The documentation for this struct was generated from the following file:

- mw_usbd/mw_usbd_hiduser.h