aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Core/UC3/Host_UC3.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-05-27 07:33:58 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-05-27 07:33:58 +0000
commitcc9b190919abbc567cd179b31afeef565efb1f17 (patch)
tree8623481832f9a5a53eec5f49f712ca383732cba7 /LUFA/Drivers/USB/Core/UC3/Host_UC3.h
parent348bf33b189b6dfa2d62170331ed6402b986ee59 (diff)
downloadlufa-cc9b190919abbc567cd179b31afeef565efb1f17.tar.gz
lufa-cc9b190919abbc567cd179b31afeef565efb1f17.tar.bz2
lufa-cc9b190919abbc567cd179b31afeef565efb1f17.zip
Add new USB_Host_SetInterfaceAltSetting() convenience function.
Diffstat (limited to 'LUFA/Drivers/USB/Core/UC3/Host_UC3.h')
-rw-r--r--LUFA/Drivers/USB/Core/UC3/Host_UC3.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Core/UC3/Host_UC3.h b/LUFA/Drivers/USB/Core/UC3/Host_UC3.h
index 6040eb32b..c5dfe76fd 100644
--- a/LUFA/Drivers/USB/Core/UC3/Host_UC3.h
+++ b/LUFA/Drivers/USB/Core/UC3/Host_UC3.h
@@ -331,6 +331,19 @@
*/
uint8_t USB_Host_ClearPipeStall(const uint8_t EndpointIndex);
+ /** Selects a given alternative setting for the specfied interface, via a SET INTERFACE standard request to
+ * the attached device.
+ *
+ * \note After this routine returns, the control pipe will be selected.
+ *
+ * \param[in] InterfaceIndex Index of the interface whose alternative setting is to be altered.
+ * \param[in] AltSetting Index of the interface's alternative setting which is to be selected.
+ *
+ * \return A value from the \ref USB_Host_SendControlErrorCodes_t enum to indicate the result.
+ */
+ uint8_t USB_Host_SetInterfaceAltSetting(const uint8_t InterfaceNum,
+ const uint8_t AltSetting);
+
/* Private Interface - For use in library only: */
#if !defined(__DOXYGEN__)
/* Macros: */