4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 01:53:32 +08:00
woody 7d469384b5
将swm320和swm341整合进synwit (#6290)
* 将swm320和swm341整合进synwit
2022-08-16 12:43:24 -04:00

19 lines
733 B
C

#ifndef __USBH_STDREQ_H__
#define __USBH_STDREQ_H__
#include <stdint.h>
#include "usbh_core.h"
USBH_Status USBH_GetDescriptor(USBH_Info_t *phost, uint8_t type, uint8_t index, uint8_t *buff, int size);
USBH_Status USBH_GetDescriptorEx(USBH_Info_t *phost, uint8_t reqType, uint8_t reqTarget, uint8_t type, uint8_t index, uint16_t wIndex, uint8_t *buff, int size);
USBH_Status USBH_SetAddress(USBH_Info_t *phost, uint8_t addr);
USBH_Status USBH_SetConfiguration(USBH_Info_t *phost, uint8_t cfg);
USBH_Status USBH_SetInterface(USBH_Info_t *phost, uint8_t intf, uint8_t altSetting);
USBH_Status USBH_ClrFeature(USBH_Info_t *phost, uint8_t ep);
USBH_Status USBH_ParseCfgDesc(USBH_Info_t *phost, uint8_t *buff, uint16_t size);
#endif