23 #ifndef __USBH_STDREQ_H
24 #define __USBH_STDREQ_H
51 #define FEATURE_SELECTOR_ENDPOINT 0X00
52 #define FEATURE_SELECTOR_DEVICE 0X01
55 #define INTERFACE_DESC_TYPE 0x04
56 #define ENDPOINT_DESC_TYPE 0x05
57 #define INTERFACE_DESC_SIZE 0x09
60 #define USBH_HID_CLASS 0x03
105 uint8_t string_index,
111 uint16_t configuration_value);
119 uint8_t DeviceAddress);
123 uint8_t ep_num, uint8_t hc_num);
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.
Definition: usbh_stdreq.c:240
Header file for usbh_core.c.
Definition: usb_core.h:287
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...
Definition: usbh_stdreq.c:178
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...
Definition: usbh_stdreq.c:110
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...
Definition: usbh_stdreq.c:142
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.
Definition: usbh_stdreq.c:287
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.
Definition: usbh_stdreq.c:210
Definition: usbh_core.h:215
USBH_Status USBH_SetCfg(USB_OTG_CORE_HANDLE *pdev, USBH_HOST *phost, uint16_t configuration_value)
USBH_SetCfg The command sets the configuration value to the connected device.
Definition: usbh_stdreq.c:263
Definitions used in the USB host library.