aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Core/Device.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-05-14 02:17:58 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-05-14 02:17:58 +0000
commit049e9309637cd057689cf273b2023afb0d6876ae (patch)
tree184919dd3e728aad41bc3bb1567b6f95f18564aa /LUFA/Drivers/USB/Core/Device.h
parent78e58b6d1c645c3ba1afaa536e2ba5bdab2b235b (diff)
downloadlufa-049e9309637cd057689cf273b2023afb0d6876ae.tar.gz
lufa-049e9309637cd057689cf273b2023afb0d6876ae.tar.bz2
lufa-049e9309637cd057689cf273b2023afb0d6876ae.zip
Fixed possible invalid program execution when in host mode if corrupt descriptor lengths are supplied by the attached device.
Minor code cleanups to add const and reformat where missing, as well as abstract out the internal device signature start address into a macro, so that it can be altered to suit particular devices within a single architecture if needed. Add missing documentation to the USB_Device_States_t enum.
Diffstat (limited to 'LUFA/Drivers/USB/Core/Device.h')
-rw-r--r--LUFA/Drivers/USB/Core/Device.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Core/Device.h b/LUFA/Drivers/USB/Core/Device.h
index be3dfd118..0e8662417 100644
--- a/LUFA/Drivers/USB/Core/Device.h
+++ b/LUFA/Drivers/USB/Core/Device.h
@@ -63,6 +63,13 @@
/* Public Interface - May be used in end-application: */
/* Enums: */
+ /** Enum for the various states of the USB Device state machine. Only some states are
+ * implemented in the LUFA library - other states are left to the user to implement.
+ *
+ * For information on each possible USB device state, refer to the USB 2.0 specification.
+ *
+ * \see \ref USB_DeviceState, which stores the current device state machine state.
+ */
enum USB_Device_States_t
{
DEVICE_STATE_Unattached = 0, /**< Internally implemented by the library. This state indicates