discoverpixy
Functions
usbh_stdreq.c File Reference

This file implements the standard requests for device enumeration. More...

#include "usbh_ioreq.h"
#include "usbh_stdreq.h"
Include dependency graph for usbh_stdreq.c:

Functions

USBH_Status USBH_Get_DevDesc (USB_OTG_CORE_HANDLE *pdev, USBH_HOST *phost, uint8_t length)
 USBH_Get_DevDesc Issue Get Device Descriptor command to the device. Once the response received, it parses the device descriptor and updates the status. More...
 
USBH_Status USBH_Get_CfgDesc (USB_OTG_CORE_HANDLE *pdev, USBH_HOST *phost, uint16_t length)
 USBH_Get_CfgDesc Issues Configuration Descriptor to the device. Once the response received, it parses the configuartion descriptor and updates the status. More...
 
USBH_Status USBH_Get_StringDesc (USB_OTG_CORE_HANDLE *pdev, USBH_HOST *phost, uint8_t string_index, uint8_t *buff, uint16_t length)
 USBH_Get_StringDesc Issues string Descriptor command to the device. Once the response received, it parses the string descriptor and updates the status. More...
 
USBH_Status USBH_GetDescriptor (USB_OTG_CORE_HANDLE *pdev, USBH_HOST *phost, uint8_t req_type, uint16_t value_idx, uint8_t *buff, uint16_t length)
 USBH_GetDescriptor Issues Descriptor command to the device. Once the response received, it parses the descriptor and updates the status. More...
 
USBH_Status USBH_SetAddress (USB_OTG_CORE_HANDLE *pdev, USBH_HOST *phost, uint8_t DeviceAddress)
 USBH_SetAddress This command sets the address to the connected device. More...
 
USBH_Status USBH_SetCfg (USB_OTG_CORE_HANDLE *pdev, USBH_HOST *phost, uint16_t cfg_idx)
 USBH_SetCfg The command sets the configuration value to the connected device. More...
 
USBH_Status USBH_ClrFeature (USB_OTG_CORE_HANDLE *pdev, USBH_HOST *phost, uint8_t ep_num, uint8_t hc_num)
 USBH_ClrFeature This request is used to clear or disable a specific feature. More...
 

Detailed Description

This file implements the standard requests for device enumeration.

Author
MCD Application Team
Version
V2.0.0
Date
22-July-2011
Attention

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2011 STMicroelectronics