LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
USB_HID_REPORT_T Struct Reference

HID report descriptor data structure. More...

#include "usbd_hiduser.h"

Data Fields

uint16_t len
 
uint8_t idle_time
 
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_T. 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 struture per report it supports and the array of reoprt types to USBD_HID_API::init() through USBD_HID_INIT_PARAM_T structure.

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

Definition at line 66 of file usbd_hiduser.h.

Field Documentation

uint8_t* desc

Report descriptor.

Definition at line 77 of file usbd_hiduser.h.

uint8_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.

Definition at line 68 of file usbd_hiduser.h.

uint16_t len

Size of the report descriptor in bytes.

Definition at line 67 of file usbd_hiduser.h.


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