sources/common/libs/STM32Cube_F4/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c
/**
  * @brief  USBD_SetFeature
  *         Handle Set device feature request
  * @param  pdev: device instance
  * @param  req: usb request
  * @retval status
  */
@brief  USBD_SetFeature
Handle Set device feature request
@param  pdev: device instance
@param  req: usb request
@retval status
@brief USBD_SetFeature Handle Set device feature request @param pdev : device instance @param req : usb request @retval status
static void USBD_SetFeature(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req)
{
  if (req->wValue == USB_FEATURE_REMOTE_WAKEUP)
  {
    pdev->dev_remote_wakeup = 1U;
    (void)USBD_CtlSendStatus(pdev);
  }
  else if (req->wValue == USB_FEATURE_TEST_MODE)
  {
    pdev->dev_test_mode = req->wIndex >> 8;
    (void)USBD_CtlSendStatus(pdev);
  }
  else
  {
    USBD_CtlError(pdev, req);
  }
}
static void USBD_SetFeature ( USBD_HandleTypeDef * pdev , USBD_SetupReqTypedef * req ) { if ( req -> wValue == USB_FEATURE_REMOTE_WAKEUP ) { pdev -> dev_remote_wakeup = 1U ; ( void ) USBD_CtlSendStatus ( pdev ) ; } else if ( req -> wValue == USB_FEATURE_TEST_MODE ) { pdev -> dev_test_mode = req -> wIndex >> 8 ; ( void ) USBD_CtlSendStatus ( pdev ) ; } else { USBD_CtlError ( pdev , req ) ; } }
@brief  USBD_SetFeature
         Handle Set device feature request
 @param  pdev: device instance
 @param  req: usb request
 @retval status
@brief USBD_SetFeature Handle Set device feature request @param pdev : device instance @param req : usb request @retval status