Host.h File Reference

#include <avr/io.h>
#include <stdbool.h>
#include <util/delay.h>
#include "../../../Common/Common.h"
#include "../HighLevel/USBInterrupt.h"
#include "../HighLevel/USBInterrupt.h"

Defines

#define USB_HOST_DEVICEADDRESS   1
#define USB_HOST_TIMEOUT_MS   1000
#define HOST_DEVICE_SETTLE_DELAY_MS   1500

Enumerations

enum  USB_Host_States_t {
  HOST_STATE_WaitForDevice = 0,
  HOST_STATE_Unattached = 1,
  HOST_STATE_Attached = 2,
  HOST_STATE_Attached_WaitForDeviceSettle = 3,
  HOST_STATE_Attached_WaitForConnect = 4,
  HOST_STATE_Attached_DoReset = 5,
  HOST_STATE_Powered = 6,
  HOST_STATE_Default = 7,
  HOST_STATE_Default_PostReset = 8,
  HOST_STATE_Default_PostAddressSet = 9,
  HOST_STATE_Addressed = 10,
  HOST_STATE_Configured = 11,
  HOST_STATE_Ready = 12,
  HOST_STATE_Suspended = 13
}
enum  USB_Host_ErrorCodes_t { HOST_ERROR_VBusVoltageDip = 0 }
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
}

Functions

static void USB_Host_ResetBus (void)
static void USB_Host_IsBusResetComplete (void)
static void USB_Host_ResumeBus (void)
static void USB_Host_SuspendBus (void)
static bool USB_Host_IsBusSuspended (void)
static bool USB_Host_IsDeviceFullSpeed (void)
static bool USB_Host_IsRemoteWakeupSent (void)
static void USB_Host_ClearRemoteWakeupSent (void)
static void USB_Host_ResumeFromWakeupRequest (void)
static bool USB_Host_IsResumeFromWakeupRequestSent (void)

Generated on Fri Jun 5 16:30:18 2009 for LUFA Library by  doxygen 1.5.7.1