diff --git a/lib_xua/src/hid/hid_report_descriptor.c b/lib_xua/src/hid/hid_report_descriptor.c index cc5bdd2e..399d82c7 100644 --- a/lib_xua/src/hid/hid_report_descriptor.c +++ b/lib_xua/src/hid/hid_report_descriptor.c @@ -99,7 +99,8 @@ static unsigned hidGetItemType( const unsigned char header ); * * Parameters: * - * @param[in] id The HID Report ID for the Usage Page + * @param[in] id The HID Report ID for the Usage Page. + * A value of zero means the application does not use Report IDs. * * @return The USB HID Usage Page code or zero if the \a id parameter is out-of-range */ @@ -140,8 +141,8 @@ static unsigned hidGetElementReportId( const unsigned short location ) static size_t hidGetElementReportLength( const unsigned short location ) { - size_t bReportId = (size_t)( location & HID_REPORT_ELEMENT_LOC_LEN_MASK ) >> HID_REPORT_ELEMENT_LOC_LEN_SHIFT; - return bReportId; + size_t bReportLen = (size_t)( location & HID_REPORT_ELEMENT_LOC_LEN_MASK ) >> HID_REPORT_ELEMENT_LOC_LEN_SHIFT; + return bReportLen; } static unsigned hidGetItemSize( const unsigned char header ) diff --git a/lib_xua/src/hid/xua_hid_report_descriptor.h b/lib_xua/src/hid/xua_hid_report_descriptor.h index 5a67e769..c9312be2 100644 --- a/lib_xua/src/hid/xua_hid_report_descriptor.h +++ b/lib_xua/src/hid/xua_hid_report_descriptor.h @@ -131,7 +131,8 @@ unsigned hidGetReportIdLimit ( void ); * * Parameters: * - * @param[in] id The identifier for the HID Report (see 5.6, 6.2.2.7, 8.1 and 8.2) + * @param[in] id The identifier for the HID Report (see 5.6, 6.2.2.7, 8.1 and 8.2). + * A value of zero means the application does not use Report IDs. * @param[in] byte The byte position of the control within the HID Report * @param[in] bit The bit position of the control within the \a byte * @param[out] page The USB HID Usage Page code for the Item (see 5.5) @@ -173,6 +174,7 @@ unsigned hidGetReportItem( * Parameters: * * @param[in] id The identifier for the HID Report (see 5.6, 6.2.2.7, 8.1 and 8.2) + * A value of zero means the application does not use Report IDs. * * @return The length of the Report in bytes */ @@ -205,6 +207,7 @@ void hidResetReportDescriptor( void ); * Parameters: * * @param[in] id The identifier for the HID Report (see 5.6, 6.2.2.7, 8.1 and 8.2) + * A value of zero means the application does not use Report IDs. * @param[in] byte The byte position of the control within the HID Report * @param[in] bit The bit position of the control within the \a byte * @param[in] page The USB HID Usage Page code for the Item (see 5.5)