aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Core/HostStandardReq.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-11-24 11:59:52 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-11-24 11:59:52 +0000
commit38d7cdf803a1e4b7855286dbfed381b206900d96 (patch)
tree05f65f48585f38bdc5d31a20bb70673775ecf92f /LUFA/Drivers/USB/Core/HostStandardReq.h
parent3b99abb5fcc4e92142d02b1a115fed8d5028596b (diff)
downloadlufa-38d7cdf803a1e4b7855286dbfed381b206900d96.tar.gz
lufa-38d7cdf803a1e4b7855286dbfed381b206900d96.tar.bz2
lufa-38d7cdf803a1e4b7855286dbfed381b206900d96.zip
Minor Doxygen documentation improvements.
Add missing ATTR_NON_NULL_PTR_ARG and const decorations.
Diffstat (limited to 'LUFA/Drivers/USB/Core/HostStandardReq.h')
-rw-r--r--LUFA/Drivers/USB/Core/HostStandardReq.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Core/HostStandardReq.h b/LUFA/Drivers/USB/Core/HostStandardReq.h
index 92b37f8a6..7b456c701 100644
--- a/LUFA/Drivers/USB/Core/HostStandardReq.h
+++ b/LUFA/Drivers/USB/Core/HostStandardReq.h
@@ -234,6 +234,7 @@
*
* \return A value from the \ref USB_Host_SendControlErrorCodes_t enum to indicate the result.
*/
+ static inline uint8_t USB_Host_GetDeviceDescriptor(USB_Descriptor_Device_t* const DeviceDescriptorPtr) ATTR_NON_NULL_PTR_ARG(1);
static inline uint8_t USB_Host_GetDeviceDescriptor(USB_Descriptor_Device_t* const DeviceDescriptorPtr)
{
return USB_Host_GetDescriptor(DTYPE_Device, 0, DeviceDescriptorPtr, sizeof(USB_Descriptor_Device_t));
@@ -257,6 +258,9 @@
*/
static inline uint8_t USB_Host_GetDeviceStringDescriptor(const uint8_t Index,
void* const Buffer,
+ const uint8_t BufferLength) ATTR_NON_NULL_PTR_ARG(2);
+ static inline uint8_t USB_Host_GetDeviceStringDescriptor(const uint8_t Index,
+ void* const Buffer,
const uint8_t BufferLength)
{
return USB_Host_GetDescriptor(DTYPE_String, Index, Buffer, BufferLength);