| /bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/ |
| A D | usbh_core.c | 424 size = (phost->Ctrl.size > phost->Ctrl.pksz) ? phost->Ctrl.pksz : phost->Ctrl.size; in USBH_HandleControl() 464 phost->State = phost->StateBkp; in USBH_HandleControl() 469 phost->State = phost->StateBkp; in USBH_HandleControl() 474 size = (phost->Ctrl.size > phost->Ctrl.pksz) ? phost->Ctrl.pksz : phost->Ctrl.size; in USBH_HandleControl() 506 phost->State = phost->StateBkp; in USBH_HandleControl() 511 phost->State = phost->StateBkp; in USBH_HandleControl() 529 phost->State = phost->StateBkp; in USBH_HandleControl() 538 phost->State = phost->StateBkp; in USBH_HandleControl() 543 phost->State = phost->StateBkp; in USBH_HandleControl() 561 phost->State = phost->StateBkp; in USBH_HandleControl() [all …]
|
| A D | usbh_stdreq.c | 40 phost->Ctrl.setup.wLength = size; in USBH_GetDescriptor() 63 phost->Ctrl.setup.wLength = size; in USBH_GetDescriptorEx() 80 phost->Ctrl.setup.wValue = addr; in USBH_SetAddress() 81 phost->Ctrl.setup.wIndex = 0; in USBH_SetAddress() 82 phost->Ctrl.setup.wLength = 0; in USBH_SetAddress() 99 phost->Ctrl.setup.wValue = cfg; in USBH_SetConfiguration() 100 phost->Ctrl.setup.wIndex = 0; in USBH_SetConfiguration() 101 phost->Ctrl.setup.wLength = 0; in USBH_SetConfiguration() 120 phost->Ctrl.setup.wLength = 0; in USBH_SetInterface() 138 phost->Ctrl.setup.wIndex = ep; in USBH_ClrFeature() [all …]
|
| A D | usbh_stdreq.h | 8 USBH_Status USBH_GetDescriptor(USBH_Info_t *phost, uint8_t type, uint8_t index, uint8_t *buff, int … 9 USBH_Status USBH_GetDescriptorEx(USBH_Info_t *phost, uint8_t reqType, uint8_t reqTarget, uint8_t ty… 11 USBH_Status USBH_SetAddress(USBH_Info_t *phost, uint8_t addr); 12 USBH_Status USBH_SetConfiguration(USBH_Info_t *phost, uint8_t cfg); 13 USBH_Status USBH_SetInterface(USBH_Info_t *phost, uint8_t intf, uint8_t altSetting); 14 USBH_Status USBH_ClrFeature(USBH_Info_t *phost, uint8_t ep); 16 USBH_Status USBH_ParseCfgDesc(USBH_Info_t *phost, uint8_t *buff, uint16_t size);
|
| A D | usbh_core.h | 97 USBH_Status (*Init)(struct USBH_Info_T *phost); 98 void (*DeInit)(struct USBH_Info_T *phost); 99 USBH_Status (*Request)(struct USBH_Info_T *phost); 100 USBH_Status (*Process)(struct USBH_Info_T *phost); 143 USBH_Status USBH_HandleEnum(USBH_Info_t *phost); 144 void USBH_HandleControl(USBH_Info_t *phost); 145 USBH_Status USBH_CtrlTransfer(USBH_Info_t *phost, uint8_t *buff, uint16_t size); 147 void USBH_ErrorHandle(USBH_Info_t *phost, USBH_Status errType);
|
| /bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/CDC/ |
| A D | usbh_cdc_funct.c | 49 phost->Ctrl.setup.wValue = 0; in USBH_CDC_GetLineCoding() 50 phost->Ctrl.setup.wIndex = 0; in USBH_CDC_GetLineCoding() 68 phost->Ctrl.setup.wValue = 0; in USBH_CDC_SetLineCoding() 69 phost->Ctrl.setup.wIndex = 0; in USBH_CDC_SetLineCoding() 88 phost->Ctrl.setup.wIndex = 0; in USBH_CDC_SetControlLine() 89 phost->Ctrl.setup.wLength = 0; in USBH_CDC_SetControlLine() 91 return USBH_CtrlTransfer(phost, 0 , 0); in USBH_CDC_SetControlLine() 106 phost->StateBkp = phost->State; in USBH_CDC_IssueSetLineCoding() 107 phost->State = HOST_CLASS_REQUEST; in USBH_CDC_IssueSetLineCoding() 122 phost->StateBkp = phost->State; in USBH_CDC_IssueGetLineCoding() [all …]
|
| A D | usbh_cdc_core.c | 49 USBH_Status USBH_CDC_Init(USBH_Info_t *phost) in USBH_CDC_Init() argument 57 pEpCtrl = &phost->Device.Ep_Desc[0][0]; in USBH_CDC_Init() 61 pEpIn = &phost->Device.Ep_Desc[1][0]; in USBH_CDC_Init() 62 pEpOut = &phost->Device.Ep_Desc[1][1]; in USBH_CDC_Init() 77 USBH_CDC_DeInit(phost); in USBH_CDC_Init() 81 if(phost->usr_cb->DeviceNotSupported) in USBH_CDC_Init() 82 phost->usr_cb->DeviceNotSupported(); in USBH_CDC_Init() 98 void USBH_CDC_DeInit(USBH_Info_t *phost) in USBH_CDC_DeInit() argument 121 USBH_Status USBH_CDC_Request(USBH_Info_t *phost) in USBH_CDC_Request() argument 157 reqStatus = USBH_ClrFeature(phost, 0); in USBH_CDC_Request() [all …]
|
| A D | usbh_cdc_funct.h | 16 USBH_Status USBH_CDC_GetLineCoding(USBH_Info_t *phost); 17 USBH_Status USBH_CDC_SetLineCoding(USBH_Info_t *phost); 18 USBH_Status USBH_CDC_SetControlLine(USBH_Info_t *phost); 19 void USBH_CDC_IssueSetLineCoding(USBH_Info_t *phost); 20 void USBH_CDC_IssueGetLineCoding(USBH_Info_t *phost);
|
| A D | usbh_cdc_core.h | 64 USBH_Status USBH_CDC_Init(USBH_Info_t *phost); 65 void USBH_CDC_DeInit(USBH_Info_t *phost); 66 USBH_Status USBH_CDC_Request(USBH_Info_t *phost); 67 USBH_Status USBH_CDC_Process(USBH_Info_t *phost);
|
| /bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/HID/ |
| A D | usbh_hid_core.c | 49 USBH_Status USBH_HID_Init(USBH_Info_t *phost) in USBH_HID_Init() argument 82 USBH_HID_DeInit(phost); in USBH_HID_Init() 101 void USBH_HID_DeInit(USBH_Info_t *phost) in USBH_HID_DeInit() argument 128 … USBH_GetDescriptorEx(phost, USB_REQ_STANDARD, USB_REQ_TO_INTERFACE, USB_DESC_HID_RPT, 0, 0, phost… in USBH_HID_Request() 248 phost->Ctrl.setup.wIndex = interface; in USBH_Set_Idle() 249 phost->Ctrl.setup.wLength = 0; in USBH_Set_Idle() 251 return USBH_CtrlTransfer(phost, 0, 0); in USBH_Set_Idle() 269 phost->Ctrl.setup.wIndex = interface; in USBH_Set_Report() 288 phost->Ctrl.setup.wValue = protocol; in USBH_Set_Protocol() 289 phost->Ctrl.setup.wIndex = interface; in USBH_Set_Protocol() [all …]
|
| A D | usbh_hid_core.h | 61 USBH_Status USBH_HID_Init(USBH_Info_t *phost); 62 void USBH_HID_DeInit(USBH_Info_t *phost); 63 USBH_Status USBH_HID_Request(USBH_Info_t *phost); 64 USBH_Status USBH_HID_Process(USBH_Info_t *phost); 67 USBH_Status USBH_Set_Idle(USBH_Info_t *phost, uint8_t interface, uint8_t reportId, uint8_t duration… 68 USBH_Status USBH_Set_Report(USBH_Info_t *phost, uint8_t interface, uint8_t reportId, uint8_t report… 69 USBH_Status USBH_Set_Protocol(USBH_Info_t *phost, uint8_t interface, uint8_t protocol);
|
| /bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/MSC/ |
| A D | usbh_msc_core.c | 52 USBH_Status USBH_MSC_Init(USBH_Info_t *phost) in USBH_MSC_Init() argument 75 USBH_MSC_DeInit(phost); in USBH_MSC_Init() 79 if(phost->usr_cb->DeviceNotSupported) in USBH_MSC_Init() 80 phost->usr_cb->DeviceNotSupported(); in USBH_MSC_Init() 94 void USBH_MSC_DeInit(USBH_Info_t *phost) in USBH_MSC_DeInit() argument 136 status = USBH_MSC_getMaxLUN(phost); in USBH_MSC_Process() 218 USBH_MSC_BOT_Process(phost); in USBH_MSC_Process() 259 phost->Ctrl.setup.bRequest = 0xFE; in USBH_MSC_getMaxLUN() 260 phost->Ctrl.setup.wValue = 0; in USBH_MSC_getMaxLUN() 261 phost->Ctrl.setup.wIndex = 0; in USBH_MSC_getMaxLUN() [all …]
|
| A D | usbh_msc_core.h | 56 USBH_Status USBH_MSC_Init(USBH_Info_t *phost); 57 void USBH_MSC_DeInit(USBH_Info_t *phost); 58 USBH_Status USBH_MSC_Request(USBH_Info_t *phost); 59 USBH_Status USBH_MSC_Process(USBH_Info_t *phost); 61 USBH_Status USBH_MSC_getMaxLUN(USBH_Info_t *phost);
|
| A D | usbh_msc_bot.c | 69 void USBH_MSC_BOT_Process(USBH_Info_t *phost) in USBH_MSC_BOT_Process() argument 80 …if(USBH_SendOutPacket(phost->Device.Address, USBH_MSC_Info.OutEp, USBH_MSC_Info.OutEpDATAX, (uint8… in USBH_MSC_BOT_Process() 131 … if(USBH_SendInPacket(phost->Device.Address, USBH_MSC_Info.InEp, USBH_MSC_Info.InEpDATAX, size)) in USBH_MSC_BOT_Process() 178 …if(USBH_SendOutPacket(phost->Device.Address, USBH_MSC_Info.OutEp, USBH_MSC_Info.OutEpDATAX, pdBuff… in USBH_MSC_BOT_Process() 220 …if(USBH_SendInPacket(phost->Device.Address, USBH_MSC_Info.InEp, USBH_MSC_Info.InEpDATAX, MSC_CSW_L… in USBH_MSC_BOT_Process() 236 USBH_BOTXfer.bCSWStatus = USBH_MSC_BOT_DecodeCSW(phost); in USBH_MSC_BOT_Process() 269 stat = USBH_ClrFeature(phost, USBH_MSC_Info.InEp); in USBH_MSC_BOT_Process() 279 stat = USBH_ClrFeature(phost, USBH_MSC_Info.OutEp); in USBH_MSC_BOT_Process() 301 uint8_t USBH_MSC_BOT_DecodeCSW(USBH_Info_t *phost) in USBH_MSC_BOT_DecodeCSW() argument
|
| A D | usbh_msc_bot.h | 46 void USBH_MSC_BOT_Process(USBH_Info_t *phost); 47 uint8_t USBH_MSC_BOT_DecodeCSW(USBH_Info_t *phost);
|
| /bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/MTP/ |
| A D | usbh_mtp.h | 114 USBH_Status USBH_MTP_GetDeviceInfo(USBH_Info_t *phost, PTP_DeviceInfo_t *dev_info); 116 USBH_Status USBH_MTP_OpenSession(USBH_Info_t *phost, uint32_t session); 118 USBH_Status USBH_MTP_GetStorageIds(USBH_Info_t *phost, PTP_StorageIDs_t *storage_ids); 119 USBH_Status USBH_MTP_GetStorageInfo(USBH_Info_t *phost, uint32_t storage_id, PTP_StorageInfo_t *sto… 124 USBH_Status USBH_MTP_GetObjectInfo(USBH_Info_t *phost, uint32_t handle, PTP_ObjectInfo_t *object_in… 126 USBH_Status USBH_MTP_GetObject(USBH_Info_t *phost, uint32_t handle, uint8_t *object); 129 USBH_Status USBH_MTP_DeleteObject(USBH_Info_t *phost, uint32_t handle, uint32_t format); 130 USBH_Status USBH_MTP_SendObject(USBH_Info_t *phost, uint32_t handle, uint8_t *object, uint32_t size… 134 USBH_Status USBH_MTP_GetObjectPropsSupported(USBH_Info_t *phost, uint16_t ofc, uint32_t *propnum, u… 135 USBH_Status USBH_MTP_GetObjectPropDesc(USBH_Info_t *phost, uint16_t opc, uint16_t ofc, PTP_ObjectPr… [all …]
|
| A D | usbh_mtp.c | 28 static USBH_Status USBH_MTP_Init(USBH_Info_t *phost); 58 …if(((phost->Device.Intf_Desc[i].bInterfaceClass == USB_MTP_CLASS) && (phost->Device.Intf_Desc[i].b… in USBH_MTP_Init() 59 …((phost->Device.Intf_Desc[i].bInterfaceClass == 0xFF) && (phost->Device.Intf_Desc[i].bNum… in USBH_MTP_Init() 117 USBH_MTP_DeInit(phost); in USBH_MTP_Init() 127 if(phost->usr_cb->DeviceNotSupported) in USBH_MTP_Init() 128 phost->usr_cb->DeviceNotSupported(); in USBH_MTP_Init() 141 static void USBH_MTP_DeInit(USBH_Info_t *phost) in USBH_MTP_DeInit() argument 172 void USBH_MTP_XferProcess(USBH_Info_t *phost); 220 status = USBH_MTP_OpenSession(phost, 1); in USBH_MTP_Process() 313 USBH_MTP_XferProcess(phost); in USBH_MTP_Process() [all …]
|
| A D | usbh_mtp_ptp.c | 174 void PTP_DecodeDeviceInfo(USBH_Info_t *phost, PTP_DeviceInfo_t *dev_info) in PTP_DecodeDeviceInfo() argument 223 void PTP_DecodeStorageInfo(USBH_Info_t *phost, PTP_StorageInfo_t *storage_info) in PTP_DecodeStorageInfo() argument 247 void PTP_DecodeObjectInfo(USBH_Info_t *phost, PTP_ObjectInfo_t *object_info) in PTP_DecodeObjectInfo() argument 284 void PTP_DecodeObjectPropDesc(USBH_Info_t *phost, PTP_ObjectPropDesc_t *opd, uint32_t opdlen) in PTP_DecodeObjectPropDesc() argument 294 PTP_GetDevicePropValue(phost, &offset, opdlen, &opd->FactoryDefaultValue, opd->DataType); in PTP_DecodeObjectPropDesc() 305 … PTP_GetDevicePropValue(phost, &offset, opdlen, &opd->FORM.Range.MinimumValue, opd->DataType); in PTP_DecodeObjectPropDesc() 306 … PTP_GetDevicePropValue(phost, &offset, opdlen, &opd->FORM.Range.MaximumValue, opd->DataType); in PTP_DecodeObjectPropDesc() 307 PTP_GetDevicePropValue(phost, &offset, opdlen, &opd->FORM.Range.StepSize, opd->DataType); in PTP_DecodeObjectPropDesc() 316 … PTP_GetDevicePropValue(phost, &offset, opdlen, &opd->FORM.Enum.SupportedValue[i], opd->DataType); in PTP_DecodeObjectPropDesc() 333 uint32_t PTP_DecodeObjectPropList(USBH_Info_t *phost, MTP_Properties_t *props, uint32_t len) in PTP_DecodeObjectPropList() argument [all …]
|
| A D | usbh_mtp_ptp.h | 735 void PTP_GetDevicePropValue(USBH_Info_t *phost, uint32_t *offset, uint32_t total, PTP_PropertyValue… 742 void PTP_DecodeDeviceInfo(USBH_Info_t *phost, PTP_DeviceInfo_t *dev_info); 744 void PTP_DecodeStorageInfo(USBH_Info_t *phost, PTP_StorageInfo_t *storage_info); 746 void PTP_DecodeObjectInfo(USBH_Info_t *phost, PTP_ObjectInfo_t *object_info); 748 void PTP_DecodeObjectPropDesc(USBH_Info_t *phost, PTP_ObjectPropDesc_t *opd, uint32_t opdlen); 750 uint32_t PTP_DecodeObjectPropList(USBH_Info_t *phost, MTP_Properties_t *props, uint32_t len);
|
| /bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/host/core/Include/ |
| A D | usbh_core.h | 184 usbh_status (*class_init) (struct _usbh_host *phost); 185 void (*class_deinit) (struct _usbh_host *phost); 186 usbh_status (*class_requests) (struct _usbh_host *phost); 187 usbh_status (*class_machine) (struct _usbh_host *phost);
|