41 #ifndef __USBHOST_LPC_H__
42 #define __USBHOST_LPC_H__
45 #include "../../../../Common/Common.h"
46 #include "../StdDescriptors.h"
48 #include "../USBInterrupt.h"
51 #if defined(__cplusplus)
56 #if !defined(__INCLUDE_FROM_USB_DRIVER)
57 #error Do not include this file directly. Include lpcroot/libraries/LPCUSBlib/Drivers/USB/USB.h instead.
67 #define USB_HOST_DEVICEADDRESS 1
69 #if !defined(USB_HOST_TIMEOUT_MS) || defined(__DOXYGEN__)
77 #define USB_HOST_TIMEOUT_MS 1000
80 #if !defined(HOST_DEVICE_SETTLE_DELAY_MS) || defined(__DOXYGEN__)
90 #define HOST_DEVICE_SETTLE_DELAY_MS 1000
135 #if !defined(NO_SOF_EVENTS)
280 #if !defined(__DOXYGEN__)
284 static inline
void USB_Host_HostMode_On(
void)
289 static inline
void USB_Host_HostMode_Off(
void)
294 static inline
void USB_Host_VBUS_Auto_Enable(
void)
299 static inline
void USB_Host_VBUS_Manual_Enable(
void)
304 static inline
void USB_Host_VBUS_Auto_On(
void)
309 static inline
void USB_Host_VBUS_Manual_On(
void)
314 static inline
void USB_Host_VBUS_Auto_Off(
void)
319 static inline
void USB_Host_VBUS_Manual_Off(
void)
322 static inline void USB_Host_SetDeviceAddress(
const uint8_t Address)
ATTR_ALWAYS_INLINE;
324 static inline void USB_Host_SetDeviceAddress(
const uint8_t Address)
328 enum USB_Host_WaitMSErrorCodes_t {
329 HOST_WAITERROR_Successful = 0,
330 HOST_WAITERROR_DeviceDisconnect = 1,
331 HOST_WAITERROR_PipeError = 2,
332 HOST_WAITERROR_SetupStalled = 3,
345 #if defined(__INCLUDE_FROM_HOST_C)
351 #if defined(__cplusplus)