summaryrefslogtreecommitdiff
path: root/bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/usbh_stdreq.h
diff options
context:
space:
mode:
authorXian Wu <[email protected]>2023-12-27 18:41:52 +0800
committerGitHub <[email protected]>2023-12-27 18:41:52 +0800
commit6360253c129afcb91d34770cb253eea8d837e66a (patch)
tree065167006028882ff4d57208252d1e0ce9f3b4e4 /bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/usbh_stdreq.h
parent7b4592c2d15bf90c1958bdbc840ea4df3d97cd96 (diff)
Synwit MCU 采用新的 BSP 框架,将 BSP 与 libraries 分离 (#8432)
Diffstat (limited to 'bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/usbh_stdreq.h')
-rw-r--r--bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/usbh_stdreq.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/usbh_stdreq.h b/bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/usbh_stdreq.h
new file mode 100644
index 0000000000..876005a3a8
--- /dev/null
+++ b/bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/usbh_stdreq.h
@@ -0,0 +1,18 @@
+#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