/** \brief Processes the \c CLEAR_FEATURE request (clears or disables a specific feature) * * The feature selector value must be appropriate to the recipient. * * <b>Parameters</b>: * - VALUE: Feature selector: * - \c USBSR_FEATSEL_DEVICE_REMOTE_WAKEUP(1): Disable remote wakeup * - \c USBSR_FEATSEL_ENDPOINT_HALT(0): Clear the halt feature for the specified endpoint (not * endpoint 0!) * - INDEX: Depends upon the recipient: * - DEVICE: Always 0 * - INTERFACE: Interface number * - ENDPOINT: Endpoint address * - LENGTH: Always 0 */ void usbsrClearFeature(void) { if(!usbsrChangeFeature(false)) { usbsrHookClearFeature(); } }
/** \brief Processes the \ref CLEAR_FEATURE request (clears or disables a specific feature) * * The feature selector value must be appropriate to the recipient. * * <b>Parameters</b>: * - VALUE: Feature selector: * - \c DEVICE_REMOTE_WAKEUP(1): Enable remote wakeup * - \c ENDPOINT_HALT(0): Clear the halt feature for the specified endpoint (not endpoint 0!) * - INDEX: Depends upon the recipient: * - DEVICE: Always 0 * - INTERFACE: Interface number * - ENDPOINT: Endpoint address * - LENGTH: Always 0 */ void usbsrClearFeature() { if (!ChangeFeature(FALSE)) { usbsrHookClearFeature(); } } // usbsrClearFeature