USB Library
USBHostHID_ApiFindValue Function
Syntax
bool USBHostHID_ApiFindValue(
    uint16_t usagePage, 
    uint16_t usage, 
    HIDReportTypeEnum type, 
    uint8_t* Report_ID, 
    uint8_t* Report_Length, 
    uint8_t* Start_Bit, 
    uint8_t* Bit_Length
);
Description

Find a specific Usage Value. Once the report descriptor is parsed by the HID layer without any error, data from the report descriptor is stored in pre defined dat structures. This function traverses these data structure and exract data required by application.

Preconditions

None

Return Values
Return Values 
Description 
true 
If the required usage is located in the report descriptor 
false 
If the application required usage is not supported by the device(i.e report descriptor). 
Remarks

Application event handler with event 'EVENT_HID_RPT_DESC_PARSED' is called. Application is suppose to fill in data details structure 'HID_DATA_DETAILS' This function can be used to the get the details of the required usages.

MLA - USB Library Help Version : 2.16
http://www.microchip.com/mla