diff --git a/lib_xua/src/core/user/hid/user_hid.h b/lib_xua/src/core/user/hid/user_hid.h index ba115ff0..af826971 100644 --- a/lib_xua/src/core/user/hid/user_hid.h +++ b/lib_xua/src/core/user/hid/user_hid.h @@ -55,17 +55,6 @@ typedef struct hidEvent_t { */ size_t UserHIDGetData( const unsigned id, unsigned char hidData[ HID_MAX_DATA_BYTES ]); -/** - * \brief Get the upper limit of HID Report identifiers - * - * This function returns the upper limit of the HID Report identifiers. - * The upper limit has a value one greater than the maximum HID Report identifier. - * In the case that HID Report identifiers are not in use, this function returns the value 1. - * - * \returns The upper limit of HID Report identifiers - */ -unsigned UserHIDGetReportIdLimit ( void ); - /** * \brief Initialize HID processing */ diff --git a/lib_xua/src/hid/hid_report_descriptor.c b/lib_xua/src/hid/hid_report_descriptor.c index afbb1d28..cc5bdd2e 100644 --- a/lib_xua/src/hid/hid_report_descriptor.c +++ b/lib_xua/src/hid/hid_report_descriptor.c @@ -179,6 +179,10 @@ size_t hidGetReportDescriptorLength( void ) return retVal; } +unsigned hidGetReportIdLimit ( void ) { + return HID_REPORT_COUNT; +} + #define HID_CONFIGURABLE_ELEMENT_COUNT ( sizeof hidConfigurableElements / sizeof ( USB_HID_Report_Element_t* )) unsigned hidGetReportItem( const unsigned id, diff --git a/lib_xua/src/hid/xua_hid_report_descriptor.h b/lib_xua/src/hid/xua_hid_report_descriptor.h index fedbba65..5a67e769 100644 --- a/lib_xua/src/hid/xua_hid_report_descriptor.h +++ b/lib_xua/src/hid/xua_hid_report_descriptor.h @@ -115,6 +115,17 @@ unsigned char* hidGetReportDescriptor( void ); */ size_t hidGetReportDescriptorLength( void ); +/** + * \brief Get the upper limit of HID Report identifiers + * + * This function returns the upper limit of the HID Report identifiers. + * The upper limit has a value one greater than the maximum HID Report identifier. + * In the case that HID Report identifiers are not in use, this function returns the value 1. + * + * \returns The upper limit of HID Report identifiers + */ +unsigned hidGetReportIdLimit ( void ); + /** * @brief Get a HID Report descriptor item *