Add new USB_Host_SetInterfaceAltSetting() convenience function.
[pub/lufa.git] / LUFA / Drivers / USB / Core / UC3 / Host_UC3.h
index 6040eb3..c5dfe76 100644 (file)
                         */\r
                        uint8_t USB_Host_ClearPipeStall(const uint8_t EndpointIndex);\r
 \r
+                       /** Selects a given alternative setting for the specfied interface, via a SET INTERFACE standard request to\r
+                        *  the attached device.\r
+                        *\r
+                        *  \note After this routine returns, the control pipe will be selected.\r
+                        *\r
+                        *  \param[in] InterfaceIndex  Index of the interface whose alternative setting is to be altered.\r
+                        *  \param[in] AltSetting      Index of the interface's alternative setting which is to be selected.\r
+                        *\r
+                        *  \return A value from the \ref USB_Host_SendControlErrorCodes_t enum to indicate the result.\r
+                        */\r
+                       uint8_t USB_Host_SetInterfaceAltSetting(const uint8_t InterfaceNum,\r
+                                                                                                       const uint8_t AltSetting);\r
+\r
        /* Private Interface - For use in library only: */\r
        #if !defined(__DOXYGEN__)\r
                /* Macros: */\r