bool USBHostHID_ApiFindBit( uint16_t usagePage, uint16_t usage, HIDReportTypeEnum type, uint8_t* Report_ID, uint8_t* Report_Length, uint8_t* Start_Bit );
This function is used to locate a specific button or indicator. 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
None
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). |
Application event handler with event 'EVENT_HID_RPT_DESC_PARSED' is called. Application is suppose to fill in data details in 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
![]() |