STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
usbh_ctlreq.h
Go to the documentation of this file.
1 
28 /* Define to prevent recursive ----------------------------------------------*/
29 #ifndef __USBH_CTLREQ_H
30 #define __USBH_CTLREQ_H
31 
32 #ifdef __cplusplus
33  extern "C" {
34 #endif
35 
36 /* Includes ------------------------------------------------------------------*/
37 #include "usbh_core.h"
38 
56 /*Standard Feature Selector for clear feature command*/
57 #define FEATURE_SELECTOR_ENDPOINT 0X00
58 #define FEATURE_SELECTOR_DEVICE 0X01
59 
60 
61 #define INTERFACE_DESC_TYPE 0x04
62 #define ENDPOINT_DESC_TYPE 0x05
63 #define INTERFACE_DESC_SIZE 0x09
64 
88 extern uint8_t USBH_CfgDesc[512];
97  uint8_t *buff,
98  uint16_t length);
99 
101  uint8_t req_type,
102  uint16_t value_idx,
103  uint8_t* buff,
104  uint16_t length );
105 
107  uint8_t length);
108 
110  uint8_t string_index,
111  uint8_t *buff,
112  uint16_t length);
113 
115  uint16_t configuration_value);
116 
118  uint16_t length);
119 
121  uint8_t DeviceAddress);
122 
124  uint8_t ep_num, uint8_t altSetting);
125 
127  uint8_t ep_num);
128 
130  uint16_t *ptr);
135 #ifdef __cplusplus
136 }
137 #endif
138 
139 #endif /* __USBH_CTLREQ_H */
140 
153 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
154 
155 
Header file for usbh_core.c.
USBH_StatusTypeDef USBH_SetCfg(USBH_HandleTypeDef *phost, uint16_t configuration_value)
USBH_SetCfg The command sets the configuration value to the connected device.
Definition: usbh_ctlreq.c:260
USBH_StatusTypeDef USBH_Get_DevDesc(USBH_HandleTypeDef *phost, uint8_t length)
USBH_Get_DevDesc Issue Get Device Descriptor command to the device. Once the response received...
Definition: usbh_ctlreq.c:112
USBH_StatusTypeDef USBH_Get_StringDesc(USBH_HandleTypeDef *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...
Definition: usbh_ctlreq.c:175
USBH_StatusTypeDef USBH_SetAddress(USBH_HandleTypeDef *phost, uint8_t DeviceAddress)
USBH_SetAddress This command sets the address to the connected device.
Definition: usbh_ctlreq.c:236
USBH_StatusTypeDef USBH_ClrFeature(USBH_HandleTypeDef *phost, uint8_t ep_num)
USBH_ClrFeature This request is used to clear or disable a specific feature.
Definition: usbh_ctlreq.c:308
USBH_StatusTypeDef USBH_SetInterface(USBH_HandleTypeDef *phost, uint8_t ep_num, uint8_t altSetting)
USBH_SetInterface The command sets the Interface value to the connected device.
Definition: usbh_ctlreq.c:283
USBH_StatusTypeDef USBH_CtlReq(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length)
USBH_CtlReq USBH_CtlReq sends a control request and provide the status after completion of the reques...
Definition: usbh_ctlreq.c:531
Definition: pbuf.h:108
USBH_DescHeader_t * USBH_GetNextDesc(uint8_t *pbuf, uint16_t *ptr)
USBH_GetNextDesc This function return the next descriptor header.
Definition: usbh_ctlreq.c:509
uint8_t USBH_CfgDesc[512]
USBH_StatusTypeDef USBH_GetDescriptor(USBH_HandleTypeDef *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.
Definition: usbh_ctlreq.c:204
USBH_StatusTypeDef
Definition: usbh_def.h:302
USBH_StatusTypeDef USBH_Get_CfgDesc(USBH_HandleTypeDef *phost, uint16_t length)
USBH_Get_CfgDesc Issues Configuration Descriptor to the device. Once the response received...
Definition: usbh_ctlreq.c:137