USB Host definitions for the AVR8 microcontrollers. More...
#include "../../../../Common/Common.h"
#include "../StdDescriptors.h"
#include "../Pipe.h"
#include "../USBInterrupt.h"
Macros | |
#define | HOST_DEVICE_SETTLE_DELAY_MS 1000 |
#define | USB_HOST_DEVICEADDRESS 1 |
Enumerations | |
enum | USB_Host_EnumerationErrorCodes_t { HOST_ENUMERROR_NoError = 0, HOST_ENUMERROR_WaitStage = 1, HOST_ENUMERROR_NoDeviceDetected = 2, HOST_ENUMERROR_ControlError = 3, HOST_ENUMERROR_PipeConfigError = 4, HOST_ENUMERROR_NoError = 0, HOST_ENUMERROR_WaitStage = 1, HOST_ENUMERROR_NoDeviceDetected = 2, HOST_ENUMERROR_ControlError = 3, HOST_ENUMERROR_PipeConfigError = 4 } |
enum | USB_Host_ErrorCodes_t { HOST_ERROR_VBusVoltageDip = 0, HOST_ERROR_VBusVoltageDip = 0 } |
Functions | |
static void | USB_Host_ClearRemoteWakeupSent (void) ATTR_ALWAYS_INLINE |
static void | USB_Host_DisableSOFEvents (void) ATTR_ALWAYS_INLINE |
static void | USB_Host_EnableSOFEvents (void) ATTR_ALWAYS_INLINE |
static uint16_t | USB_Host_GetFrameNumber (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE |
static bool | USB_Host_IsBusResetComplete (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE |
static bool | USB_Host_IsBusSuspended (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE |
static bool | USB_Host_IsDeviceFullSpeed (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE |
static bool | USB_Host_IsRemoteWakeupSent (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE |
static bool | USB_Host_IsResumeFromWakeupRequestSent (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE |
static void | USB_Host_ResetBus (void) ATTR_ALWAYS_INLINE |
static void | USB_Host_ResumeBus (void) ATTR_ALWAYS_INLINE |
static void | USB_Host_ResumeFromWakeupRequest (void) ATTR_ALWAYS_INLINE |
static void | USB_Host_SuspendBus (void) ATTR_ALWAYS_INLINE |
Architecture specific USB Host definitions for the Atmel 8-bit AVR microcontrollers.