X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/2919aeeaaba0d1d54e03f9132269c5277d414543..05fcf7e2a79bebb978d4aeaef26b12f70c6826f8:/LUFA/Drivers/USB/Class/Host/HIDParser.h?ds=inline diff --git a/LUFA/Drivers/USB/Class/Host/HIDParser.h b/LUFA/Drivers/USB/Class/Host/HIDParser.h index e1f4cb3c2..907610798 100644 --- a/LUFA/Drivers/USB/Class/Host/HIDParser.h +++ b/LUFA/Drivers/USB/Class/Host/HIDParser.h @@ -205,7 +205,9 @@ HID_ReportItem_Attributes_t Attributes; /**< Report item attributes. */ - uint32_t Value; /**< Current value of the report item. */ + uint32_t Value; /**< Current value of the report item - use \ref HID_ALIGN_DATA() when processing + * a retrieved value so that it is aligned to a specific type. + */ uint32_t PreviousValue; /**< Previous value of the report item. */ } HID_ReportItem_t; @@ -278,7 +280,7 @@ * \param[out] ReportData Buffer holding the current OUT or FEATURE report data * \param[in] ReportItem Pointer to the report item of interest in a \ref HID_ReportInfo_t ReportItem array */ - void USB_SetHIDReportItemInfo(uint8_t* ReportData, const HID_ReportItem_t* ReportItem) + void USB_SetHIDReportItemInfo(uint8_t* ReportData, HID_ReportItem_t* const ReportItem) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2); /** Retrieves the size of a given HID report in bytes from it's Report ID.