33 #define __INCLUDE_FROM_USB_DRIVER
36 #if defined(USB_CAN_BE_HOST)
38 #define __INCLUDE_FROM_HOSTSTDREQ_C
47 uint8_t* DataStream = (uint8_t*)BufferPtr;
80 #else // The following code is deprecated
83 uint8_t* DataStream = (uint8_t*)BufferPtr;
91 goto End_Of_Control_Send;
107 goto End_Of_Control_Send;
112 goto End_Of_Control_Send;
118 if (DataStream !=
NULL)
125 goto End_Of_Control_Send;
145 goto End_Of_Control_Send;
150 goto End_Of_Control_Send;
154 if (DataStream !=
NULL)
162 goto End_Of_Control_Send;
174 goto End_Of_Control_Send;
183 goto End_Of_Control_Send;
199 static uint8_t USB_Host_WaitForIOS(
const uint8_t WaitType)
201 #if (USB_HOST_TIMEOUT_MS < 0xFF)
207 while (!(((WaitType == USB_HOST_WAITFOR_SetupSent) &&
Pipe_IsSETUPSent()) ||
216 if (!(TimeoutCounter--))
267 const uint8_t BufferLength)
275 .wLength = BufferLength,
306 .
wIndex = EndpointAddress,
316 const uint8_t InterfaceIndex,
317 const uint8_t AltSetting)